Scrolling around a table view with scrolling is the right way.
UIScrollView with
- Show horizontal scrollers
- scrolling enabled
- autosave in full screen
Inside this UITableView
- shows vertical scrollers
- scrolling enabled
Then I set the table view frame, with w, being the estimated width of the table view with all the columns, regardless of your width, and kTableScrollViewHeight is the fixed height of both the table view and the scroll view in my case, for example 367 points (screen minus status, navbar and tab):
tv.frame = CGRectMake(0, 0, w, kTableScrollViewHeight);
and scroll content size
scrollView.contentSize = CGSizeMake(w, kTableScrollViewHeight);
If you need to scroll behavior to the top level when the user deletes the status bar, you can set
scrollView.scrollsToTop = NO;
otherwise, the scroll view will remove the tap from the table view.
source share