Made a multi-selection feature.
Problem: When the data exceeds the current view range, move down view, the above has been chosen to be flushed into the cell will not be selected until the style, but the piece of the record has been added to the array inside my definition, the only cell views was restored.
Reply:
- (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath
In this function, which determines whether to display the current record in the array you define which set the selected cell view.
In the - (void) tableView: (UITableView *) tableView didSelectRowAtIndexPath: (NSIndexPath *) indexPath here to set the selected arrays, set the cell in the selected view
Reply:
But when I drop down table and did not refresh tableview ah,
- (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath This method is not executed it. . ?
Reply:
Just tried it, can, can you tell me what the principle. . Thank you
Reply:
When you pull, the UI has been refreshed, it will certainly enter that method.
Reply:
Well, is this. . . Thank you
No comments:
Post a Comment