Core data: What should I type in the “Value Transformer Name”

前端 未结 1 1008
无人及你
无人及你 2021-01-18 13:14

I want to store UIImage in core data and use the default value transformer. Apple doc says:

If you are using the model editor in Xcode, select Transfo

相关标签:
1条回答
  • 2021-01-18 13:48

    I'm going to refer you to a previous answer. Look at the comment to! https://stackoverflow.com/a/3909082

    As you can see, if you are targeting iOS 5+, you should be able to just mark it as transformable and be good. Otherwise, you're going to have to implement a subclass of NSValueTransformer, and pass in the name of that class.

    0 讨论(0)
提交回复
热议问题