问题描述
是否有要从UIActivityViewController删除底部的部分?
Is there anyway to remove the bottom part from UIActivityViewController?
也-是否有从UIActivityViewController中删除更多图标的方法?
also - Is there anyway to remove the MORE icon from UIActivityViewController?
谢谢
推荐答案
在 iOS 8.2 中, UIActivityViewController
仅显示 UIActivityCategoryShare
的一行活动类型,如果我们不提供任何自定义 UIActivity
.
In iOS 8.2, UIActivityViewController
shows only a single row for UIActivityCategoryShare
activity types if we do not provide any custom UIActivity
.
在 iOS 8.3 之后,无论您是否提供自己的自定义 UIActivity
, UIActivityViewController
都会显示两行.
In iOS 8.3 onwards, UIActivityViewController
shows two lines whether you provide your own custom UIActivity
or not.
下面是这两个屏幕截图:
Below are the screenshots for both:
对于iOS 8.2
对于iOS 9.0
这就是Apple设计 UIActivityViewController
的方式.您可以在 UIActivityViewController
中提供自定义功能,但不能提供自定义用户界面.
This is how Apple has designed the UIActivityViewController
. You can provide custom functions but not custom user interface in UIActivityViewController
.
这篇关于UIActivityViewController删除底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!