//导航栏按钮
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:@ "完成"
style:UIBarButtonItemStylePlain
target: self
action: @selector (done)];
self .navigationItem.rightBarButtonItem = doneButton;
UIBarButtonItem *cancleButton = [[UIBarButtonItem alloc] initWithTitle:@ "取消"
style:UIBarButtonItemStylePlain
target: self
action: @selector (cancle)];
self .navigationItem.leftBarButtonItem = cancleButton;
self .navigationItem.leftBarButtonItem.tintColor = [UIColor blackColor];
self .navigationItem.rightBarButtonItem.tintColor = [UIColor whitecolor];
|