左に画像のある表のセルがあります。今、1つのセルをタップするたびに、イメージが変わりますが、私は、セルの左側の領域をタップするとイメージが変わるだけです。これどうやってするの?UITableViewCellの一部のみを選択する方法
今私が持っている:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
{
if (cell.imageView.image == [UIImage imageNamed:@"checkboxfull.png"]) {
cell.imageView.image = [UIImage imageNamed:@"checkboxblank.png"];
}
else if(cell.imageView.image == [UIImage imageNamed:@"checkboxblank.png"]) {
cell.imageView.image = [UIImage imageNamed:@"checkboxfull.png"];
//[alert show];
}
}
私は完全にこのサルです。もう少し説明してください...ありがとう – user1191343
[記事](https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells)をご覧ください。 html) –
優秀、ありがとうございます。 – user1191343