LoginSignup
4
4

More than 5 years have passed since last update.

xcode6 + Autoresizing mask使用時のバグ

Last updated at Posted at 2014-10-24

同僚( ハッカドール のiOSエンジニア) に聞いた話をメモっておく。

Xcode6 + autoresizing mask + UITableView でこんなバグがあるらしい
http://stackoverflow.com/questions/26230247/auto-resizing-issue-in-uitableview-in-xcode-6

スクリーンショット 2014-10-24 19.47.48.png

StoryboardでUITableViewのCell上にこんな感じのUILableとAutoresizing maskを設定し、実行してみると・・・

2c68af5cab38c64e7c628319b9fa9c47.png

Autoresizing maskの設定を無視して縦横が意図せず伸びてしまう。

ab80290e4a3d4ac5789e68484425f8d1.png

view構造的にはこんな感じになってる。

このバグを回避するには、コード側でサイズ制御するか、storyboardのソースXMLを直接書き換えるとかしないと駄目っぽい。

Autoresizing Maskはオワコンってことですかね?

4
4
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
4
4