How to store an image in Core Data?

后端 未结 3 1962
暖寄归人
暖寄归人 2021-02-03 14:52

Just a guess: I make an attribute and make it\'s type \"binary\". But in the end, how would I use that? I guess there is an NSData behind the scenes? So that attribute actually

3条回答
  •  别那么骄傲
    2021-02-03 15:29

    That's correct, use binary which is represented as a NSdata object, then u can use uiimages imageWithData class method in order to retrieve your images.

提交回复
热议问题