如何在推文中添加照片库(或照相机)的图像?

问题描述:

我使用iOS 5的Twitter框架,但addimage方法只允许项目图像... 如何从库或相机中选取图像?如何在推文中添加照片库(或照相机)的图像?

Davide,您需要使用UIImagePickerController以使用户从他的照片库中选择一张照片,然后使用生成的UIImage作为addImage的参数。

有很多教程在那里这件事,这是其中之一: http://iosdevelopertips.com/camera/camera-application-to-take-pictures-and-save-images-to-photo-album.html