iPhone相机 - 从图书馆选择或拍照 [英] iPhone Camera - Choose from Library or Take Photo
问题描述
请查看下面的图片!
在这张图片...你可以看到一个弹出窗口,给用户3个选项,当他' 相机按钮。
So in this image... You can see a pop-up from the bottom which gives the user 3 options when he 'taps' the 'Camera' button.
该视图是什么?是否为模式视图控制器,在选择某个选项时会被关闭?
What is that view ? Is it a modal view controller which gets dismissed when an option is selected ?
编辑:
所以它是UIActionSheet !我还有一个问题,但StackOverflow会喜欢它,如果我可以编辑问题,而不是一个新的。
So it is UIActionSheet ! I have one more question on this, but StackOverflow would love it if I could edit the question rather than putting up a new one.
所以是的..选项拍照使用UIImagePickerController,取消按钮是resignFirstResponder ...从图书馆选择?如何访问iphone照片库中的照片?任何示例代码?
So yes.. The option "Take Photo" uses the UIImagePickerController, and the "Cancel" button is the resignFirstResponder... What about "Choose From Library" ? How do I access the photos in the iphone photo library ? Any sample code ?
谢谢!
推荐答案
a href =http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIActionSheet_Class/Reference/Reference.html> UIActionSheet
UIActionSheet
这篇关于iPhone相机 - 从图书馆选择或拍照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!