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];
        }

  • 相关阅读:
    LINUX超级用户(权限)在系统管理中的作用
    LINUX对超级用户和普通用户的理解
    LINUX设置SUID,SGID,Stick bit
    LINUX文件权限
    LINUX文件类型
    LINUX查询用户命令
    LINUX用户身份切换
    ACL权限设置
    Linux用户密码策略
    linux库列表
  • 原文地址:https://www.cnblogs.com/lisa090818/p/4424322.html
Copyright © 2011-2022 走看看