Question : Does viewdidload ever not-get-called?

In my xcode app,

I am making a tabBarApp

and I can get labels label1 and label2 to show on the screen on a tab (left, first tab)

but viewdidload never seems to get called on the first tab.
TO check on it, I did a print on one of the labels

- (void)viewDidLoad {
      testx = 0;
      label1.text = [NSString stringWithFormat:@"%dxxxxxx", 12345];
and it doesn't seem to get called at the very beginning.
What could be wrong?

Answer : Does viewdidload ever not-get-called?

Put there NSLog("I'm here") into viewDidLoad and check in the console if you see this string.

Are you sure that you create the view controller correctly?
If you do see the view correctly on the screen (not this text but all controls), check the signature of the method:
- (void)viewDidLoad {
    [super viewDidLoad];

    // Your code here

Random Solutions  
programming4us programming4us