2014-09-30 50 views
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>" 

任何想法,爲什麼加入這兩個約束條件,以及它爲什麼會導致問題?

回答

0

選擇素的觀點在故事板或XIB並選擇要設置的限制to.then就恢復到建議的限制

+0

我不設置它們是由系統transitionFromView的呼叫後添加的約束的觀點 – zeller 2014-09-30 13:54:00