UIBarButtonItem在调试版本中正确定位但在发布版本上有偏移吗?

时间:2015-01-26 10:23:54

标签: ios uibarbuttonitem navigationitem

我设置了这样的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:

在我的设备上运行按钮时,该按钮位置正确

enter image description here

但是当从testflight安装到右边时:

enter image description here

知道为什么吗?

0 个答案:

没有答案