I am currently working on an IOS
app to browse the folders on a remote computer and display the pictures. Now in order to browse the folders I am using the same table view
and updating its cells
, each time the user presses on a tile. Now after getting to the final list of contents(Images), I am trying to use a segue to navigate to UIViewController
to display the Images
. But I am getting an error: "segue not found".
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
// Fetch device
self->browseObjID = [avObjArray objectAtIndex:indexPath.row];
if([self->browseObjID isFolder])//To load same table view for browsing the folders
{
ContentL1TableViewController *targetViewController = [[[ContentL1TableViewController alloc] initWithMediaDevice:_devSelected andObjectId:self->browseObjID ];
[[self navigationController] pushViewController:targetViewController animated:YES];
}
else
[self performSegueWithIdentifier:@"DisplayImage" sender:self];// display final image
}