Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to create a non-full screen UITableView using Storyboards?

I'd like to create a view controller with a UITableView in the top of the screen and a fixed view (which would contain various button, etc.) at the bottom. (i.e.: Below of the UITableView's surrounding scroll view.)

Whilst this is pretty trivial using the traditional NIB file approach, there doesn't currently (as of Xcode 4.3.1) appear to be a way of doing this using Storyboards that I can find.

As such, I'm just wondering whether this is currently possible and if so what the best approach is.

like image 544
John Parker Avatar asked Feb 22 '23 00:02

John Parker


1 Answers

It's pretty much the same process as with XIBs:

  1. Drag/drop a "plain" UIViewController onto the Storyboard
  2. Change the class from UIViewController to your own, custom class that implements UITableViewDelegate and UITableViewDataSource
  3. Drop/drop a UITableView onto the view controller
  4. Connect the delegates to your custom class
like image 111
Stephen Darlington Avatar answered May 05 '23 12:05

Stephen Darlington