iOS ——细节处理之 自定义左侧导航栏左侧返回按钮

UIBarButtonItem *backBtnItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"返回"] style:UIBarButtonItemStylePlain target:self action:@selector(popClick)];

self.navigationItem.leftBarButtonItem = backBtnItem;


#pragma mark - POP当前页面

- (void)popClick

{

[self.navigationController popViewControllerAnimated:YES];

}

你可能感兴趣的:(iOS ——细节处理之 自定义左侧导航栏左侧返回按钮)