Programming iOS

Answers to some frequently asked iOS programming questions

Menu

Skip to content
  • About Matt Neuburg
  • The Posts

Views

Don’t do premature layout

Posted on December 8, 2019September 2, 2020 by Matt Neuburg

This comes up on Stack Overflow often enough that it seems worth a little article here. The issue is this: You set the frame of a view or layer in code, but it doesn’t seem to come out in the right place. The reason is usually that you’re doing this too soon.

Continue reading →
Posted in View Controllers, Views

Recent Posts

  • Don’t do premature layout
  • The dreaded double-segue mistake
  • Don’t touch my outlets
  • Don’t make a new view controller by mistake, part 2
  • Don’t make a new view controller by mistake!

Categories

Proudly powered by WordPress | Theme: Kelly by WordPress.com.