OK sorry..
code for didselectrow method:
- (void)tableView

UITableView *)tableView didSelectRowAtIndexPath

NSIndexPath *)indexPath {
NSString *imageName = [self.data objectAtIndex:indexPath.row];
imna.text = imageName;
DetailViewController *dvcontroller = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];
dvcontroller.userPhoto = [self.data objectAtIndex:indexPath.row];
[self.view pushViewController:dvcontroller animated:YES];
[dvcontroller.self loadimage];
[dvcontroller release];
}
The userPhoto reference is another method in the mainview controller where the imageview is located.
I have tried directly setting the imageview but that did not work either.
What code would you use in viewA to set an image in viewB ?
ta
Quote:
Originally Posted by xyster
You should try posting a more concrete example (code) of what you are trying to do. Your description is too vague.
|