uitabbar itembutton 放到右侧

UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle:@"资料"
  style:UIBarButtonItemStylePlain
target:self
action:nil];
self.navigationItem.rightBarButtonItem = rightItem;
[rightItem release];

你可能感兴趣的:(ios)