Skip to content

Instantly share code, notes, and snippets.

@iSevenDays
Last active February 9, 2016 10:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
UINavigationBar titleView changes its height(or becomes prompt) after push view controller
- (void)viewDidLoad {
[super viewDidLoad];
// some custom view
UIView *navTitle = [[UIView alloc] initWithTopTitle:tag middleTitle:loggedIn frame:frame];
self.navigationItem.prompt = nil;
self.navigationItem.titleView = navTitle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment