Wie greife ich von meinem appDelegate aus auf meinen viewController zu? iOS

Ich habe eine iOS-App, die ich als "ansichtsbasierte App" in xCode erstellt habe. Ich habe nur einen viewController, dieser wird jedoch automatisch angezeigt und es wird kein Code angezeigt, der ihn mit meinem appDelegate verknüpft. Ich muss Daten von meinem appDelegate an meinen viewController übergeben, weiß aber nicht, wie ich das ausführen soll.

Meine App delegate.h:

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


@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) NSDictionary *queryStrings;

@end
</code>

Auch appDidFinishLoadingWithOptions:

<code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    [[JMC sharedInstance] configureJiraConnect:@"https://cmsmech.atlassian.net/"           projectKey:@"WTUPLOAD" apiKey:@"7fc060e1-a795-4135-89c6-a7e8e64c4b13"];

    if ([launchOptions objectForKey:UIApplicationLaunchOptionsURLKey] != nil) {
        NSURL *url = [launchOptions objectForKey: UIApplicationLaunchOptionsURLKey];
        NSLog(@"url received: %@", url);
        NSLog(@"query string: %@", [url query]);
        NSLog(@"host: %@", [url host]);
        NSLog(@"url path: %@", [url path]);
        queryStrings = [self parseQueryString:[url query]];
        NSLog(@"query dictionary: %@", queryStrings);
    }
    else {
        queryStrings = [self parseQueryString:@"wtID=nil"];
    }

    return YES;
}
</code>

Antworten auf die Frage(6)

Ihre Antwort auf die Frage