Post

Replies

Boosts

Views

Activity

Reply to iOS 18: Detect iPhone Mirroring
For anyone who's interested, Apple has replied to my feedback with a rejection: Thank you for your feedback, it is noted. Engineering has determined that there are currently no plans to address this issue. You can close this feedback by selecting "Close Feedback" via the Actions button found above. This Feedback will no longer be monitored, and incoming messages will not be reviewed.
Sep ’24
Reply to UITableView dataSource is not set (17.4.1 (21E236) only)
We're facing the same crash in our iOS app. Interestingly, we set the tableView's dataSource to self in a view controller class in the method in which the crash is reported - so it's very weird seeing that it is nil. We have: if tableView.dataSource == nil { tableView.dataSource = self /* some other logic */ } tableView.reloadData() tableView.layoutIfNeeded() There is a catch, however: after this code, we need to wait for one run loop cycle using DispatchQueue.main.async, for the layout to complete (hence layoutIfNeeded call), after which scrollToRow is attempted. In DispatchQueue.main.async's closure, table view is weakly captured, so it should be non-nil if the view controller is non-nil, as nothing else is retaining it. Memory of every instance in this view controller is carefully managed. Once the view controller gets removed from its navigation controller, everything goes out of memory; no retain cycles, no work being performed after the controller is deallocated. Combine is used for async tasks and every task gets cancelled once the view controller is deinitialized. There may be a mistake in our code that we haven't found yet, but I'm reporting this since I'm seeing we're not the only one with the issue. The crash so far occurred only on iOS 17.5.1
Jul ’24