[Solved] Is it true that using view controllers and viewDidLoad method for implementing my methods? [closed]


You don’t have to use (performSelector:withObject:afterDelay:) all the time ! Say you have two methods implemented in your viewController :

-(void) firstMethod 
{
   //do stuff here
}

-(void) secondMethod 
{
   //do stuff here
}

you can call those methods this way :

- (void)viewDidLoad
{
    [super viewDidLoad];

    [self firstMethod];

    [self secondMethod];

}

Now what we have is when your app is about to load its viewControllers’s view, firstMethod is called then the second 😉

solved Is it true that using view controllers and viewDidLoad method for implementing my methods? [closed]