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

[QuickDialogTableView] Set root only after data source and delegate are set #720

Merged
merged 1 commit into from
Nov 4, 2015

Conversation

PatrickNLT
Copy link
Contributor

iOS 9 calls reloadData less agressively than iOS 8 and earlier. If the root of the table view is set too soon (eg. before the data source is set), reloadData may not be called in certain cases, resulting in inconsistencies and inducing crashes.

iOS 9 calls reloadData less agressively than iOS 8 and earlier. If the root of the table view is set too soon (eg. before the data source is set), reloadData may not be called in certain cases, resulting in inconsistencies and inducing crashes.
@PatrickNLT
Copy link
Contributor Author

@escoz I had the crash in another app, this is pretty critical.

@PatrickNLT
Copy link
Contributor Author

The logic issue fixed here is easy to understand: setting the root property causes reloadData to be called (see setRoot implementation). But you have to call reloadData only after the dataSource is set.

@PatrickNLT
Copy link
Contributor Author

@escoz Please consider merging that PR. Other developers have the same issue (#717, #724).

sjrmanning pushed a commit to Adapptor/QuickDialog that referenced this pull request Nov 4, 2015
@mohitagrawal
Copy link

@escoz - Could you guys please try and merge this. This is fairly a critical issue considering number of devices using iOS 9 now.

@thatguyhampton
Copy link

@escoz - I am also seeing a crash due to this issue. It would be great if it could be merged in.

escoz added a commit that referenced this pull request Nov 4, 2015
[QuickDialogTableView] Set root only after data source and delegate are set
@escoz escoz merged commit 9947f43 into escoz:master Nov 4, 2015
@escoz
Copy link
Owner

escoz commented Nov 4, 2015

Done! Thanks guys, sorry for the delay, it's been busy lately.

@PatrickNLT PatrickNLT deleted the set-root-ios9 branch November 5, 2015 11:21
khowardui added a commit to dxt/QuickDialog that referenced this pull request Apr 26, 2017
abarisain added a commit to abarisain/QuickDialog that referenced this pull request May 9, 2017
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

Successfully merging this pull request may close these issues.

4 participants