程序员iOS DeveloperiOS开发

iOS笔记-UIImagePickerController使用小

2016-04-11  本文已影响1273人  Developer_Yancy

弹出UIImagePickerController(照片选择器)

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
    // 获取用户选择照片
    UIImage *image = info[UIImagePickerControllerOriginalImage];

    //把Modal出来的imagePickerController弹出
    [self dismissViewControllerAnimated:YES completion:nil];

    // 在此处理图片
}
上一篇下一篇

猜你喜欢

热点阅读