IOS - Have UITableViewCells scroll over UIView (like the shazam app) <p>I have a UIView above my UITableView. When the user scrolls down I want the UIView to stay in place at the top of the screen and have the cells scroll over it. The first page of the Shazam app does what I want. </p> <pre><code> - (void)scrollViewDidScroll:(UIScrollView *)scrollView{ if (self.tableView.contentOffset.y &gt; 0) { CGRect newframe = self.publicTopView.frame; newframe.origin.y = -self.tableView.contentOffset.y; self.publicTopView.frame = newframe; } </code></pre> <p>}</p> <p>This is what I've tried so far, but it doesn't do anything. Thanks</p>