I am trying to load the images received from a contact in iMessage, but I have not found in iOS SDK to do this.

  • Load the contents of incoming iMessages.
  • Load the images received by iMessage.

Someone who knows how to help me?

有帮助吗?

解决方案

This can not be done with on iOS with the iOS SDK. Due to privacy concerns Apple does not allow access to any messages received via the messages.app.

其他提示

If you're looking to pull images directly from the Messages app, then no you can't do that. If however, you're okay with only viewing the images that the user has chosen to save to the camera roll, then yes you have a few options.

You can use the UIImagePickerController class to allow the user to select photos from their camera roll, or the AssetsLibrary Framework to get references to these images without the user selecting them. Both solutions do require the user granting you access to the camera roll though.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top