いつもお世話になっております。
Portraitの画面からnavigationController.pushViewControllerで遷移するときにLandscapeRightに変更し、画面が自動的に動くするためにQiitaの記事を参考に
UIApplication.sharedApplication().setStatusBarOrientation(.LandscapeRight, animated: true) let vc: UIViewController = UIViewController() self.presentViewController(vc, animated: false, completion: {() -> Void in }) self.dismissViewControllerAnimated(false, completion: {() -> Void in
という記述を追加したところ、下記のエラーが出ました。
the item height must be less than the height of the UICollectionView minus the section insets top and bottom values.
この記述を追加せずに手動で動かして表示させる場合はこのメッセージが表示されません。
ただその画面ではcollectionviewを使用していないので、何が原因なのか
わかる方がいらっしゃいましたらご教授ください。
よろしくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。