my xcode 4 just crashed and I get build errors:
Unknown type name 'SecondViewController'
in the @interface code block:
SecondViewController *sms; and
Property with 'retain' attribute must be object type
in
@property(nonatomic,retain) SecondViewController *sms; However I import SecondViewController.h. The same code worked before the crash.
FirstViewController.h: http://pastebin.com/jnPKBny7
SecondViewController.h: http://pastebin.com/2D058ZAK
Edit: I realized that this error occures because the classes import each other. Can anyone describe why this is wrong?
Any ideas?