iOS 创建UIBarButtonItem右边按钮
2020-06-09 本文已影响0人
Zhen斌iOS
代码如下:
UIBarButtonItem* rightButton = [[UIBarButtonItem alloc] initWithTitle: @"右边"
style: UIBarButtonItemStyleDonetarget: self
action:@selector(clickRightButton)];
[self.navigationItem setRightBarButtonItem: rightButton];
希望对你有帮助!