//
// 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;
}
私は私のアプリの委任ではなく、含まれている行にこのコードを使用しています
「[自己createItemsWithIcons];」、私は「『AppDelegate』の目に見える@interfaceは 『createItemsWithIcons』セレクタを宣言していません」というエラーを取得します。「App Delegate '...の表示されない@interfaceは何を意味しますか?
私が間違っていることは何ですか?私は、私のアプリに3Dタッチのクイックアクションを追加しようとしています。
更新!私はその問題を解決しました。今度は私のAppDelegateからの質問ですが、別のファイルにあるコードをどのように実行できますか? "www"フォルダには.jsで終わるファイルがあります。そのファイルには、実行したいjavascriptコードがあります。そのファイルを呼び出す方法に関するアイデア?
'createItemsWithIcons'方法はどこにありますか? – rmaddy