-[UIActivity activityImage] does not work. Icon remains white.

Originator:testuttech
Number:rdar://12034506 Date Originated:Sun, 05 Aug 2012 10:54:22 GMT
Status:Open Resolved:
Product:iPhone SDK Product Version:6.0 Beta 3
Classification:UI/Usability Reproducible:Always
 
Summary: When subclassing UIActivity, it is necessary to return a UIImage for the activityImage. However, no matter what icon you return, the icon for the activity in the UIActivityViewController remains white.

Steps to Reproduce: Create a custom UIActivity subclass. Return any image for -[UIActivity activityImage]

Expected Results: When presenting a UIActivityViewController with the custom UIActivity, the custom UIActivity's icon will match the icon you returned.

Actual Results: The icon remains white.

Regression: Happens on both iPad and iPhone.

Notes: The sample app included is also included with other bug reports, so to test this bug simply tap the action button at the bottom of the screen and a UIActivityViewController will appear that has a white icon when it should be a custom icon.

Comments

This is intentional

Apple updated their docs: http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivity_Class/Reference/Reference.html#//apple_ref/occ/instm/UIActivity/activityImage

Quote: " Any color data in the image itself is ignored. Opaque pixels have a gradient applied to them and this gradient is then laid on top of a standard background. "


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!