gpt4 book ai didi

iphone - 在 iPhone 的 UIImageView 中显示图像

转载 作者:行者123 更新时间:2023-11-28 18:13:29 25 4
gpt4 key购买 nike

我不想使用选择器 View 来选择图像。我在 iPhone 图像库中有图像名称 abc.JPG,我可以通过编程方式获取此图像并放在 UIImageView 上吗?

最佳答案

如果图像不在您的应用程序资源中并且您不想使用 UIImagePickerController,那么您可以使用 ALAssetsLibrary 来获取用户相册或相机胶卷中的图像。

看这里: http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/Reference.html

关于iphone - 在 iPhone 的 UIImageView 中显示图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11151708/

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