开发者

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:

  1. include "OverlayViewController.h'

  2. @synthesize window;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜