码迷,mamicode.com
首页 > 移动开发 > 详细

ios开发笔记 之五

时间:2015-04-02 18:02:19      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:

1.替换系统的返回按钮

 1 UIBarButtonItem* left =
 2       [[UIBarButtonItem alloc] initWithTitle:@"返回"
 3                                        style:UIBarButtonItemStyleDone
 4                                       target:self
 5                                       action:@selector(rightPress:)];
 6 
 7   [left setTitleTextAttributes:
 8             [NSDictionary
 9                 dictionaryWithObjectsAndKeys:
10                     [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0],
11                     NSForegroundColorAttributeName, nil]
12                       forState:UIControlStateNormal];
13 
14   self.navigationItem.leftBarButtonItem = left;

 

ios开发笔记 之五

标签:

原文地址:http://www.cnblogs.com/jjxxjnzy/p/4387352.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!