3

是否可以在消息编辑器中填写接收者电话号码(Apple id)以通过 [NSSharingServicesharingServiceNamed:NSSharingServiceNameComposeMessage] 分享?

4

1 回答 1

0

您可以使用recipientsNSSharingService 的属性。它是一个可以填充多个接收器的数组。

let service = NSSharingService(named: NSSharingServiceNameComposeMessage)

let items = [<someItems>] as [AnyObject]
service?.recipients = ["mail@provider.com", ...]
service?.delegate = self
service?.performWithItems(items)
于 2015-04-25T05:22:11.687 回答