This question already has an answer here:
I would like to create this kind of menu, of course with other menu buttons. Is there any default viewcontroller representing it, or do I have to get images and create this by myself.
This question already has an answer here:
I would like to create this kind of menu, of course with other menu buttons. Is there any default viewcontroller representing it, or do I have to get images and create this by myself.
You need to use a
UIActionSheet
.First you need to add
UIActionSheetDelegate
to your ViewController.h file.Then you can reference an actionsheet with:
Then you have to handle each of the calls.
This has been deprecated for iOS 8.x https://developer.apple.com/documentation/uikit/uialertcontroller#//apple_ref/occ/cl/UIAlertController
What you are looking for is called an actionsheet. Read more about it here http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIActionSheet_Class/Reference/Reference.html
Take a look at the UIActionSheet documentation.
It is called an UIActionSheet: You create one like so:
Implement the UISctionSheetDelegate to respond to button action.
Take a look at this tutorial for more info: http://mobile.tutsplus.com/tutorials/iphone/uiactionsheet_uiactionsheetdelegate (Code is from this tutorial)