Last active
March 26, 2020 13:02
-
-
Save coderiding/0c984c8a7b66933d75ee2fe5041c4ce6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
效果图链接:https://raw.githubusercontent.com/codeRiding/github_pic_0001/master/2020-03-26 21.01.10.gif | |
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { | |
UIView* bgSelectionView = [UIView new]; | |
bgSelectionView.backgroundColor = [UIColor redColor]; | |
cell.selectedBackgroundView = bgSelectionView; | |
} | |
https://gist.github.com/0c984c8a7b66933d75ee2fe5041c4ce6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment