gpt4 book ai didi

objective-c - 如何将 UIImage 存储在 NSDictionary 中?

转载 作者:太空狗 更新时间:2023-10-30 03:15:37 25 4
gpt4 key购买 nike

如何在 NSDictionary 中存储 UIImage?

最佳答案

是的,你可以:

NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithCapacity:1];
UIImage *img = ...;
[dict setObject:img forKey:@"aKeyForYourImage"];

UIImage *imgAgain = [dict objectForKey:@"aKeyForYourImage"];

关于objective-c - 如何将 UIImage 存储在 NSDictionary 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2186199/

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