关闭

RightBtn

1974人阅读 评论(0) 收藏 举报
-(void)SetRightBtn
{//返回按钮
//    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0,0,44,44)];
//    [button setBackgroundImage:[UIImage imageNamed:@"kqls.png"] forState:UIControlStateNormal];
//    [button addTarget:self action:@selector(ShowKQlist:) forControlEvents:UIControlEventTouchDown];
//    UIBarButtonItem *rightBarButton = [[UIBarButtonItem alloc] initWithCustomView:button];self.navigationItem.rightBarButtonItem = rightBarButton;
//    [rightBarButton release];
    
    UIBarButtonItem *rightBarButton = [[UIBarButtonItem alloc]initWithTitle:@"历史" style:UIBarButtonItemStylePlain target:self action:@selector(ShowKQlist:)];
    self.navigationItem.rightBarButtonItem = rightBarButton;
    
}

0
0

  相关文章推荐
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    Google搜索
    个人资料
    • 访问:407899次
    • 积分:8630
    • 等级:
    • 排名:第2307名
    • 原创:458篇
    • 转载:16篇
    • 译文:0篇
    • 评论:47条
    博客专栏
    文章分类
    最新评论