LoginSignup
0
1

More than 3 years have passed since last update.

collectionViewのReadableContentView(FollowReadableWidth)が機能しない場合

Last updated at Posted at 2019-12-09

collectionViewに直接FollowReadableWidthを設定するのではなく、collectionViewの下にViewを敷いてViewに対してFollowReadableWidthを設定してみよう。

① viewを配置
② viewのAutoLayoutはConstrain to Marginsにチェックを入れて 0,0,0,0
③ viewに対してFollowReadableWidthのチェックをON
④ collectionViewを配置してcollectionViewのAutoLayoutは Constrain to Marginsにチェックを入れて 0,0,0,0
⑤ あとはいつも通りcollectionViewをセットするだけ。

[FollowReadableWidth]
 201<img width=

[Constrain to Margins]
 2019-12-09 17.45.15.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1