ios - Thread 1 : EXC_BAD_ACCESS (Code = 1, address = 0x30000008) -
i still stuck on problem followed answer forum. can tell me in simple way? i'm new learner in xcode. have enable zombie object.
this coding got crash
if ([[[arystoreknowitem objectatindex:indexpath.row] objectforkey:@"action"] isequaltostring:@"a1"]) { nsstring *t1 =[[arystoreknowitem objectatindex:indexpath.row] objectforkey:@"title"]; nsstring *a1 = [[arystoreknowitem objectatindex:indexpath.row] objectforkey:@"action"]; nsuserdefaults *defaults = [nsuserdefaults standarduserdefaults]; // saving nsstring [defaults setobject:a1 forkey:@"a1"]; [defaults setobject:t1 forkey:@"t1"]; journalpage *journal=[[journalpage alloc]initwithnibname:@"journalpage" bundle:nil]; [self presentmodalviewcontroller:journal animated:yes];
in application, have multiple viewcontroller. when click on button of uinavigationbar type of issue generated , can't explain problem because functionality work proper.
example :-
1 - fitstvcontroller (work properly)
=> have uitableview , when click on specific row go on uiviewcontroller (secoundviewcontroller)
2 - secoundviewcontroller (work properly)
=> have uitableview , uiactionsheet. when select button of uiactionsheet uiviewcontroller (thirdviewcontroller) open
3 - thirdviewcontroller (cannot open)
=> error came when click on row three. same goes if click on other cell, third cell click got crash before in goes other pages
i don't think we've got enough here diagnose particular problem (and it's hard follow description). nonetheless, recommend:
i suggest running code through static analyzer ("analyze" on xcode "product" menu) , making sure doesn't provide warnings. (amongst other things) identify many routine memory issues can plague non-arc code. there's no point in going further until clean bill of health here.
i suggest turning on exception breakpoint , see if identifies particular line of code source of issue. can identify line of code without having reverse engineer error occurred looking @ stack trace.
given you're doing non-arc code, might want temporarily turn on zombies. can see setting the scheme configuration settings.
beyond that, i'd refer ray wenderlich article my app crashed, what?.
if continue have errors, share stack trace us.
Comments
Post a Comment