xcode9
クイズアプリをSwift4で作成しています。
例えば、
UICollectionViewController①から、
UIViewController①への遷移はできるのですが、
UICollectionViewController①から、
UICollectionViewController②へ遷移できるコードが見つかりません。
@objc func buttonPush(_ sender: UIButton) { let vc = MyscoreController() navigationController?.pushViewController(vc, animated: true) }
上記のコードではボタンをタップするとクラッシュし、
'UICollectionView must be initialized with a non-nil layout parameter' とエラーが出ます。
UICollectionViewController①をイニシャルビューにしたいです。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/03/13 03:41 編集
2018/03/13 03:55
退会済みユーザー
2018/03/13 04:01
2018/03/13 04:07
退会済みユーザー
2018/03/13 04:36