title: iOS8 interactive UILocaNotification- how to hide alertAction from alert options
body: <p><a href="https://i.stack.imgur.com/ubqUB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ubqUB.png" alt="enter image description here"></a>I have implemented iOS8 based interactive UILocalNotification in one of my apps. We needed to change the default text, unlock  in "Slide to unlock.." to "respond". In order to achieve that, I added an alertAction called "respond" while creating the notifications, and it works great. 
  <code>localNotification.alertAction = "respond"</code></p>
  
  <p>However, this is causing an undue problem for me. I only need Option1, Option2 as alert options but now, "respond" comes up as one more option at the top, which is what I don't need.</p>
  
  <p>Is there a way to remove "respond" from the alert action but keep it in the lock text as a replacement of "unlock". Is this even possible? I looked at the API and did not find anything useful.</p>
  
  <p>NB: I wonder if it's not possible at all? - <a href="https://developer.apple.com/library/ios/documentation/iPhone/Reference/UILocalNotification_Class/#//apple_ref/occ/instp/UILocalNotification/alertAction" rel="nofollow noreferrer">https://developer.apple.com/library/ios/documentation/iPhone/Reference/UILocalNotification_Class/#//apple_ref/occ/instp/UILocalNotification/alertAction</a> - says,</p>
  
  <p>alertAction
   Property
  The title of the action button or slider.</p>
  
  <p>Declaration
  SWIFT
  <code>var alertAction: String?</code>
  Discussion
  Assign a string or, preferably, a localized-string key (using NSLocalizedString) as the value. The alert action is the title of the right button of the alert or the value of the unlock slider, where the value replaces “unlock” in “slide to unlock”. If you specify nil, and alertBody is non-nil, “View” (localized to the preferred language) is used as the default value.</p>