iphone - Fast app switching, what do I need? -


my app works fine without multitasking support. when activate in info.plist, crashes every time pushed on navigationcontroller , hit home button, came app , used navigationcontroller again. error message doesn't me either.

what need multitasking support in app, when want app nothing in background , come was.

sadly instruments doesn't work correct either since xcode 4.1 -_-".

the error-message in console sometimes:

terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[cacontextimpl _iscached]: unrecognized selector sent instance 0x5b783d0' 

sometimes exc_bad_... in view create switch??? if clicked home button before! if push view , go back. click home-buttom. tap app-symbol. , try push same view again crashes. when push view, go , push view, works. crashes, when in springboard (clicked 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 error, wasn't      [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, 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 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; } 

from description, not appear multitasking problem. reads app has bug. should try track down , fix it.

by default, app nothing in background.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -