2017-08-16 3 views
0

コレクションビューがiOS 10.3.3で上に移動します。しかし、iOS 11.0で正常に動作します。 は、いずれかの私は、バージョンコレクションビューの配置の問題点が異なるバージョン

enter image description here

CollectionView制約でrealtedているこの種の問題を解決する方法を知らせることができます。 CollectionViewが問題を上に移動するために enter image description here

UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; 
MSProductCategoryViewController 
*msProductCategoryViewController = [storyBoard instantiateViewControllerWithIdentifier:@"MSProductCategoryViewController"]; 
msProductCategoryViewController.title =titleName; 
[self.navigationController pushViewController:msProductCategoryViewController animated:YES]; 
+0

あなたは制約をチェックしましたか?バージョンの問題ではありません。 –

+0

My Constrains fine! – kiran

+0

コレクションビューの制約を表示します。 –

答えて

-1

あなたはストーリーボードであなたのViewControllerのプロパティ「スクロールビューのインセットの調整」を選択解除しているかどうかを確認してください。

Attributes Inspector of ViewController

あなたは20の値で上位の制約を追加しています。私はあなたがコレクションビューのために上部のパディングを追加したかったと仮定します。それが理由なら、CollectionViewの "Section Insets"プロパティを使うことをお勧めします。

関連する問題