开发者

Method definition not found

What am I doing wrong? This is the .h file:

#import <UIKit/UIKit.h>
#import <sqlite3.h>

@class ReaderViewController;

@interface ReaderAppDelegate : NSObject <UIApplicationDelegate> { 
    UIWindow *window; 
    ReaderViewController *viewController; 
} 

@property (nonatomic, retain) IBOutlet UIWindow *window; 
@property (nonatomic, retain) IBOutlet ReaderViewController *viewController; 

- (void)checkForDatabase; 
//开发者_Go百科- (void)SQLiteConnection: (NSString *)defaultDBPath; 
@end 

The error is shown here:

Method definition not found


You are calling the [self checkForDatabase] method which doesn't appear to exist in the .m file.


The Incomplete Implementation warning is because you have declared the checkForDatabase method in your interface

The Method Definition error is because you are attempting to call the missing method in the application:didFinishLaunchingWithOptions: method.


You have failed to implement checkForDatabase in ReaderAppDelegate.m (or in any other file you're linking into the project). You said you would in the header, and then you didn't.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜