Its a strange behaviour observed on the navigation bar a white spaced added. How to removed it whitespace from the navigation bar.
-(void)viewDidLoad {
[super viewDidLoad]
[self loadUI];
}
-(void)loadUI {
/// set attributes for Navigation Bar
[[self navigationController] setNavigationBarHidden:NO animated:NO];
self.navigationItem.title = @"Welcome"; // Title of Navigation Bar
self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:(243/255.0) green:(178/255.0) blue:(128/255.0) alpha:1];
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor]};
self.navigationController.navigationBar.translucent = NO;
}
从情节提要Navigation Controller的导航项中删除了阴影图像中的Image和后退Image。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.