uitableview - How can I use the Top Bar setting of a UITableViewController in IB? -
i have .xib controller, uitableviewcontroller
. contains uitableview
, controlled right .h, .m files , iboutlets
. works fine, want navigation bar on top of view. saw setting in interface builder, in attributes window of uitableviewcontroller
: "top bar". set navigation bar, nicely renders empty navigation bar above table view.
but don't see on iphone! how can access navigation bar, set title , edit button? have connect outlet somewhere? tried add navigation bar manually, doesn't work since uitableview
.
can me out? advice appreciated.
the "top bar" option in ib simulate ui navigation bar. see navigation bar, you'll have embed uiviewcontroller within uinavigationcontroller.
to find out how works, check out "navigation-based application" template in xcode , check out: http://www.matthewcasey.co.uk/2010/05/23/tutorial-introducing-uinavigationcontroller-part-1/
Comments
Post a Comment