gpt4 book ai didi

iphone - UIActionSheet... 如何实现UIImagePicker?

转载 作者:行者123 更新时间:2023-11-29 11:16:54 24 4
gpt4 key购买 nike

我是 iOS 开发的新手...我想在此 View 上添加 3 个按钮:取消、从库中选择和从相机拍摄。我已经知道 ImagePicker 方法。谢谢

最佳答案

Ciao Davide,阅读 UIImagePickerController Class Reference 应该会有用:

You can customize an image picker controller to manage user interactions yourself. To do this, provide an overlay view containing the controls you want to display, and use the methods described in “Capturing Still Images or Movies.” You can display your custom overlay view in addition to, or instead of, the default controls. Custom overlay views for the UIImagePickerController class are available in iOS 3.1 and later by way of the cameraOverlayView property. For a code example, see the PhotoPicker sample code project.

这里有UIImagePickerController类引用:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

这里有 PhotoPicker 示例代码:
http://developer.apple.com/library/ios/#samplecode/PhotoPicker/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010196

关于iphone - UIActionSheet... 如何实现UIImagePicker?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9070234/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com