1.设置调用相册和相机:右键Info.plist, 选择Open as--source code, 插入
<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
2.使用
AddPhotoView *pv = [[AddPhotoView alloc] init];
pv.frame = CGRectMake(0, 100, self.view.frame.size.width, 0);
//换行时向上延伸
pv.addLineUP = YES;
pv.backgroundColor = [UIColor grayColor];
[pv getPhotoWithController:self andDelegate:self];
[self.view addSubview:pv];
AddPhotoView 2.zip
(85.13 KB, 下载次数: 521)
2016-12-25 15:51 上传
点击文件名下载附件封装的添加图片类, 调用相机也一并处理了, 不用调用UIAlertController ,论文,开题报告