zoukankan      html  css  js  c++  java
  • ELCImagePickerController 的集成

    • 1,  将文件夹ELCImagePicker拷贝到工程中
    • 2,添加系统库AssetsLibrary.framework
    • 3,  添加系统库MobileCoreServices
    • 4,在头文件中加入引用#import "ELCImagePickerHeader.h"
    • 5,在头文件中加入delegate的引用ELCImagePickerControllerDelegate
    • 6,  替换之前的UIImagePickerController相关的初始化代码为

            ELCImagePickerController *elcPicker = [[ELCImagePickerController alloc] initImagePicker];
            elcPicker.maximumImagesCount = 100; //Set the maximum number of images to select to 100
            elcPicker.returnsOriginalImage = YES; //Only return the fullScreenImage, not the fullResolutionImage
            elcPicker.returnsImage = YES; //Return UIimage if YES. If NO, only return asset location information
            elcPicker.onOrder = YES; //For multiple image selection, display and return order of selected images
            elcPicker.mediaTypes = @[(NSString *)kUTTypeImage, (NSString *)kUTTypeMovie]; //Supports image and movie types
            elcPicker.imagePickerDelegate = self;
            [self.navigationController presentViewController:elcPicker animated:YES completion:nil];

    • 7, 屏蔽之前的didFinishPickingMediaWithInfo 和 imagePickerControllerDidCancel而替换成

      - (void)elcImagePickerControllerDidCancel:(ELCImagePickerController *)picker
        {
            [self dismissViewControllerAnimated:YES completion:nil];
        }

      - (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info{
        
            [picker dismissViewControllerAnimated:YES completion:nil];
        }

  • 相关阅读:
    MyBaits基本要素
    自定义MVC
    mybatis之多个对象自动装配问题
    idea之映射servlet问题
    idea工程jdk设置问题
    初识多线程之基础知识与常用方法
    多线程之模拟数据库连接
    mybatis配置文件详解
    初识mybatis之入门案例
    mybatis中打印sql语句
  • 原文地址:https://www.cnblogs.com/lisa090818/p/4424322.html
Copyright © 2011-2022 走看看