系统自定义的点击背景有时间觉得效果不好想换个

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
if (selected) {
self.backgroundColor = [UIColor redColor];
}else {
self.backgroundColor = [UIColor whiteColor];
}
}

UITableView点击背景-LMLPHP

如果你发现时上面的,0-0那肯定没成功啊,为什么呢?

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUUAAAC9CAYAAAAkwm+dAAAKomlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU2kWx7/30hstEAEpoXekV+k1dOlgIyQQQokhEBREVERUYEQREQFF0BEQBUelyFgQUSwMAvY6IIOCMg4WQEVlH7CE3T07Z8/enHve7/zfffe773vfPecGAPINJp+fCEsAkMRLFQR6ONPDIyLpuN8BBlCRnxpQZ7JS+E4BAT7gb23yAYBmr3cNZnP9fdx/NUl2TAoLACgA4Wh2CisJ4XOIn2bxBakAoNiIrrY+lT/LOxGWFiAFIlwxy5x5Pj3L0fPcORcTHOiC8CMA8GQmU8ABgPQHotPTWBwkDxmNsBGPzeUhbIawPSuOiaxDRu4B/aSkdbN8BGHt6H/Jw/m3nNGinEwmR8Tz7zJneFduCj+Rmf5/bsf/tqRE4cIaqoiT4wSegbPrIXtWm7DOW8S8aD//Beay52ua5TihZ8gCs1JcIheYzXT1XmBhQojTAjMFi89yUxnBCyxYFyjKH5PiFiTKH8PwEdWQ6CfiWK47Y4Ez4oLDFjiNG+q3wCkJQd6LMS4iXSAMFNUcK3AXvWNSymJtLOZiDalxwZ6LtYWLamDHuLqJdF6IKJ6f6izKyU8MEMXHJHqI9JS0INGzqcgBW+B4plfAYp4A0f4ALvAFTMBKjdkwe66Ayzp+uoDLiUulOyFdEkNn8FiG+nQTI2NzAGZ7bv6TfqTN9RJEu7WoJbcDYJ2HiJxFjakGwPlXAFAnFzW1D8hx2APAxV6WUJA2r80edaSXiUAcSAM5oIR0tDYwACbAAtgCR+AGvIA/CAYRYA1ggTiQBARgPcgEW0EuyAd7wH5QBirBU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RAKIYY9RpMwQgkEkAUcxEwwIIQCBGAohijFGnzRCAQCYBRDETDQsgAIEYCSCKMUadNkMAApkEEMVMNCyAAARiJIAoxhh12gwBCGQSQBQz0bAAAhCIkQCiGGPUaTMEIJBJAFHMRMMCCEAgRgKIYoxRp80QgEAmgaiz5Ghs53v37tk0YZmEUguURkwZufWZpyih7czMjJmfnzfprDx5bMawrbg3NTXZ3Jc+2ruysmKHnlhfX89lXtuvF2K8Xkg/t57KwLQRo7JBqS6BaEVRYz0rLVglA91LwO7fv2/m5uZyR0nDqMqW8jbmLXYnzLkjywcdJJRGLZ1KbSO+ialsJeNpb8RG1jayK24+itqtPpE3JrJT19tr7r3zjqnLGZe19nbTvHOnj+ZiM4NAtKKojq+xnSst2qYSIc2yLxsu7Mi+C1uyobPg5ubm3GPSSLgk+h0dHbkFNoufj/nqE1bQHByo6grDWdS98YYTN1355MSZCIxEK4objW1Dw+ZEJlHU5WNLS4sVxo3y0XYSxbW1NXvWpR2aAoGQCNBjQ4oWvkIAAt4JIIreEVMBBCAQEgFEMaRo4SsEIOCdAKLoHTEVQAACIRFAFEOKFr5CAALeCSCK3hFTAQQgEBIBRDGkaOErBCDgnQCi6B0xFUAAAiERQBRDiha+QgAC3gkgit4RUwEEIBASAUQxpGjhKwQg4J0AougdMRVAAAIhEUAUQ4oWvkIAAt4JIIreEVMBBCAQEgFEMaRo4SsEIOCdAKLoHTEVQAACIRFAFEOKFr5CAALeCSCK3hFTAQQgEBIBRDGkaOErBCDgnQCi6B0xFUAAAiERQBRDiha+QgAC3gkgit4RUwEEIBASAUQxpGjhKwQg4J0AougdMRVAAAIhEUAUQ4oWvkIAAt4JIIreEVMBBCAQEgFEMaRo4SsEIOCdAKLoHTEVQAACIRFAFEOKFr5CAALeCSCK3hFTAQQgEBIBRDGkaOErBCDgnQCi6B0xFUAAAiER+C9oPTF5AagJKAAAAABJRU5ErkJggg==" alt="" />

打开层级,可以看到,原来在下面,这样就简单了,只需要在初始化cell后加上这么一段代码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mA8BMKejBjponffffewQ7QAN23aBAolHYXs2muvNduHDh2CdHfx6quv4sUXX8Tjjz8OWnfqlIASUAKRIhBxofPPGAWOXdL58+fjjjvu8D+MxsZGPPTQQzhw4IAROFqM6pSAElACkSQQUtc1lAt3d3fjpptuwiWXXIJVq1aZ8bm0tLRhScgEBHbs2IHm5mZcffXVuOGGG4yFNyyiBigBJaAEwiRwVoRuz549qKiowJNPPonHHnsMsmQEmZmZniwePnwYmzdv9uxzIzExEffffz9kiQmefvppn2O6owSUgBIYD4GICx0XEq9ZswZz5szBzp07jZXmn8GXXnrJWHmcYfV2cXFxRvACLUD2jqfbSkAJKIFQCERc6O666y7zpgStMm8rzjtTK1euBEWNb1XI+hjPoQcffBCyANkIpSdQN5SAElAC4yQQ8ckIzqD29vbi0ksvHZa1srIyPPzwwygtLQUF8c4778Rbb72F8vJysLvL7Q0bNuCqq64adq4GKAEloATCJRDDFcfhnLx9+3Y8++yzuP322z3vunKtHK20kRzX2F1//fWew5WVlXjmmWfMjGteXh4uu+wys7DYE0E3lIASUAIRIBC20EXg2pqEElACSuA9IRDxMbr3JNd6ESWgBJRACARU6EKApVGVgBKITgIqdNFZbpprJaAEQiCgQhcCLI2qBJRAdBJQoYvOctNcKwElEAIBFboQYGlUJaAEopOACl10lpvmWgkogRAIqNCFAEujKgElEJ0EVOiis9w010pACYRAQIUuBFgaVQkogegkoEIXneWmuVYCSiAEAip0IcDSqEpACUQnARW66Cw3zbUSUAIhEFChCwGWRlUCSiA6CQT94c1Dh/SPSkdnEWuulYASiJGvbob14U1FpwSUgBKIFgLadY2WktJ8KgElEDYBFbqw0emJSkAJRAsBFbpoKSnNpxJQAmETUKELG52eqASUQLQQUKGLlpLSfCoBJRA2ARW6sNHpiUpACUQLARW6aCkpzacSUAJhE1ChCxudnqgElEC0EFChi5aS0nwqASUQNgEVurDR6YlKQAlECwEVumgpKc2nElACYRNQoQsbnZ6oBJRAtBBQoYuWktJ8KgElEDYBFbqw0emJSkAJRAuBoL9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QhUNNz1ECSiCqCAT94c1D138xqm5MM6sElIASsAnEWOLsHf1VAkpACUxEAtp1nYilqvekBJSADwEVOh8cuqMElMBEJKBCNxFLVe9JCSgBHwIqdD44dEcJKIGJSECFbiKWqt6TElACPgRU6Hxw6I4SUAITkYAK3UQsVb0nJaAEfAio0Png0B0loAQmIgEVuolYqnpPSkAJ+BBQofPBoTtKQAlMRAIqdBOxVPWelIAS8CGgQueDQ3eUgBKYiARU6CZiqeo9KQEl4ENAhc4Hh+4oASUwEQmo0E3EUtV7UgJKwIeACp0PDt1RAkpgIhJQoZuIpar3pASUgA8BFTofHLqjBJTARCSgQjcRS1XvSQkoAR8CKnQ+OHRHCSiBiUhAhW4ilqrekxJQAj4E/h/Wc+sJ5Pag1wAAAABJRU5ErkJggg==" alt="" />

-0-成功了~~~~~~~~~~~~~~~~~~~

add...

如果想实现闪一下而不是一直选择的话,可以用tablview的代理实现

首先:

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
if (selected) {
self.backgroundColor = [UIColor whiteColor];
}else {
self.backgroundColor = [UIColor whiteColor];
}
}

在tablview的代理中:

- (void)tableView:(UITableView *)tableView didHighlightRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cell.backgroundColor = [UIColor greenColor];
}

效果图:

UITableView点击背景-LMLPHP

so-简单方法,自定义cell里面,可以实现一样的效果,也不用在外面写了

- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated {
[super setHighlighted:highlighted animated:animated];
if (highlighted) {
self.backgroundColor = [UIColor redColor];
}else {
self.backgroundColor = [UIColor whiteColor];
}
}
04-30 22:56