iOS开发状态栏颜色设置以及导航栏的透明设置

#import “ZCFirstController.h”

#import “TMapView.h”

@interface ZCFirstController ()

/** 地图 */

@property (nonatomic ,strong) TMapView * mapView;

@property (nonatomic ,strong) UIImageView * imageViewBar;

@end

@implementation ZCFirstController

  • (void)viewDidLoad {

    [super viewDidLoad];

    //返回键

    [self setBackItem];

    //透明导航栏

    [self setNaVationBar];

    //初始化地图

    [self addMapView];

}

  • (void)setBackItem {

    UIBarButtonItem *left = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@“bankhui_homePage_saoyisaoback”] style:UIBarButtonItemStylePlain target:self action:@selector(back)];

    self.navigationItem.leftBarButtonItem = left;

}

  • (void)back

{

[self.navigationController popViewControllerAnimated:YES];

你可能感兴趣的:(iOS开发状态栏颜色设置以及导航栏的透明设置)