TableView Select a row, do not display the selected color, do not set the TableView allowsselection to No, which may cause tableview can not respond to the click action. A reasonable solution is to:
directly at the time of creating the cell:
Cell.selectionstyle = Uitableviewcellselectionstylenone;
Or you can create a cell through Xib . It is also possible to write it in the nib of xib: (Same principle)
-(void) awakefromnib {//Cancel cell check style Self.selectionstyle = Uitableviewcellselectionstylenone;}
Is there anything else? Try this callback function again to cancel
-(void) TableView: (UITableView *) TableView Didselectrowatindexpath: (Nsindexpath *) Indexpath {[TableView Deselectrowatindexpath:indexpath Animated:yes]; No off animation effect}
(But this will be a flash, but it's also a way to scatter)
And, of course, when the cell was created, you were creating a canvas to cover it up, but was it easy for you to make sure you created it yourself?
Uncheck color UIView *backview = [[UIView alloc] initWithFrame:cell.frame]; Cell.selectedbackgroundview = Backview; Cell.selectedBackgroundView.backgroundColor = [Uicolor Clearcolor];
TableView a row is selected, the selected color is not displayed .... N Solutions to