ios UIBarButtonItem去除标题
2015-07-21 15:04
447 查看
当使用UIBarButtonItem的时候,跳转到第二个ViewController的时候,第二个ViewController会自动在UIBarButtonItem中显示上个ViewController的标题
想要去除这个文字需要在第一个ViewController中加入如下代码
想要去除这个文字需要在第一个ViewController中加入如下代码
[[UIBarButtonItem appearance]setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60)forBarMetrics:UIBarMetricsDefault];
相关文章推荐
- 终于找到了。 图标搜索、UI设计、移动开发集中导航
- SUID,SGID,Sticky Bit详解
- LeetCode Implement Queue using Stacks
- Subsequence hdu3530
- 陈力:传智播客古代 珍宝币 泡泡龙游戏开发第25讲:Break、Cintinue、Goto控制
- $_REQUEST变量数组header()函数
- 232 Implement Queue using Stacks
- ios学习之 初识UIBarButtonItem
- ${pageContext.request.contextPath} :JSP取得绝对路径方法
- UITextField
- UILabel、UIButton
- iOS Interface builder was unable to determine the type of xxx.xib
- DAC模式登陆(解决对象名'sys.sysobjvalues'无效)
- UIlable 设置行间距
- Sybase ASE 查询结果保存到文件 output a SQL query results to a file
- java中PriorityQueue优先级队列使用方法
- iOS总结控件一(UILabel)
- ios学习之 初识UINavigationController
- while循环中,break,continue,return的区别
- UITableviewCell滑动出现多级的控制按钮 - UITableViewRowAction