1.替换系统的返回按钮

 1 UIBarButtonItem* left =
 2       [[UIBarButtonItem alloc] initWithTitle:@"返回"
 3                                        style:UIBarButtonItemStyleDone
 4                                       target:self
 5                                       action:@selector(rightPress:)];
 6 
 7   [left setTitleTextAttributes:
 8             [NSDictionary
 9                 dictionaryWithObjectsAndKeys:
10                     [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0],
11                     NSForegroundColorAttributeName, nil]
12                       forState:UIControlStateNormal];
13 
14   self.navigationItem.leftBarButtonItem = left;