英文:
To Show Mail apps in UIActivityController in Swift - UIKit
问题
在UIActivityController中只显示已安装在iPhone上的邮件应用是否可能?
英文:
I'm new to iOS App Development. Is it possible to show only the Mail apps which was installed in iPhone in the UIActivityController.
答案1
得分: 2
并非完全如此。没有办法指定要在其中显示的应用程序的种类。但是,有一种方法可以指定要排除的服务类型。
UIActivityViewController
具有一个属性 excludedActivityTypes
。您可以排除所有其他活动类型 ,除了 mail
。
您应该能够大大缩小应用程序列表的范围。
英文:
Not exactly. There's no way to specify the kind of apps you want to show in there. However, there is a way using which you can specify the type of services you wish to exclude.
UIActivityViewController
has a property excludedActivityTypes
. You can exclude all other types of activities except mail
You should be able to narrow the list of apps down quite a bit.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论