我正在学习使用UIPickerController操作相机的教程.但是在实现时UICollectionViewDatsaSource,我得到一个错误,说它ViewController不符合UICollectionViewDataSource协议.
class ViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, UIImagePickerControllerDelegate, UINavigationControllerDelegate
Run Code Online (Sandbox Code Playgroud)
有关如何解决这个问题的任何想法?