我设置了这样的UIBarbuttonitem:
UIBarButtonItem *dismissButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Dismiss"] style:UIBarButtonItemStylePlain target:self action:@selector(dismiss)];
dismissButton.imageInsets = UIEdgeInsetsMake(0, 5, 0, 0);
dismissButton.tintColor = [UIColor whiteColor];
[self.navigationItem setRightBarButtonItem:dismissButton];
当我从xcode:
在我的设备上运行按钮时,该按钮位置正确
但是当从testflight安装到右边时:
知道为什么吗?