UIActivityViewController未在“更多”中显示我的自定义活动图像。在iOS8上列出 [英] UIActivityViewController not showing my custom activity image in the "MORE" list on iOS8

查看:111
本文介绍了UIActivityViewController未在“更多”中显示我的自定义活动图像。在iOS8上列出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是截图:

Here's the screenshot:

在我的UIActivity的子类中,我重写了-activityImage方法,将自己的图标用于facebook共享项,但它出现在共享面板中,但在MORE列表中消失。

In my subclass of UIActivity, I override the -activityImage method to use my own icon for the facebook share item, but it appears in the share panel but disappears in the MORE list.

推荐答案

相当古老的问题,但也许解决方案对其他人也有帮助!

Quite old question, but maybe the solution is helpful for others too!

UIActivity中子类实现/覆盖方法

- (UIImage *)activityImage {
    return [UIImage imageNamed:@"Activity Icon"];
}

返回要在UIActivityViewController中显示的图像(就像你一样)完成)。

to return the image to be shown in the UIActivityViewController itself (as you've done).

除了这个工具/覆盖方法

In addition to this implement/overwrite the method

- (UIImage *)activitySettingsImage {
    return [UIImage imageNamed:@"Activity Settings Icon"];
}

返回(其他或相同)图像以显示更多/ settings view。

to return an(other or the same) image to be shown in the more/settings view.

这篇关于UIActivityViewController未在“更多”中显示我的自定义活动图像。在iOS8上列出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆