iPad 上全屏的 UIImagePicker

发布于 2024-08-28 14:58:05 字数 512 浏览 1 评论 0原文

对于我的测试,我需要在 iPad 上创建一个简单的应用程序 步骤 1. 从照片库 (UIImagePickerController) 加载图像。 步骤2.然后,该图像被转换为​​纹理并显示到OpenGL ES视图中。

我开始使用 XCode Open GL ES 模板定义应用程序。 第2步就可以了。 但我在启动 UIImagePickerController 时遇到问题(步骤 1)。

在 iPad 上,要创建 UIImagePickerController,我们需要使用 UIPopoverController。 但是要创建 UIPopover,我们需要将其附加到内容视图控制器

在我的应用程序中,我不想定义特定的视图控制器(导航或 SplitView 或 TabBar...)。我只需要在启动应用程序时让 UIImagePicker 全屏显示。

我正在寻找一种编程解决方案,从 Open GL ES iPad 模板中添加最少的代码行,以执行步骤 1(步骤 2 对我来说没问题)。

有可用的代码吗? 感谢您的帮助 塞布

For my tests, I need to create a simple app on the iPad to
step 1. loads an image from the Photo library (UIImagePickerController).
step 2. Then, this image is converted into texture and displayed into an OpenGL ES view.

I started to define the app with the XCode Open GL ES template.
Step 2 is Okay.
But I have a problem launching the UIImagePickerController (step 1).

On iPad, to create a UIImagePickerController, we need to use a UIPopoverController.
But to create a UIPopover, we need to attach it to a content view controller

In my app, I dont want to define a specific view controller (Navigation or SplitView or TabBar...). I just need to have the UIImagePicker displayed on full screen when launching the app.

I am looking for a programatical solution with a minimum of lines of code added from the Open GL ES iPad template, to perform step 1 (step 2 is okay for me).

any code available?
Thank you for your help
Seb

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随波逐流 2024-09-04 14:58:06

我遇到了和你一样的问题,我认为苹果可能会故意阻止访问相机胶卷,因为他们特别提到在 iPhoneOS 4.0 版本中开放对相机胶卷的访问,而当前的消费者 iPad/手机操作系统是3.2. iPhone 4.0 将于今年夏天推出,但我还没有听说 iPad 也有同样的情况。我当然希望如此。如果你解决了这个问题,请随时给我写信:-) 谢谢,祝你好运!

雷内·沃格特-洛厄尔
[电子邮件受保护]
http://CreatorsInk.com

I am running into the same exact problem as you and I am thinking that accessing the Camera Roll might be purposefully blocked by Apple as they specifically mention opening up access to the Camera Roll in version 4.0 of iPhoneOS while the current consumer iPad/Phone OS is 3.2. 4.0 will become available to us in the summer for the iPhone but I haven't heard of the same being true for the iPad. I sure hope so though. Feel free to drop me a line if you figure this one out :-) Thanks and good luck bud!

Rene Vogt-Lowell
[email protected]
http://CreatorsInk.com

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文