iphone - How do you add a navigationBar when you're not using a navigationController? -


is there way of doing other dragging 1 onto view in ib? see in ib can specify view has naviationbar seems work when using navigationcontroller. app i'm working on isn't fit navigationcontroller. in advance.

uinavigationbar view other. set appropriate frame , add view wish.

ex:

uinavigationbar *bar = [[uinavigationbar alloc] initwithframe:cgrectmake(0, 0, 320, 40)]; [self.view addsubview:bar]; [bar release]; 

n.b. not sure of standard height off hand, that'll easy find

edit: looks beaten punch


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -