UIBarButtonItem *updateButton = [[UIBarButtonItem alloc] initWithTitle:@"修改" style:UIBarButtonItemStylePlain target:self action:@selector(updateInfo)];
self.navigationItem.rightBarButtonItem = updateButton;
原文:http://www.cnblogs.com/aiwoqu/p/4624175.html