I have created a subclass of UIActivity to present a custom activity on the Activity Sheet within my app. However I cannot get it to show my icon.
I have tried a few different images at typical icon sizes, e.g.:
- (UIImage *)activityImage {
return [UIImage imageNamed:@"my_app_icon.png"];
}
but I just get a gray square and my icon does not show at all.
EDIT: the real problem was that my XCode docs were out of date, so I did not have the information that the maximum image size is very limited.
It doesn't look like you can set a background image to your UIActivity
. According to the official doc: any color data in the image itself is ignored
only the alpha is taken in account to act as a mask.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With