码迷,mamicode.com
首页 > 其他好文 > 详细

关于图片选择器的处理

时间:2014-05-04 10:41:38      阅读:337      评论:0      收藏:0      [点我收藏+]

标签:style   type   res   view   c   ui   

UIImagePickerController

 


#pragma mark 从用户相册获取活动图片

- (void)pickImageFromAlbum
{
imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate =self;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imagePicker.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
imagePicker.allowsEditing =YES;

[self presentModalViewController:imagePicker animated:YES];
}

----------------------------------------
#pragma mark 从摄像头获取活动图片

- (void)pickImageFromCamera
{
imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate =self;
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePicker.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
imagePicker.allowsEditing =YES;

[self presentModalViewController:imagePicker animated:YES];
}

关于图片选择器的处理,布布扣,bubuko.com

关于图片选择器的处理

标签:style   type   res   view   c   ui   

原文地址:http://www.cnblogs.com/ly1973/p/3705736.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!