ImageFilesPicker 是一个设计精美的 UI 组件,用于上传内容
从最近的照片流中预览
实时相机即时分享!
通过 Dropbox、驱动等上传文件
检查相机访问权限,并在实时权限更改时采用 UI 展示
ImageFilesPicker 作为一个常规控制器工作,只需实例化它并呈现它。
self.filePicker = [[JVTImageFilePicker alloc] init];
self.filePicker.delegate = self;
[self.filePicker presentFilesPickerOnController:self];
ImageFilesPicker 有两个代理方法,将通知您用户正在做什么
- (void)didPickFile:(NSData *)file
fileName: (NSString *) fileName {
NSLog(@"Did pick file");
}
- (void)didPickImage:(UIImage *)image
withImageName:(NSString *) imageName {
NSLog(@"Did pick image");
}
ImagePicker 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'ImageFilesPicker'
别忘了在功能中启用 iCould,以进行文件共享。
Matan 用❤️制作了这个组件
Copyright 2013-2016 Jive Software, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://apache.ac.cn/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.