我想在方法UIBarButtonItem
UINavigationItem
和viewWillAppear
代码
答案 0 :(得分:0)
你需要提供更多细节,但可能你的意思是:
UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithTitle: @"Back"
style: UIBarButtonItemStylePlain
target: self
action: @selector(backAction)];
self.navigationItem.leftBarButtonItem = btn;
[btn release];