Skip to content

Instantly share code, notes, and snippets.

@iSevenDays
Last active February 9, 2016 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iSevenDays/63107226a1bcbbfcca4d to your computer and use it in GitHub Desktop.
Save iSevenDays/63107226a1bcbbfcca4d to your computer and use it in GitHub Desktop.
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