I create a Master-Detail application using Core Data. And there is a simple code to
get the path for Model file:
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"Model" withExtension:@"momd"];
I have no idea why the extension isn't "xcdatamodel" but "momd".
Does anyone know the answer?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…