selection-color

It's Possible to change default selection color in UITextField iOS?

雨燕双飞 提交于 2020-01-06 21:09:25
问题 Default selection color is blue as - I required to change it clear color? I know If I change tint color then that color will be set when I select ant text but my question When I set clear color as tint color then there should be no color displaying for selection of text but It is taking gray color as default. if It is posiible then How? and please provide source code. This is what happens when tint color is blue if i set tintColor = clear color than display gray color. This happens when tint

UITableView Cell selected Color?

删除回忆录丶 提交于 2019-11-26 03:02:19
问题 I have created a custom UITableViewCell . The table view is showing data fine. What I am stuck in is when user touches cell of tableview, then I want to show the background color of the cell other than the default [blue color] values for highlighting the selection of cell. I use this code but nothing happens: cell.selectedBackgroundView.backgroundColor=[UIColor blackColor]; 回答1: I think you were on the right track, but according to the class definition for selectedBackgroundView : The default