I’ve a TableViewController with the top half as a RegularView, and the other half is my table. But I’ve a problem the whole thing is not scrollable, I can go down a bit, but as soon as I let i go It goes back to the top :/
AnyIdeas?
P.S. Scrolling Enabled is ticked for the Tableview
EDIT : PrintScreen of what I’m doing : http://postimage.org/image/lldwd0ybl/
If you use a
UITableViewControllertheviewproperty of this controller is by default the table view. Thus, you have limited options of adding other views to the view hierarchy.You should perhaps use an ordinary
UIViewControllerwhich is the superclass of the table view controller. You can easily add a top view and a table view as subview to the mainviewof this controller. To make the table view work, you need to also follow these steps:UITableViewDataSourceandUITableViewDelegateto your class, and set your table view’sdatasourceanddelegateaccordingly (or hook them up in IB).Note that you cannot use storyboard’s static tables with this setup.