Hey everybody, hope you are having a great day. I am currently starting chapter 6 of the book and I am encountering an issue and I can’t find the problem. I create the HypnoNerd project, drag the BNRHypnosisView.h and .m, but when I create the new file for the BNRHypnosisViewController, as soon as I change the superclass from NSObject to UIViewController I get these error messages:
"Class “LBAHypnosisViewController” defined without specifying a base class"
"Cannot find interface declaration for “UIViewController”, superclass of “LBAHypnosisViewController”. "
Could this be because I am using Xcode 6?I did it all over again and I get the same error.
Here is my code, it says :“add a superclass to fix this problem” but even if I do, still doesnt work. :
#import <Foundation/Foundation.h> @interface LBAHypnosisViewController : UIViewController @end
Thanks everybody, have a great day!