Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Bubble Popup Menu similar to ITunes

Could anyone provide some guidance on how to implement that speech-bubble like popup menu when you click "More" in the IPhone IPod application toolbar?

like image 293
Oliver Weichhold Avatar asked Nov 27 '11 12:11

Oliver Weichhold


1 Answers

I think you are looking for UIPopoverController. Popover controllers are just containers for view controllers: write a view controller that does what you want, and you're set. But this is for iPad. If you want this for iPhone, then read on. I have put up some solutions.

You could even explore UIActionSheet but UIPopOverController gives more flexibility.

I believe you are talking about something like this ?

enter image description here

Here are some solutions you could adopt -

  1. Forgot that you wanted this for iPhone, Have a look at the iPhone UIPopoverController implementation: WEPopover

  2. On iPhone you would generally use a UIActionSheet for a stack of buttons like that. It slides up from the bottom, rather than popping up next to the button, but that's the standard behavior on iPhone.

  3. Or you could manually instantiate a UIView using a custom background image or drawing with transparency, add some UIButtons (or other type of custom view) on top, and also somehow handle all touches outside that view.

Note that is is non-standard UI. An actionsheet would be more HIG compliant.

like image 70
Srikar Appalaraju Avatar answered Oct 18 '22 02:10

Srikar Appalaraju