How to use a pop-up menu in iOS? - ios

I want to use a pop-up menu when I click on a plus icon in the navigation bar that looks like the pic I attached. Can you please instruct me how can I accomplish that?
Thanks a bunch!
Thanks for the help guys, I got my answer, and if someone is looking for a direct link to the apple documentation here it is: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/UIActionSheet.html#//apple_ref/doc/uid/TP40012857-UIActionSheet

As rdelmar says, that's a UIActionSheet. #rdelmar, you should post that as an answer so the OP can accept it.
You would add a UIBarButtonItem built from a custom view (a button) and attach an action to the button that invokes and displays a UIActionSheet.
EDIT:
This is VERY old thread. UIActionSheet has been deprecated for years, and the right solution now is to use the action sheet appearance of a UIAlertController

Related

Adding a color picker in UIAlertView

In my iPhone application, i want a color picker to be added on a button click pop up. Can anyone please suggest how to proceed with it. Read several online materials but not finding a good start point.
Thanks in advance
You can use kartech/Colorpicker , here is link
https://github.com/kartech/colorpicker

Using a standard toolbar or ios navigation bar icon

I see the documentation here: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/BarIcons.html
But is there anyway to get the icon by itself? Where is an example of this?
Thanks.
Use a UIBarButtonSystemItem which has the predefined icons.
They are located here: https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/index.html#//apple_ref/c/tdef/UIBarButtonSystemItem

Action Menu in IOS 7

I'm looking for the menu that pops up when you want to set a photo as wallpaper, where you have a series of options. I'm going to link this to a Action BarButtonItem in a ToolBar and was wondering if you know of any good tutorials for this or have got some code if it's a short and easy thing to do?
I know this is a short question but I really need answer to this, at least to know what the menu is "officially" called ;)
Thanks!
Assuming you are looking for UIActionSheet. These guys have pretty good tutorials. I watched all their tutorials and I think this one will help you out with that.
This is what UIActionSheet Looks like in iOS 7

How to access Send or Cancel buttons in MFMailComposeViewController even though it's evil [duplicate]

I want to customize the MFMailComposeViewController such that it has my custom images/buttons instead of the default "cancel" and "send" buttons. I tried googling for an answer but couldn't find anything
that could help me.
Any help is really appreciated.
Thanks in advance..
You can't change MFMailComposeViewController. Quoting the documentation:
Important: The mail composition interface itself is not customizable and must not be modified by your application.

iPhone Share Button

How can I recreate this, something found throughout native iPhone apps such as Safari and Photos.
I'm assuming it is pretty simple, I just don't even know what it is called so I'm having trouble finding out how.
It is usually reached using an action (or export or something) button.
The same functionality is called as UIActionsheet. You can get plenty of examples for the same on SO itself.
you are looking for whats called a UIActionSheet
check this out for more info
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIActionSheet_Class/Reference/Reference.html
you have to create action sheet https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets

Resources