I have two view controller think A and B.
A has tableview
B has back button to A
when I click tableview cell on A viewcontrollr it move to B.
when I move between 5 - 6 time continually app crashing with this error message.
A has tableview
B has back button to A
when I click tableview cell on A viewcontrollr it move to B.
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if (tableView == self.tableViewLastMinutes)
{
selectedRow = [indexPath row];
[self performSegueWithIdentifier:@"linktoviewmeetingitem" sender:tableView];
}
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"linktoviewmeetingitem"])
{
ViewControllerView *viewScreen =[[ViewControllerView alloc] initWithNibName:@"ViewControllerView" bundle:nil];
viewScreen = (ViewControllerView*)segue.destinationViewController;
MeetingMinute *selectedMeeting = [[MeetingMinute alloc]init];
if (sender == _tableViewLastMinutes) {
selectedMeeting =[lastMinutes objectAtIndex:selectedRow];
}
else
{
selectedMeeting =[unfinishedMinutes objectAtIndex:selectedRow];
}
[viewScreen setMeetingMinute:selectedMeeting];
}
}
when I move between 5 - 6 time continually app crashing with this error message.
Code:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'Could not load NIB in bundle: 'NSBundle </Users/Ravi/Library/Application Support/iPhone Simulator/6.0/Applications/42268111-F290-40B8-B893-4649852F762C/coffee break app.app>
(loaded)' with name 'gaq-uj-mhA-view-5Ge-gb-3ba' and directory 'MainStoryboard.storyboardc''