//
// AppDelegate.m
//
#import "AppDelegate.h"
#import "MainViewController.h"
#import "SetupViewController.h"
#import <Cordova/CDVPlugin.h>
#import "NSObject+Utils.h"
#import "WebProjectSetupHelper.h"
#import "WebProjectSetupHelperDelegate.h"
#import "LoadingView.h"
#import "AppDelegate.h"
#import "MainViewController.h"
#import "NSObject+Utils.h"
#import "DeviceModelInfo.h"
#import "UIDevice+System.h"
#import "Alert.h"
@interface AppDelegate() <WebProjectSetupHelperDelegate>
@property (nonatomic, strong) WebProjectSetupHelper *helper;
@property (nonatomic, strong) LoadingView *loadingView;
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[self createItemsWithIcons];
// determine whether we've launched from a shortcut item or not
UIApplicationShortcutItem *item = [launchOptions valueForKey:UIApplicationLaunchOptionsShortcutItemKey];
if (item) {
NSLog(@"We've launched from shortcut item: %@", item.localizedTitle);
} else {
NSLog(@"We've launched properly.");
}
return YES;
}
我在我的App Delegate中使用此代码,但在包含“[self createItemsWithIcons];”的行中,出现错误消息:“AppDelegate没有可见的@interface”声明选择器'createItemsWithIcons'“ 。“应用委托”没有可见的@interface“...”是什么意思?
任何想法我做错了什么?我正尝试在3D应用中添加3D触摸的快速操作。
更新!我解决了这个问题。现在我的下一个问题是来自我的AppDelegate,我如何运行不同文件中的代码?在“www”文件夹中有一个以.js结尾的文件。在那个文件中,我想运行javascript代码。任何想法如何调用该文件?
哪里'createItemsWithIcons'方法? – rmaddy