Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

ios - How do I save and fetch audio data to/from CoreData with Objective-C?

I'm a new to iOS development.

How can I save and fetch audio data to/from CoreData with Objective-C?

I just know that I have to use NSData and Binary Data.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

As @shallowThought says in his comment, you should generally not store big binary data objects in Core Data. Save the sound files to your app's documents directory or one of the other sandbox directories, and then store a URL or path to the file in Core Data.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...