Search code examples
iosobjective-cuiviewcontrollerprotocolsviewdidload

How do I call viewDidLoad Manually?


I'm having a slight problem with iOS. I am passing data back and forth between two view controllers using protocols and manually switching views. My problem is that when I dismiss the top view, viewDidLoad for the bottom view isn't called again. Since I'm sending information from my second view to my first view, I need viewDidLoad to be called so I can handle the information I'm passing. If you have any ideas on how to do this, any help is appreciated. Thank you.


Solution

  • use -(void)viewDidAppear:(BOOL)animated instead of viewDidLoad