iphone - Navigation controller doesnt add back button -


i have view pushes new view onto screen.

when new view shown, there no button in navigation controller.

i have following in 1 view

enter image description here

and push new view using following code

[photoviewcontroller setasset:[assets objectatindex:(cell.rownumber * 4) + index]]; [[self navigationcontroller] pushviewcontroller:photoviewcontroller animated:yes]; [photoviewcontroller release]; 

when view appears following visible

enter image description here

how add button , add same share button bar in second view?

thanks. :)

you need set title in first view. button uses title of previous view. if 1 not set button not displayed.

in viewdidload method of first view, use self.title = @"title";


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -