sdk: go back action without navigation bar
I don't have have navigation bar, when I go from view 1 to view 2, there is a back button in view; When I click the back button in 开发者_JAVA百科view 2, it go back to shows view 1 again.
- what is the best action in this case ?
- what is the possibility to change the button to an image ?
So anyone have suggestion, thanks.
You should still use a UINavigationController, but set the nav bar to be hidden. The action of the button in view 2 should be [self.navigationController popViewControllerAnimated:YES]. You can use the button's image property to make it an image.
精彩评论