自定义导航栏的返回按钮
来源:互联网 发布:凯撒和众信 知乎 编辑:程序博客网 时间:2024/05/16 11:23
/*
获取左侧导航栏按钮
*/
- (void)customBackItems{
UIButton *button = [UIButtonbuttonWithType:UIButtonTypeCustom];
[button setBackgroundImage:[UIImageimageNamed:@"Left_arrow"]
forState:UIControlStateNormal];
[button addTarget:selfaction:@selector(callModalList)
forControlEvents:UIControlEventTouchUpInside];
button.frame =CGRectMake(5,5, 36,36);
UIBarButtonItem *leftButton = [[UIBarButtonItemalloc] initWithCustomView:button];
self.navigationItem.leftBarButtonItem = leftButton;
}
/*
导航栏后退
*/
- (void)callModalList{
NSLog(@"点击了左侧按钮");
[self.navigationControllerpopViewControllerAnimated:YES];
}
0 0
- 自定义导航栏上的返回按钮
- 自定义导航栏上的返回按钮
- iOS自定义导航栏的返回按钮
- iOS 自定义导航栏的返回按钮
- 自定义导航栏的返回按钮
- 自定义导航栏的返回按钮
- 自定义导航栏返回按钮
- 自定义导航栏返回按钮
- 自定义导航栏返回按钮
- 自定义导航返回按钮
- 自定义默认生成的导航栏 标题 颜色 返回按钮
- 自定义导航栏返回按钮backBarButtonItem的标题
- 自定义导航栏返回按钮文字
- iOS 导航栏自定义返回按钮
- 自定义iOS7导航栏返回按钮文字
- iOS 导航栏返回按钮自定义
- 自定义导航栏返回按钮点击事件
- Swift自定义导航栏返回按钮
- Redirecting to /bin/systemctl stop mysqld.service
- 处理并发
- GIT和SVN之间的五个基本区别
- Swift学习笔记(九)方法
- IOS-企业开发者账号&邓白氏码申请记录
- 自定义导航栏的返回按钮
- 每天一个Linux命令-21(sar)
- C++ Primer : 第十二章 : 动态内存之动态内存管理(new和delete)
- UIWebView内存泄漏解决办法(一)
- 自制图片搜索引擎(一)
- 程式師的使用介面設計手冊
- spring配置dubbo出错解决之道
- 进程和线程的区别
- JAVA缓存技术