Help with declaration error in xcode
Hey guys, I'm pretty new to developing on the iPhone platform, and developing in general just as a heads up so please correct me if i screw anything up. So heres the problem: I'm trying to declare a property, I'm pretty sure the code is 100% correct yet xcode is declaring "No declaration of property 'wi开发者_如何学编程ndow' found in the interface" and "No declaration of 'overlayViewController' found in the interface." Here's the code.. I tried to use the code sample feature but it wasn't working for me..
#import <UIKit/UIKit.h>
@class OverlayViewController;
@interface OverlayViewTesterAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
OverlayViewController *overlayViewController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet OverlayViewController *overlayViewController;
@end
you need two things in your .m file:
include "OverlayViewController.h'
- @synthesize window;
精彩评论