Sunday, December 1, 2013

After iOS tableview slide down, the above effect is not multiple choice, but the data is still

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:
cited a floor 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 didS ......


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:
reference to the second floor of the reply:
cited a floor 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 * ......


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:
references, 4th Floor reply:
you pull it, is always refreshed UI, it will certainly enter that method.

Well, is this. . . Thank you

No comments:

Post a Comment