Reputation: 647
This may be a simple question but i cant find a solution.i'm using a table view.i want to give a highlight option when user selects that cell.highlight means giving a glowing effect for the cell(just like highlighting a button while touching.Is this possible.Can anyone help me.Thanks in advance.
Upvotes: 0
Views: 233
Reputation: 17877
You can do that in several ways:
Programmatically when customizing your UITableViewCell
by setting appropriate value of selectionStyle
(UITableViewCellSelectionStyleBlue, UITableViewCellSelectionStyleGray or UITableViewCellSelectionStyleNone)
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
In Interface Builder (if you load your cell from .xib file):
In the Attribute Inspector
set property Selection
: blue, gray, none
Upvotes: 2