What’s the iOS 7ish approved way of creating the main view in loadView?
init
initWithFrame…screen.bounds
initWithFrame…preferredContentSize
Conversation
Let the parent size you.
2
6
the parent will size me and all the choices work properly, but is any better/worse than the next?
1
1
What if being screen-sized is wrong? Is that *always* what you mean?
2
1
I guess in the end the ? is, is it better performance wise to make an educated guess or not bother.
1
2
Replying to
It probably doesn’t matter.
Replying to
cool that’s what I was trying to figure out, init being simple wins. :^) Thanks.
1
2
Just beware that UIView’s designated initializer remains -initWithFrame:
1
Show replies


