## GridViewの幅が埋まらない。
解決策を教えて頂けると嬉しいです。????
## エラー
実行不可になるエラーではないですが、RUNした時に下記が表示されます。
error
1[LayoutConstraints] Unable to simultaneously satisfy constraints. 2 Probably at least one of the constraints in the following list is one you don't want. 3 Try this: 4 (1) look at each constraint and try to figure out which you don't expect; 5 (2) find the code that added the unwanted constraint or constraints and fix it. 6( 7 "<NSLayoutConstraint:0x600000bf0eb0 V:|-(0)-[UIImageView:0x7faff2507c10] (active, names: '|':UITableViewCellContentView:0x7faff250a270 )>", 8 "<NSLayoutConstraint:0x600000bf0ff0 UIImageView:0x7faff2507c10.top == UITableViewCellContentView:0x7faff250a270.topMargin (active)>", 9 "<NSLayoutConstraint:0x600000bf1630 'UIView-topMargin-guide-constraint' V:|-(11)-[UILayoutGuide:0x6000011a1dc0'UIViewLayoutMarginsGuide'] (active, names: '|':UITableViewCellContentView:0x7faff250a270 )>" 10) 11
## やってみた事など
recipeVC
1 func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { 2 let width = view.bounds.width 3 let cellDimension = (width / 2) - 15 4 return CGSize(width: cellDimension, height: cellDimension) 5 }
## スクリーンショット
質問は以上です。
お時間あるときに、ご返信頂けましたら幸いです????
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。