I have table view as popover on button click.I wanted that particular image to be loaded when user selects any particular table view cell.I have written code like this,but its not working.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *selectedRow = [clientNameArrays objectAtIndex:indexPath.row];
ClientDetailsView *obj = [[ClientDetailsView alloc]init];
//obj.imageClientImage = clientImageArays;
obj.clientImage.image = (UIImage*)clientImageArays;
}
How can I do this?
You are not at all
presenting the ViewController
: You are about toinitialise the ViewController with Image
but How the code came to know that, this should should need to be present :Try
Presenting Or Push Or POPOver OR UIView
to present it. For Ex: