sorry for the most stupid question,
but I am working on a Table Based Navigation app. wondering how is it possible to load a specific image in a new view controller depending on what row the user selected.
here's an example
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if ([newMenu objectAtIndex:indexPath.row == 0])
{
newView *nwViews = [[newView alloc] initWithNibName:@"newView" bundle: nil];
[nwViews setTitle: @"BIKE IMAGE"];
[self.navigationController pushViewController:nwViews animated:YES];
}
if I have an empty UIImageView on the new view how can i change it to one of many images i have in my resources folder?