- - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- {
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- if (self) {
- // Custom initialization
- UIBarButtonItem *refresh = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(refreshData:)];
- refresh.tintColor = [UIColor whiteColor];
- self.navigationItem.rightBarButtonItem = refresh;
- }
- return self;
- }
来源: http://www.phpxs.com/code/1006633/