PDA

View Full Version : How to add title to DetailViewController in iPad Split-View app?




Danneman101
Jul 29, 2010, 09:35 AM
I couldnt really figure out how to set the title in the DetailViewController in my iPad split-view app, so I simply added a UINavigationController on top and can now set the title dynamically from code.

Problem is, I just noticed, when in picture-view the button that's supposed to open the tableview with the menu is obscured by the navcontroller.

So, back to square one. If I remove my custom navcontroller, is there an inbuilt title I can set, and if so how (from code)?



Danneman101
Jul 29, 2010, 10:19 AM
Never mind, the obvious solution to simply resize the UINavigationBar so that the button reappeas just dawned on me :p

dejo
Jul 29, 2010, 10:42 AM
Why not add the button to the navBar?