0
votes

I'm adding a help overlay view to my application, similar to Fandango's help view, and am getting an odd message in the console. The app doesn't crash but I think that my presenting a modal view when the my other view hasn't finished completely could be causing the problem.

The message I get in the console is: Unbalanced calls to begin/end appearance transitions for .

Here is what I'm doing in my application:didFinishLaunchingWithOptions:

- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [[NSUserDefaults standardUserDefaults] registerDefaults:
        [NSDictionary dictionaryWithContentsOfFile:
            [[NSBundle mainBundle] pathForResource:@"Defaults" ofType:@"plist"]]];

    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];

    if ([[NSUserDefaults standardUserDefaults] boolForKey:@"showHelpOverlay"]) {
        [self.viewController presentHelpOverlayViewController];
    }
}

Perhaps I should be calling my method in my main view controller in viewDidLoad or something?

Any ideas any one?

1
is your modal presentation animated? - Nitin Alabur

1 Answers

0
votes

Yes. thats right.

you could either do that, or

use nstimer to call presentHelpOverlayViewController with some delay