显示邮件应用程序在Swift中的UIActivityController中 – UIKit

huangapple go评论56阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年2月14日 21:58:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/75448881.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定