When my app’s “applicationWillTerminate” function is called in the app’s delegate file I need to loop through each child controller of a tab controller and save the current state it is in. Is it possible to loop through each viewController calling a custom save function?
When my app’s applicationWillTerminate function is called in the app’s delegate file I need
Share
Get the
tabBarController.viewControllersand send themakeObjectsPerformSelector:@selector(yourCustomSaveMethod)message to that array.