2014-09-10 76 views
0

在我的應用程序中,我需要從文件系統中選取一張圖像。我知道如何在iOS中做到這一點,但不知道如何在OS X中創建它。 是否有任何工具,如imagePicker或OS X的文件選擇器? 需要幫助。OS X的圖像選擇器或文件選擇器Cocoa

在iOS系統中,我使用這個:

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

提前感謝!

回答