From iPhone Development Wiki
Revision as of 20:57, 5 September 2013 by Jon889 (talk | contribs) (some info about UIActivity, my wording probably isn't that great)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

UIActivity represents an icon that appear in UIActivityViewController's view. (the iOS 6+ share menu).


You can force a custom activity to appear before another activity by returning the other activity's type string in the method:

-[UIActivity _beforeActivity];

You must also return YES in

-[UIActivity _canAdjustOrder];

Custom Image

If you return an image from the method -[UIActivity activityImage] the alpha will be used as a mask for the metallic grill background. In order to have a fully custom full colour icon return the image from the method:

-[UIActivity _activityImage]