My viewcontroller
is using UITableView
and i want to go to detialView
by clicking on the row. Using the didSelectRowAtIndexPath
.
I am working on storyboard but my UITableView
class is not using Scene on stroyborad
it made programatically and other class with is detailView
with is a scene on the Storyboard
.
But i’m unable to show my detailView , Trying so many ideas. In this i’m unable to use segue
because UItableview
Class is not a scene it made programtically and the other way to display detialViewController
is using didSelectRowAtIndexPath
.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
ServiceDisplayViewController *serviceDisplayViewController =
[self.storyboard instantiateViewControllerWithIdentifier:@"serviceDisplayViewController"];
[self presentViewController:serviceDisplayViewController animated:NO completion:nil];
}
But it gives me error.
Application tried to present a nil modal view controller on target <SegmentsViewController: 0xa8757e0>.'
Can anyone please suggest me the best way to resolve this issue.
Thanks In Advance.