Search code examples
iphonecore-dataavfoundationcmtime

Store CMTime in CoreData?


Sorry if this been answered before, but i can't find an answer here.

How do I store a CMTime value using CoreData?

Thanks in advance.


Solution

  • Convert it to a dictionary and store the dictionary representation.

    CMTimeCopyAsDictionary and CMTimeMakeFromDictionary