的autoLayout問題,我有一個FirstViewController
與TabBarController
和NavigationController
(TabBarController> NavigationController>的UIViewController)pushViewController原因使用hidesBottomBarWhenPushed(iphone6)
當在firstViewController
按UIButton
,它會推到SecondViewController
。
SecondViewController *vc2 = [self.storyboard instantiateViewControllerWithIdentifier:@"BVC"];
vc2.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:vc2 animated:YES];
在SecondViewController
有與約束右下角的UILabel
- (寬度相等,高度相等,TrailingSpaceToSuperView = 16,BottomSpaceToBottomLayoutGuide = 20)
上iphone4s的結果工作精細(IOS7 ),但在UILabel
將首先出現在右下角加上一個「BottomBar高度」,那麼約1秒將更新到正確的位置iphone6(IOS8.1)(BottomSpaceToBottomLayoutGuide = 20)
當我設置pushViewController
動畫到NO, UILabel
將立即顯示在正確的位置。
[self.navigationController pushViewController:vc2 animated:NO];
任何人都遇到同樣的問題?
當這發生在我身上我通過重置約束來修復它,或者我把它留給XCOde建議來應用約束 – meda 2014-12-03 08:25:33
是的,謝謝你的建議。雖然,當涉及到屏幕按鈕上的查看(Height-Equals TrailingSpace,LeadingSpace,bottomSpace)時,該建議不起作用。 – Jenny 2014-12-03 08:47:24