I have a UIImageView in a UITableViewCell. In the TableViewController for the UITableView I am trying to set the image to hidden with myImageView.hidden = YES. As you can see in the code snippet, I have several UILabels in the cell which I am able to succesfully set at the same time, so I am pretty sure I have things wired correctly...
Any suggestions? I tried setting alpha to 0, but that did not work either. If I can't get it to hide, I figure I can set the image to a blank image.
Thanks,
John
Code:
cell.displayNameLabel.text = person.displayName;
cell.lastStatusLabel.text = person.lastStatusMsg;
cell.url.text = person.webAddress;
if(cell.url.text == @""){
cell.safariIcon.hidden = YES;
}else {
cell.safariIcon.alpha = NO;
}
Any suggestions? I tried setting alpha to 0, but that did not work either. If I can't get it to hide, I figure I can set the image to a blank image.
Thanks,
John