iOS Popup Menus?

2010-09-13 Thread Philip Mobley
How do you create the popup (and scrollable) contextual style menus that are in 
Safari's when you click the Bookmark / History button?

I can't find a prebuilt class in the UIKit that uses that specific behavior, 
and find it amazing that there isn't one available.

At this point, I am guessing that I can create one with a custom UIView and 
floating that on top of the main menu that uses a UITableView for the menu 
items.  But there are a number of basic issues that I am not sure how to 
approach, such as the fact that clicking outside the menu would close the menu. 
 (Do I push a full window sized transparent UIView with the menu as a subview 
of that and handle clicks that way?)

Does anyone have code that already does this?

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iOS Popup Menus?

2010-09-13 Thread Dave DeLong
How about a UITableViewController that's presented modally using 
-presentModalViewController:animated:?

Dave

On Sep 13, 2010, at 8:37 PM, Philip Mobley wrote:

 How do you create the popup (and scrollable) contextual style menus that are 
 in Safari's when you click the Bookmark / History button?
 
 I can't find a prebuilt class in the UIKit that uses that specific behavior, 
 and find it amazing that there isn't one available.
 
 At this point, I am guessing that I can create one with a custom UIView and 
 floating that on top of the main menu that uses a UITableView for the menu 
 items.  But there are a number of basic issues that I am not sure how to 
 approach, such as the fact that clicking outside the menu would close the 
 menu.  (Do I push a full window sized transparent UIView with the menu as a 
 subview of that and handle clicks that way?)
 
 Does anyone have code that already does this?


smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: iOS Popup Menus?

2010-09-13 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/13/10 7:37 PM, Philip Mobley wrote:
 How do you create the popup (and scrollable) contextual style menus
 that are in Safari's when you click the Bookmark / History button?
 
 I can't find a prebuilt class in the UIKit that uses that specific
 behavior, and find it amazing that there isn't one available.
 
 At this point, I am guessing that I can create one with a custom
 UIView and floating that on top of the main menu that uses a
 UITableView for the menu items.  But there are a number of basic
 issues that I am not sure how to approach, such as the fact that
 clicking outside the menu would close the menu.  (Do I push a full
 window sized transparent UIView with the menu as a subview of that
 and handle clicks that way?)
 
 Does anyone have code that already does this?

I assume you are talking about on iPad?

UIPopoverController:

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIPopoverController_class/Reference/Reference.html


- -- 
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMjuERaOlrz5+0JdURArH5AJ9yrnrxFYaGDfEXxH0UKiFE/VjiMwCfSUfC
6IjnvnDBVgu46BM12PsN0QI=
=XER6
-END PGP SIGNATURE-
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com