Can viewDidLoad be called before the "init" viewController is fully executed?

What are the complete sequence events in terms of loading the view controller into memory from init to view DidLoad?

If you do something like:

TabControllerClass *cc = [[TabControllerClass alloc] initWithCustomData:something];

Is it possible to call the viewDidLoad class before you reach the end of the custom init method, initWithCustomData?

- (id)initWithCustomData:(NSString *)something
{
    if (self = [super init])
    {
        // A bunch of other initialization happens
    }

    // Would you reach here before 'viewDidLoad' is invoked?
    return self;
}

where is my TabControllerClass inherited from UITabBarController.

+5
source share
1 answer

, . , , ? , -[ControllerClass initWithCustomData] , , .

+3

All Articles