Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6181073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:57:25+00:00 2026-05-24T00:57:25+00:00

My App works fine without the multitasking support. But when I activate it in

  • 0

My App works fine without the multitasking support.
But when I activate it in the info.plist, then it crashes every time I pushed something on the navigationController and hit the home button, came back to the app and used the navigationController again.
The error message doesn’t help me either.

What do I need to do for multitasking support in my app, when I only want the app to do nothing in the background and come back were it was.

Sadly instruments doesn’t work correct either since Xcode 4.1 -_-“.

The error-message in the console is sometimes:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CAContextImpl _isCached]: unrecognized selector sent to instance 0x5b783d0'

Sometimes it is an EXC_BAD_… in the view where I create a switch??? But only if I clicked the home button before!
If I only push the view and then go back. Click Home-Buttom. Tap App-Symbol. And then try to push the same view again it crashes.
But when I push the view, go back and push the view, it works. It only crashes, when I was in the SpringBoard (clicked the home Button).

Edit:

//AppDelegate class

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    [window makeKeyAndVisible];
    [self loadHauptmenu];

    return YES;
}

- (void) loadHauptmenu {
    NSLog(@"loading Hauptmenu");
    navigationController = [[UINavigationController alloc] init];

    HauptMenuViewController *hauptMenuController = [[HauptMenuViewController alloc] init];
    [navigationController pushViewController:hauptMenuController animated:NO];
//    [hauptMenuController release]; //tried this as error, but wasn't it

    [window addSubview:navigationController.view];
}



//Main Menu class

- (void) pushNewViewController:(UIViewController*)pushMe {
    NSLog(@"Der aktuelle navigationController ist: %@", self.navigationController);

    [self.navigationController pushViewController:pushMe animated:YES];
}

- (void) pushNewViewWithClassname:(NSString*)classname {
    UIViewController *viewControllerToPush = [[NSClassFromString(classname) alloc] init];
    [self pushNewViewController:viewControllerToPush];
    [viewControllerToPush release];
}


- (IBAction) pushEinstellungen:(id)sender {
    [self pushNewViewWithClassname:@"EinstellungenViewController"];
}


//view class, which gets pushed

- (id) init {
    self = [super init];
    if (self != nil) {
        self.title = @"Einstellungen";
        //self.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 416)];
        self.view.backgroundColor = MEDILEARN_COLOR;

        self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 416) style:UITableViewStyleGrouped];
        self.tableView.delegate = self;
        self.tableView.dataSource = self;
        self.tableView.allowsSelection = NO;
        self.tableView.backgroundColor = [UIColor clearColor];
        [self.view addSubview:self.tableView];

        self.fragenSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(194, 8, 94, 28)]; //here is an EXC_BAD_...
        [self.fragenSwitch addTarget:self action:@selector(toggleEnabledForFragenSwitch:) forControlEvents:UIControlEventValueChanged];
        [self.fragenSwitch setOn:[[NSUserDefaults standardUserDefaults] boolForKey:@"randFragen"] animated:NO];

        self.antwortenSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(194, 8, 94, 28)];
        [self.antwortenSwitch addTarget:self action:@selector(toggleEnabledForAntwortenSwitch:) forControlEvents:UIControlEventValueChanged];
        [self.antwortenSwitch setOn:[[NSUserDefaults standardUserDefaults] boolForKey:@"randAntworten"] animated:NO];
    }
    return self;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:57:25+00:00Added an answer on May 24, 2026 at 12:57 am

    From your description, it does not appear that multitasking is the problem. This reads like your app has a bug. You should try to track that down and fix it.

    By default, your app does nothing in the background.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have an ASP.net web app which works fine for a few days, but then
My app works fine in the simulator but when I run it on my
My app (winforms .net 2.0 / vs2008) works fine on my dev machine but
Everything works fine in development mode, but when I try to start my app
My app works fine when it's unsigned (debugging, etc..), also when exporting without ProGuard.
my Rails app works fine locally. But once I put it on a server
I have a GAE app that works just fine from my browser, but can't
I have set up i18n to my web app using Spring.It works fine.But I
I use wshttpbinding in my service Config and message security. My app works fine
Markup works fine if I pull the code outside my app and test it,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.