iOS 8 - AutoLayout issue - UIImageView inside UITableViewCell ignoring width constraints

不想你离开。 提交于 2019-12-05 08:11:21

I'd probably wire IBOutlets to the width constraints and change the widths to 0 on rotation.

I had similar issue but solved by following method

  1. Added one DummyView inside UITableViewCell and Pin all side of DummyView to UITableViewCell .

  2. Now add all Image , Label and other subiview inside DummyView.

  3. Create IBOutLet for DummyView and subView you added.

  4. Programmatically remove all constraints

  5. Programmatically add all constraints based on device orientation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!