在我的应用程序中,我需要从文件系统中获取图像。我知道如何在iOS中完成它但不知道在OS X中制作它。 对于OS X,是否有像imagePicker或文件选择器这样的工具? 需要帮助。
在iOS中我使用:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
提前致谢!
答案 0 :(得分:3)
在Mac上,IKPictureTaker与UIImagePickerController类似。
https://developer.apple.com/documentation/quartz/ikpicturetaker