Monotouch - 带有 iPad 应用程序的 UIImagePickerController
我有一个仅限 iPad 的应用程序,我试图允许用户从他们的 PhotoLibrary
中选择图像,据我所知,我必须在 UIImagePickerController
中使用 UIImagePickerController
>UIPopOverController。我尝试了很多不同的方法来做到这一点,但我可以让任何事情发挥作用。我看过很多代码片段,但我似乎无法让它们在 Monotouch 下工作。
有人能指出我执行此操作的正确方法吗?我非常感激。
I have an iPad only application that I'm trying to allow users to select images from their PhotoLibrary
, near as I can tell I have to use the UIImagePickerController
in a UIPopOverController
. I have attempted many different ways to do this but I can get anything to work. I've seen a lot of code snippets but I can't seem to get them working under Monotouch.
Could somebody point me at the correct way to do this? I greatly appreciate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我必须调用创建图像选择器的代码以及对从主线程中选取的图像做出反应的代码才能使其正常工作:
I had to call the code that creates the image picker and the code that reacts to the image being picked from the main thread to get it to work:
这是我在应用程序中使用的代码 - 这应该作为您使其正常工作的良好开端。
Here is code that I've used in an app - this should serve as a good start for you to get it working.