As we all know, applicationDidBecomeActive will call when we open and close the Bottom Control Center / Top Noficication Center.
But I want to know in the applicationDidBecomeActive when only because of these 2 events, to handle some functionality when user opens and close Notification Center or Control Center.
- (void)applicationDidBecomeActive:(UIApplication *)application
{
if(/*Code for DidBecomeActive Called Because of Contol Center*/ --- )
{
}
if(/*Code for DidBecomeActive Called Because of Notification Center*/)
{
}
}
Any one help me to findout
Code for DidBecomeActive Called Because of Notification Center
Code for DidBecomeActive Called Because of Contol Center