V
V
Vitaly2016-12-13 19:15:06
Objective-C
Vitaly, 2016-12-13 19:15:06

How to record and later get sound in / c Core Data?

All the best!
Here I am trying to work with Core Data, I have already learned how to record and also retrieve some data. Please tell me how to save it there and then get the sound?
So I understand that the algorithm is similar to saving pictures, also NSData and Binary Data

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Tikhonov, 2016-12-13
@tikhonov666

Two options:
1) Translate the sound into NSData and store it as NSData
2) Implement the NSCoding protocol, specify Transforamble in the model, save as a sound object
In the model, it is better to take the sound object into a separate class and check the Allows External Storage checkbox.
Here is the link to stackoverflow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question