0

I have created a UIActionSheet that can display to the user, "Choose Existing Photo" and "Take Photo"

They work just fine. However, instead of choosing an existing photo from the user's library, I want to have them select a premade icon set that I will provide in a UICollectionViewController.

When doing the camera roll, it's as easy as using the line

mediaPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

where mediaPicker is a UIImagePickerController.

I'm sure what I am trying to do is close to the same lines. I have a UICollectionViewController with the icons displayed there, and I want the user to choose one of those so, the exact same functionality of the choosing from photo library.

Any ideas?

Thanks

4

1 回答 1

0

您需要自定义自己的 UIImagePickerController。

有些人为此创建了课程。

您可以在此处找到一个示例在此处找到另一个示例。

于 2013-09-28T09:00:59.660 回答