我想以红色显示 EDIT 按钮而不是 SAVE 按钮,如下所示
UIBarButtonItem *barBtn = [[UIBarButtonItem alloc] initWithTitle:(_isEdit)?
@"Save" : @"Edit" style:UIBarButtonItemStyleBordered
target:self action:@selector(togleEdit)];
[UIBarButtonItem appearance] setTintColor:[UIColor redColor]];