我之前用的是iOS6.1,现在换成了iOS7,除了其他问题,我观察到在我的导航栏中,iOS7的左栏按钮项的左空间和右按钮栏的右空间都比iOS6大得多.
我需要知道有没有一种方法可以减少导航栏中左右栏按钮项目的空白??
提前谢谢您.
我之前用的是iOS6.1,现在换成了iOS7,除了其他问题,我观察到在我的导航栏中,iOS7的左栏按钮项的左空间和右按钮栏的右空间都比iOS6大得多.
我需要知道有没有一种方法可以减少导航栏中左右栏按钮项目的空白??
提前谢谢您.
我也面临着这个问题.我也觉得iOS7有更大的空间.我计算出这大约多了10个点.当我想要LeftBarItemButton
从边缘开始时,我通常使用负空格.这对您也很有用.
UIBarButtonItem *negativeSpacer = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
negativeSpacer.width = -16; // it was -6 in iOS 6
[self.navigationItem setLeftBarButtonItems:@[negativeSpacer, requiredButton]; /* this will be the button which you actually need */] animated:NO];