Chame presentModalViewController da classe NSObject

Na minha subclasse deNSObject Eu gostaria de chamar algo como

    [[self navController] presentModalViewController:myView animated:YES];

Mas nenhuma das minhas tentativas teve sucesso. Como posso chamar uma visualização modal se não estiver em uma subclasse deUIViewController?

Solução:

#import "myProjectNameAppDelegate.h"
// ...
MyViewController *myView = [[MyViewController alloc] init];
myProjectNameAppDelegate *appDelegate = (myProjectNameAppDelegate *)[[UIApplication sharedApplication] delegate];
[[appDelegate navController] presentModalViewController:myView animated:YES];

questionAnswers(3)

yourAnswerToTheQuestion