代码如下:
UIBarButtonItem* rightButton = [[UIBarButtonItem alloc] initWithTitle: @"右边"
style: UIBarButtonItemStyleDonetarget: self
action:@selector(clickRightButton)];
[self.navigationItem setRightBarButtonItem: rightButton];
希望对你有帮助!
代码如下:
UIBarButtonItem* rightButton = [[UIBarButtonItem alloc] initWithTitle: @"右边"
style: UIBarButtonItemStyleDonetarget: self
action:@selector(clickRightButton)];
[self.navigationItem setRightBarButtonItem: rightButton];
希望对你有帮助!
本文标题:iOS 创建UIBarButtonItem右边按钮
本文链接:https://www.haomeiwen.com/subject/bulstktx.html
网友评论