开发者

Library photos as source to UIImage

开发者 https://www.devze.com 2022-12-20 17:54 出处:网络
How to give images开发者_JS百科 in photo library and camera as source to UIImage /* On button click i want to save image */

How to give images开发者_JS百科 in photo library and camera as source to UIImage

/* On button click i want to save image */
myImage = /*What i have to give here to take camera or library images*/
UIImageWriteToSavedPhotosAlbum(myImage, self,
    @selector(image:didFinishSavingWithError:contextInfo:), nil);


You need to use the UIImagePickerController object. It will present the modal view that allows either taking a picture or selecting an image from the device library. You should also become familiar with the UIImagePickerControllerDelegate protocol. With these two, it is easy to interact with both the camera and on-device library.

0

精彩评论

暂无评论...
验证码 换一张
取 消