iphone - How is UITableViewCellSelectionStyleGray implemented? -


i want mimic style in code, more in setselected.

does have idea how do assuming i'm using custom cell.

all cell selection styles implemented setting selectedbackgroundview property of cell. system blue , white ones, these built-in views blue , grey gradients. setting cell selection style blue or grey tells cell use 1 of views selected background.

you can still use styles custom cells, assuming you've added of cell content content view.

you can create own view (typically stretchable image or custom drawing view) , set selected background view custom effects.

when cell selected, tell of content view subviews (labels etc) become highlighted, if can. can control how looks setting highlightedtextcolor on labels.

you can achieve without needing touch setselected. it's done base implementation.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -