-(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'
DetailModal
? Is a property of yourViewController
. I suggest you start it with a lower case for. I'd also renameViewController
to something more descriptive. – Ricardo Sanchez-Saez