Davide Di Febbo
Davide Di Febbo

Reputation: 301

How can I add an image of photo library (or camera) in a tweet?

I'm using the Twitter framework of iOS 5 but the addimage method allows only project images... How can I pick an image from the library or the camera?

Upvotes: 1

Views: 1675

Answers (1)

Shai Mishali
Shai Mishali

Reputation: 9382

Davide, You would need to use UIImagePickerController to make the user select a photo from his Photo Library and then use the resulted UIImage as a parameter for addImage.

There are many tutorials out there about this, Here is one of them: http://iosdevelopertips.com/camera/camera-application-to-take-pictures-and-save-images-to-photo-album.html

Upvotes: 2

Related Questions