iPhone-应用程式中的相机胶卷 [英] IPhone - Camera roll in app

查看:140
本文介绍了iPhone-应用程式中的相机胶卷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道通过导航栏,后退,前进,删除控件在我的应用程序中显示相机胶卷的某些方法吗?
Thankz:D

Do you know some way to show the camera roll in my app with navigation bar, backward, forward, delete controls?? Thankz :D

推荐答案

您可能要使用UIImagePickerController:

You may want to use the UIImagePickerController:

示例:

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
[self presentModalViewController:picker animated: YES];

不要忘记实现委托协议。

Dont forget to implement the delegate protocol.

这是指向Apple文档的链接: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

Here is a link to Apple's docs: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

这篇关于iPhone-应用程式中的相机胶卷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆