Вопрос

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