|
Hi! I'm trying to do challanges that are part of Project 9 day two. I need to modify Project 1 so that loading the list of NSSL images from bundle happens in the background and then call reloadData() method to update tableView. Xcode doesn't have any error or alerts but when trying to run I get an error:
I also get similar error when trying to run Paul's code Here is the code:
|
|
Hi Artem, Hope you're doing great. I would like to post my code here, to help you with this issue. Frankly, I didn't encounter this same error (yet 😅) but hope this could help. Note that in my case, I'm using
|
|
Thank you @rungxanh2901 for your feedback! I knew I could solve this issue by going the way you provided but still wanted to know how to use |
|
Dear Artem, So I kind of figured out what caused the crash here: seems like the background async-ed Here's how I would tackle the problem, just a slight diff from yours. Let me know if it helps.
Cheers! |
|
Hi you can use this version as well wrapped in DispatchQueue
|
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.