MagicalRecord-Example-App icon indicating copy to clipboard operation
MagicalRecord-Example-App copied to clipboard

How did you use MagicalRecord method in AppDelegate without importing it ?

Open ritesh124 opened this issue 8 years ago • 1 comments

I have seen this below code in this sample project, you have only imported "#import "PersonTableViewController.h"" and then in didFinishLaunchingWithOptions method [MagicalRecord setupAutoMigratingCoreDataStack];

I don't understand how do we access MagicalRecord Class without importing it ?

kindly help

ritesh124 avatar Jan 10 '17 12:01 ritesh124

Hi,

sorry for the late reply. MagicalRecord is actually being pulled in in the MagcalRecord Example-Prefix.pch pre-compile header file.

This way MagicalRecord is made available in every class automatically, without having to explicitly import it in every one.

alexblunck avatar Jan 18 '17 19:01 alexblunck