Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 takePicture,相机会捕获图像(单击),但是它不会调用 imagePickerController:didFinishPickingMediaWithInfo: 方法。那么我们如何访问图像呢?
你注册为picker的代表了吗?你的班级是否实现了 UIImagePickerControllerDelegate?如果你同时做这两件事,代码应该可以工作。Apple 文档中有无数这样的例子。