OS X Cocoa的图像选择器或文件选择器

时间:2014-09-10 16:38:54

标签: image macos cocoa

在我的应用程序中,我需要从文件系统中获取图像。我知道如何在iOS中完成它但不知道在OS X中制作它。 对于OS X,是否有像imagePicker或文件选择器这样的工具? 需要帮助。

在iOS中我使用:

UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

提前致谢!

1 个答案:

答案 0 :(得分:3)

在Mac上,IKPictureTaker与UIImagePickerController类似。

https://developer.apple.com/documentation/quartz/ikpicturetaker