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