码迷,mamicode.com
首页 > 其他好文 > 详细

RightBarButon

时间:2014-08-28 13:06:09      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:os   io   ar   for   cti   sp   on   ad   c   

 //rightBar button

    UIButton *rightButton = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 34, 34)];

    [rightButton setImage:[UIImage imageNamed:@"share_details"] forState:UIControlStateNormal];

    [rightButton addTarget:self action:@selector(doShare) forControlEvents:UIControlEventTouchUpInside];

    UIBarButtonItem *rightBarBtn = [[UIBarButtonItem alloc]initWithCustomView:rightButton];

    self.navigationItem.rightBarButtonItem = rightBarBtn;

RightBarButon

标签:os   io   ar   for   cti   sp   on   ad   c   

原文地址:http://www.cnblogs.com/zhujin/p/3941185.html

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