1.swift3.0中调用相机和相册会导致崩溃
@H_502_4@ 1.需要在info.plist
文件中加入两个键值对,如下:
- 1
- 2
- 3
- 1
- 2
- 3
2.UIImagePickerControllerSourceType
枚举
- 1
- 2
- 3
- 4
- 5
3.功能实现Demo
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
4.UIImagePickerController
协议
@H_502_4@
1.需要遵循2个
协议:
@H_502_4@
UIImagePickerControllerDelegate
UINavigationControllerDelegate
5.常用imagePickerController代理
方法
- 1
- 2
- 3
- 4
- 5
- 6
6.打印信息