iOS导航栏设置

#pragma mark - Navigation
-(void)setUpNavigatinoItem{
    self.navigationController.navigationBar.barTintColor=[UIColor colorWithRed:41/255.0f green:217/255.0f blue:94/255.0f alpha:0.8f];
    self.navigationController.navigationBar.titleTextAttributes = @{UITextAttributeTextColor: [UIColor whiteColor],
              UITextAttributeFont : [UIFont boldSystemFontOfSize:18]};
    
    /* 设置导航栏上面的内容 */
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTarget:self action:@selector(back) image:@"textPic.png" highImage:@"textPic.png"];
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem itemWithTarget:self
                                                                      action:@selector(SettingClock)
                                                                       image:@"textPic.png"
                                                                   highImage:@"textPic.png"];
    
}


你可能感兴趣的:(iOS导航栏设置)