Does anyone know how to change the background color of a cell using UITableViewCell, for each selected cell? I created this UITableViewCell inside the code for TableView.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Emacs/xterm color annoyance on Linux
- TransitionFromView removes previous view
If you just want to remove the grey background color do this :
I was able to solve this problem by creating a subclass of
UITableViewCell
and implementing the setSelected:animated: methodThe trick was setting the
in the implementing view controller and then in the tableViewCell setting it as
Hope this helps. :)
If you're talking about selected cells, the property is
-selectedBackgroundView
. This will be shown when the user selects your cell.I created UIView and set the property of cell selectedBackgroundView:
In Swift