0
我不知道爲什麼我得到這個錯誤,我已經在文件中導入了AppDelegate.h ..這裏是代碼在文件中這是在main.m.「使用未聲明的標識符'AppDelegate'
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
這裏是我的AppDelegate.h
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <NSURLSessionDelegate, NSURLSessionDownloadDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
檢查文件AppDelegate.m的拼寫以及代碼行中使用的拼寫UIApplicationMain(argc,argv,nil,NSStringFromClass([AppDelegate class])); –
請添加AppDelegate.h – KIDdAe
@KIDdAe你去先生 – Xarotic