简体   繁体   中英

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 'window' 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:

  1. include "OverlayViewController.h'

  2. @synthesize window;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM