iPhone - 应用程序中的相机滚动

时间:2010-09-22 19:39:55

标签: iphone camera

你知道用导航条,向后,向前,删除控件在我的应用程序中显示相机胶卷的方法吗? 谢谢:D

1 个答案:

答案 0 :(得分:0)

您可能想要使用UIImagePickerController:

示例:

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

不要忘记实施委托协议。

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