Hallo,
will eine andere Schriftart als die Standardschriftart vom Backbutton. Mit iOS 7 funktioniert es aber leider nicht mehr so wie ich es will.
Was mache ich da falsch?
will eine andere Schriftart als die Standardschriftart vom Backbutton. Mit iOS 7 funktioniert es aber leider nicht mehr so wie ich es will.
Quellcode
- NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont
- fontWithName:@"HelveticaNeue-Bold" size:19], NSFontAttributeName,
- [UIColor whiteColor], NSForegroundColorAttributeName, nil];
- [[UINavigationBar appearance] setTitleTextAttributes:attributes];
- [self.navigationItem.backBarButtonItem setTitleTextAttributes:attributes forState:UIControlStateNormal];
- [self.navigationItem.backBarButtonItem setTitleTextAttributes:attributes forState:UIControlStateSelected];
- [self.navigationItem.backBarButtonItem setTitleTextAttributes:attributes forState:UIControlStateHighlighted];
Was mache ich da falsch?