Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected row color #15

Open
middiu opened this issue Apr 6, 2015 · 0 comments
Open

Selected row color #15

middiu opened this issue Apr 6, 2015 · 0 comments

Comments

@middiu
Copy link

middiu commented Apr 6, 2015

Hi hpique,
thanks for this fantastic library, it works great and saved me a lot of time.
I don't have any problem regards the functionality of the library, I'm able to move the cells and trigger the associated action, my issue is a cosmetic issue: when a cell is selected by a long press gesture and is moving it becomes BLACK... when the cell is just selected the color is BLUE
How can I change this color and make it transparent ( or any other color)?

This is the code I'm using to try to customise the cell:

((HPReorderTableView *)self.tableView).reorderDragView.layer.shadowColor = UIColorFromRGB(0x89BAE9).CGColor;
((HPReorderTableView *)self.tableView).reorderDragView.backgroundColor = [UIColor clearColor];
[((HPReorderTableView *)self.tableView)registerTemporaryEmptyCellClass:SCSpotCell.class];

self.tableView.backgroundColor = [UIColor clearColor];
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.separatorColor = [UIColor colorWithWhite:1 alpha:0.2];
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
self.tableView.contentInset = UIEdgeInsetsMake(0, 0, self.bottomLayoutGuide.length, 0);

Thanks
Emilio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant