代码库> 选择器> 兼容iOS9,最好用的图片选择器(微信风格):支持图片多选,支持大图横滑预览,支持放大预览,支持横竖屏
兼容iOS9,最好用的图片选择器(微信风格):支持图片多选,支持大图横滑预览,支持放大预览,支持横竖屏
关注
上传者:springox 分类:选择器(Pickerview)
查看次数:19009 下载次数:1655
上传时间:2014-10-25 大小:128 B
AGImagePickerController
1、一个强大的图片选择器,最好用的ImagePicker,功能完整强大
2、支持图片多选,支持大图横滑预览,支持放大预览,支持横竖屏,支持所有的iOS设备

3、
建议gitHub上面保持关注,会不定期bugs修复和新增特性

https://github.com/SpringOx/AGImagePickerController

Blog:http://springox.w18.net/?p=274










AGImagePickerController *imagePickerController = [[AGImagePickerController alloc] initWithFailureBlock:^(NSError *error) {

        if (error == nil)
        {
            NSLog(@"User has cancelled.");
            [self dismissModalViewControllerAnimated:YES];
        } else
        {    
            NSLog(@"Error: %@", error);
       
            // Wait for the view controller to show first and hide it after that
            double delayInSeconds = 0.5;
            dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
            dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
                [self dismissModalViewControllerAnimated:YES];
            });
        }
           
        [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];
       
    } andSuccessBlock:^(NSArray *info) {
        NSLog(@"Info: %@", info);
        [self dismissModalViewControllerAnimated:YES];
       
        [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];
    }];
   
    [self presentModalViewController:imagePickerController animated:YES];
    [imagePickerController release];


收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
提示
sina weixin mail 回到顶部