0
votes
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([[segue identifier]isEqualToString:@"ShowDetails"]){ 
    ViewController *details = [segue destinationViewController];       
    NSIndexPath *indexpath = [self.tableView indexPathForSelectedRow];    
    int row = [indexpath row];
    details.DetailModal = @[_Title[row],_description[row],_IMAGES[row]];          
}}  

this is my code, i am trying to do that page will moves to next page.
but its showing error like this below:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController setDetailModal:]: unrecognized selector sent to instance 0x9b24ed0'

2
What is DetailModal? Is a property of your ViewController. I suggest you start it with a lower case for. I'd also rename ViewController to something more descriptive.Ricardo Sanchez-Saez

2 Answers

0
votes

The error is saying that the destination of your segue is a UIViewController rather than a ViewController. In your storyboard, make sure that the class for that controller is set to ViewController in the identity inspector.

0
votes

Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:.