您的位置:首页 > 其它

iPhone/iPad导航条右上侧添加自定义按钮

2011-12-24 12:47 323 查看
UIBarButtonItem *infoButton = [[UIBarButtonItem alloc] initWithTitle:@"Info" style:UIBarButtonItemStyleBordered target:self action:@selector(showInfo:)];
        self.navigationItem.rightBarButtonItem = infoButton;


其中showInfo为自己定义的方法。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: