Highlighting a cell while touching iphone(giving a glowing effect just like touching a button)
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.Tha开发者_JAVA百科nks in advance.
You can do that in several ways:
Programmatically when customizing your
UITableViewCell
by setting appropriate value ofselectionStyle
(UITableViewCellSelectionStyleBlue, UITableViewCellSelectionStyleGray or UITableViewCellSelectionStyleNone)cell.selectionStyle = UITableViewCellSelectionStyleBlue;
In Interface Builder (if you load your cell from .xib file):
In the
Attribute Inspector
set propertySelection
:blue, gray, none
精彩评论