关于图片选择器的处理

时间:2014-05-04 10:40:52   收藏:0   阅读:434

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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!