I have two different storyboards named "MainStoryboard" and "TPStoryboard". In TPStoryboard, I have set CCViewController as my initial view controller (names are changed here).
In MainStoryBoard, I have a tableView, and when user selects a cell, he is expected to land in the initial view controller of TPStoryboard. The following is the code I have written:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UIStoryboard *stb = [UIStoryboard storyboardWithName:@"TPStoryboard" bundle:nil];
CCViewController *ccv = [stb instantiateInitialViewController];
[self.navigationController pushViewController:ccv animated:YES];
}
This gives the exception
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'TPStoryboard' in bundle NSBundle"