Skip to content

Instantly share code, notes, and snippets.

@blacklee
Last active January 1, 2016 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blacklee/8108962 to your computer and use it in GitHub Desktop.
Save blacklee/8108962 to your computer and use it in GitHub Desktop.
when layoutSubviews do not work
当 layoutSubviews 里设置了 frame 但是界面不刷新时,检查一下 xib 里面是不是勾上了 use Autolayout ,把这个去掉就好
When you have set frame in layoutSubviews but it do not refresh the view, we should uncheck the [use Autolayout] in xib.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment