I'm updating one of my apps and in the process I've decided to adopt Storyboard. I was getting really weird behavior with the same code. I've pulled out all the pieces and I've narrowed it down. If I make a project, and the only thing I put in the main view is a scrollview and then I try to NSLog it's width, there are these differences…
With Storyboard, I can't measure the width of the scrollview until viewDidAppear. With a xib, I can measure the width in viewDidLoad, and all my other code works fine because the scrollview appears to be ready for all the stuff I want to do.
Can someone explain why Storyboard doesn't seem ready for me until viewDidAppear? I don't really want to modify the interface after the view has appeared, but with Storyboard that seems to be the only way to get it to work.
Am I missing something? Is there a relevant document I should be reading about this difference between xibs and storyboard?
Thanks,
-Jon
--
You received this message because you are subscribed to the Google Groups "NSCoderNightDC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nscodernightdc+unsubscribe@googlegroups.com.
To post to this group, send email to nscodernightdc@googlegroups.com.
Visit this group at http://groups.google.com/group/nscodernightdc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 comments:
Post a Comment