Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
UIActivity - iPhone Development Wiki

UIActivity

From iPhone Development Wiki
Revision as of 04:37, 6 September 2013 by Britta (talk | contribs) (testing addition of navbox)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Ordering

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] then the alpha will be used as a mask for the metallic grill background. In order to have a custom full-colour icon, return the image from this method:

-[UIActivity _activityImage]