Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
i have a scroll view and on that scroll view i can add uibuttons and uiimageviews fine using the addSubview method

then when i create an instance of a subclass of UIViewController and add that view to it the view loads but it doesn't show
the viewWillAppear: method doesn't even get called but the viewDidLoad: method does

how is it possible for a view to be added to another view and not show up?
 
i have a scroll view and on that scroll view i can add uibuttons and uiimageviews fine using the addSubview method

then when i create an instance of a subclass of UIViewController and add that view to it the view loads but it doesn't show
the viewWillAppear: method doesn't even get called but the viewDidLoad: method does

how is it possible for a view to be added to another view and not show up?

It's hidden, it's off the screen, it's nil.

Without a code sample all we could do is guess wildly.
 
well, wild guesses are better than none

turns out the frame rectangle was a zero rect

such faults take up so much time to figure out and then you find out that you just needed to insert one line of code... *sigh* :rolleyes:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.