I have written two classes and would like to be able to create instances of one within the other. When I add the following to the header file, I get an error which says the file can't be found:
What am I doing wrong? I have tried this with #import as well as #include, I've moved the header files to the Frameworks folder (which seems to be where the UIKit and Foundation stuff is which are imported successfully as part of the pre-populated code) and Xcode insists it can't find the files.
At the moment, the header file of the Card class is sitting in the Project Navigator within the main containing project folder, which is where the AppDelegate and a single ViewController are situated.
As an aside - what is the difference between #import and #include?
Thanks
Code:
#include Card.h
What am I doing wrong? I have tried this with #import as well as #include, I've moved the header files to the Frameworks folder (which seems to be where the UIKit and Foundation stuff is which are imported successfully as part of the pre-populated code) and Xcode insists it can't find the files.
At the moment, the header file of the Card class is sitting in the Project Navigator within the main containing project folder, which is where the AppDelegate and a single ViewController are situated.
As an aside - what is the difference between #import and #include?
Thanks