title: xcode push notification after click OK or Don't allow
body: <p>I will write some code for asking user for enable push notification on xcode 5 for ios7.1 and here is my code.</p>
  
  <pre><code>- (IBAction)funcTabToAllow:(id)sender
  {
      [self PushAllow];
  }
  
  - (BOOL)PushAllow
  {
      [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
       (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
  
      return YES;
  }
  </code></pre>
  
  <p>And anything working fine, and now when user click to my button, an alert box is showing for asking user <strong>OK</strong> or <strong>Don't allow</strong>, here is image.</p>
  
  <p><img src="https://i.stack.imgur.com/adlJL.jpg" alt="enter image description here"></p>
  
  <p>Now how to know if user touch <strong>OK</strong> or <strong>Don't allow</strong>? I want if user click <strong>OK</strong> i will write some log.</p>
  
  <p>Thanks for help. </p>