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

Table style #111

Closed
ericertl opened this issue Oct 23, 2013 · 1 comment
Closed

Table style #111

ericertl opened this issue Oct 23, 2013 · 1 comment

Comments

@ericertl
Copy link

Hi Roman.

I have the following scenario:
I set up a table with 3 RERadioItems
In - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
I set cell.alpha = .75;
To make the table background visible through the cells.
Everything looks good until I select an option for one of the RERadioItems. When the table is updated in
[item reloadRowWithAnimation:UITableViewRowAnimationNone];
The cells loose the alpha setting.

Is there a way to prevent that?

@romaonthego
Copy link
Owner

This is a bug of UITableView. You can do either of those after you reload a cell:

UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:item.indexPath];
cell.alpha = .75;

or

for (UITableViewCell *cell in self.tableView.visibleCells) {
    cell.alpha = .75;
}

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

2 participants