1
我試圖使用transitionFromViewtransitionFromView不會爲iOS8上
[UIView transitionFromView:fromView
toView:weakSelf.logoFlipTurnPhoneAnimationImageView
duration:0.6
options:UIViewAnimationOptionTransitionFlipFromBottom
completion:^(BOOL finished)
{}
它適用於ios7但在iOS8上(在上海華以看不見的區域)的過渡視圖框移動之後可能是由正常工作限制。
我打印的約束陣列
前前後:
"<NSLayoutConstraint:0x78f0cc60 V:[UIImageView:0x78f0c070(113)]>",
"<NSLayoutConstraint:0x78f0cc90 H:[UIImageView:0x78f0c070(113)]>"
後
"<NSLayoutConstraint:0x78f0cc60 V:[UIImageView:0x78f0c070(113)]>",
"<NSLayoutConstraint:0x78f0cc90 H:[UIImageView:0x78f0c070(113)]>",
"<NSContentSizeLayoutConstraint:0x79216d00 H:[UIImageView:0x78f0c070(113)] Hug:250 CompressionResistance:750>",
"<NSContentSizeLayoutConstraint:0x7b86aaf0 V:[UIImageView:0x78f0c070(113)] Hug:250 CompressionResistance:750>"
任何想法,爲什麼加入這兩個約束條件,以及它爲什麼會導致問題?
我不設置它們是由系統transitionFromView的呼叫後添加的約束的觀點 – zeller 2014-09-30 13:54:00