Multiple data from UIActivityItemSource

大憨熊 提交于 2019-12-11 04:39:35

问题


Is there any way to provide multiple objects from a UIActivityItemSource? For example, I would like to provide an NSString and UIImage to Mail, Facebook and Twitter so they are included in the same email/post/tweet. I tried putting the objects in an NSArray and passing that, but it threw and exception.


回答1:


Turned out all I needed to do was provide multiple items to the activity controller, since each activity item source can only provide one item.



来源:https://stackoverflow.com/questions/21468866/multiple-data-from-uiactivityitemsource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!