ios11导航栏按钮不适配解决方法
来源:互联网 发布:seo和dsp 编辑:程序博客网 时间:2024/05/29 15:35
UIButton *leftbutton=[[UIButton alloc]initWithFrame:CGRectMake(0, 7, 30, 30)];
UIView *containView = [[UIView alloc] initWithFrame:leftbutton.bounds];
[containView addSubview:leftbutton];
[leftbutton setImage:[UIImage imageNamed:@"but_Photograph_press"] forState:UIControlStateNormal];
UIBarButtonItem *leftItem=[[UIBarButtonItem alloc]initWithCustomView:containView];
self.navigationItem.leftBarButtonItem=leftItem;
UIView *containView = [[UIView alloc] initWithFrame:leftbutton.bounds];
[containView addSubview:leftbutton];
[leftbutton setImage:[UIImage imageNamed:@"but_Photograph_press"] forState:UIControlStateNormal];
UIBarButtonItem *leftItem=[[UIBarButtonItem alloc]initWithCustomView:containView];
self.navigationItem.leftBarButtonItem=leftItem;
阅读全文
0 0
- ios11导航栏按钮不适配解决方法
- iOS11导航栏自定义按钮偏移问题
- iOS11导航栏自定义按钮偏移问题
- iOS11返回按钮和导航栏右按钮的完美适配
- iOS11项目适配 UIScorllView下移和导航栏返回按钮偏移
- iOS11 导航栏按钮位置问题的解决
- iOS11 导航栏按钮位置问题的解决
- iOS11 导航栏按钮位置问题的解决------新
- iOS11导航栏隐藏
- iOS11 导航栏按钮出现点击触发不灵敏(触发面积变小)
- iOS11 完美解决导航栏按钮偏移问题 韩俊强的博客
- iOS11NavigationItem偏移,iOS11适配问题,iOS11导航栏返回偏移,iOS11BarButtonItem偏移,Xcode9遇见的问题
- iOS11适配点击按钮崩溃
- iOS11 设置搜索栏取消按钮颜色
- jQueryMobile新版中导航栏按钮消失的解决方法
- jQueryMobile新版中导航栏按钮消失的解决方法
- iOS11 适配之导航栏、tableView、searchBar遇到的bug
- iOS11 适配之导航栏、tableView、searchBar遇到的bug
- equals与equalsIgnoreCase
- 查看elf文件中的符号表
- Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”
- CentOS常用命令(一)
- iOS CAShapeLayer 使用
- ios11导航栏按钮不适配解决方法
- C++ 中枚举变量出现定义重复
- Java中基本类型和引用类型的传递
- 530 A secure connection is requiered(such as ssl)
- 约束优化方法之拉格朗日乘子法与KKT条件
- Windows10搭建FTP服务器
- oracle表空间,用户(创建和删除、授权或撤销授权),dmp文件(导入和导出)
- 查找文件
- Android实时取景:用SurfaceView实现 -- Camera 二