views:

17

answers:

1

I am pushing a new view controller called SecondViewController from my FirstViewController.

I have a method called build2ndView which I call on my view SecondViewController and it adds a bunch of items to a UIScrollView.

When should I call this build2ndView method? In the SecondViewController's viewdidLoad method?

The reason I'm asking is the build2ndView method is being called but the items don't appear in the UIScrollView even though I have debugged it and the build2ndView is being called. Previously I had an a-sync call that had to happen before build2ndView was called and it built the view fine. Now that it is being loaded immediately the items that build2ndView builds aren't showing up.

Any help would be most appreciated.

A: 

Thanks to tonclon I put it in the viewDidLoad method. That fixed it.

Mike Simmons