objective c - Internal compiler error: Bus error -


im trying make uitableview view details 2 errors. after following code got 2 times same errors: 'internal compiler error: bus error' , have no idea why? can me? can find image of code under here.

- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {  nsinteger row = [indexpath row]; if (self.verwaltungdetailviewcontroller == nil){     verwaltungdetailviewcontroller *averwaltungdetail = [[verwaltungdetailviewcontroller alloc] initwithnibname:@"verwaltungdetailview" bundle:nil];     self.verwaltungdetailviewcontroller = averwaltungdetail;     [averwaltungdetail release];  } verwaltungdetailviewcontroller.title =  [nsstring stringwithformat:@"%@", [verwaltungsarray objectatindex:row]];    natersappdelegate *delegate = [[uiapplication sharedapplication] delegate]; [delegate.verwaltungnavcontroller pushviewcontroller:verwaltungdetailviewcontroller animated:yes]; 

}

thanks lot in advance help!

it looks me you've got class somewhere called verwaltungdetailviewcontroller (note uppercase 'v') , mixing instance variable & property called verwaltungdetailviewcontroller (note lowercase 'v'). in first line of if block, attempting create instance of latter, when should attempting create instance of former. code should this:

- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {  nsinteger row = [indexpath row]; if (self.verwaltungdetailviewcontroller == nil){     verwaltungdetailviewcontroller *averwaltungdetail = [[verwaltungdetailviewcontroller alloc] initwithnibname:@"verwaltungdetailview" bundle:nil];     self.verwaltungdetailviewcontroller = averwaltungdetail;     [averwaltungdetail release];  } verwaltungdetailviewcontroller.title =  [nsstring stringwithformat:@"%@", [verwaltungsarray objectatindex:row]];    natersappdelegate *delegate = [[uiapplication sharedapplication] delegate]; [delegate.verwaltungnavcontroller pushviewcontroller:verwaltungdetailviewcontroller animated:yes]; 

edit: make mistake in last line of code, except in reverse.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -