li6185377 / LKDBHelper-SQLite-ORM

全自动的插入,查询,更新,删除, an automatic database operation thread-safe and not afraid of recursive deadlock
MIT License
1.21k stars 288 forks source link

存储 UIImage 数组问题 #167

Closed LAnqxpp closed 2 years ago

LAnqxpp commented 2 years ago

从相册获取图片 类型 UIImage *image 存到数据库没有问题,self.image = image 没有问题 打印储存直接存 <UIImage:0x283290750 anonymous {1702, 1276} renderingMode=automatic>

但是 @[UIIImage] 放到数组存储 获取 赋值 self.image = @[UIIImage][0] 不展示 <__NSArrayM 0x280e102d0>( <UIImage:0x283290c60 named(?) {0, 0} renderingMode=automatic>, <UIImage:0x283291320 named(?) {0, 0} renderingMode=automatic> )

li6185377 commented 2 years ago

不支持 UIImage 作为二级对象存储(比如 放到 NSArray、NSDictionary 中),你可以用 自定义存储的方式 来处理

参考

搭配