ViewDidLoad not being called with my custom UIViewController

Posted by user1060500 on Stack Overflow See other posts from Stack Overflow or by user1060500
Published on 2012-12-14T04:06:07Z Indexed on 2012/12/14 5:03 UTC
Read the original article Hit count: 108

Filed under:
|
|

I have created a custom UIViewController class that creates a ScrollView at runtime that it loads into the view. See code here in the constructor of my custom UIViewController.

        initControl(id, canEdit);

        _controllers = new NSMutableArray(0); //required to keep view controllers around

        _scrollView = new UIScrollView();
        _scrollView.BackgroundColor = UIColor.Green;
        this.View = _scrollView; 

ViewDidAppear and ViewWillAppear are called normally.

ViewDidLoad is not called which I am not sure why as the view is showing up on the screen just fine.

Any ideas?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ios