0

I am trying to, when a button is pressed, a small menu comes up, like NSRunAlertPanel in Cocoa. It is like in iOS, when you press reset, it gives you options to continue, or go back. Image:menu

How do I do this?

XtremeHek3r
  • 381
  • 2
  • 16
  • https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActionSheet_Class/ – thelaws Feb 18 '15 at 22:57
  • possible duplicate of [Creating iPhone Pop-up Menu Similar to Mail App Menu](http://stackoverflow.com/questions/911137/creating-iphone-pop-up-menu-similar-to-mail-app-menu) – thelaws Feb 18 '15 at 22:58
  • @thelaws This is not a dupe of that question, since the answers there recommend `UIActionSheet`, which is deprecated. – Aaron Brager Feb 18 '15 at 23:00
  • @AaronBrager The very next answer links the UIAlertController. – thelaws Feb 18 '15 at 23:06

1 Answers1

0

As noted above, the answer to this is UIActionSheet in iOS < 8 and UIAlertController for iOS >= 8. Easier to grab a library that's abstracted that away for you; these look good.

Objective-C: MSAlertController for iOS

Swift: SimpleAlert for iOS

Alex Curylo
  • 4,744
  • 1
  • 27
  • 37