Dancer
Dancer

Reputation: 17651

UITableViewCell - Change Visited/active background color

Is it possible to change the visited / Active style for a UITableView Cell?

I have styled the inactive state using the storyboard gui interface - but there doesnt seem to be options for the other possible states..

Upvotes: 1

Views: 93

Answers (1)

Adis
Adis

Reputation: 4552

There's no default way to handle the different styles for tableView cells, but you should have no issue implementing that behaviour on your own by subclassing the UITableViewCell and adding the required behaviour by changing the backgroundView depending on an arbitrary state.

There's a good amount of information here: How do you load custom UITableViewCells from Xib files?

And a tutorial link from the same question: http://howtomakeiphoneapps.com/how-to-design-a-custom-uitableviewcell-from-scratch/1292/

Upvotes: 1

Related Questions