Hope this helps You are getting the warning because the data is not available locally and getData is a synchronous call to fetch the data from the server. When getData is called, it blocks the main thread - the UI - and stops all app interaction until the data downloads, which is why you are getting the error. Generally, blocking the UI to do a background operation, such as downloading, is very much frowned upon. I would use the isDataAvailable property of PFFile to check if the data is available locally. If it isn't, use getDataInBackgroundWithBlock: to fetch the data in the background. You can use the completion method supplied by that call to update your imageView.
Get two Data in one PFFile
By : user2431070
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , You can't (easily) put two files into one PFFFile. PFFFile is meant to represent one file. Make two instances of PFFile, one for the image and one for the sound file.
it should still fix some issue The problem was that I was creating a new PFFile, assigning it so some object's column locally and not saving it back to Parse. When a new file was created it's url property is nil, which should be fine, since it's not yet online. After that I was fetching the parent object whos child was that file - this was eventually messing things up because then I close the app and next time opening I was trying to fetch the data of that PFFile with url property equal to nil. That results in this exception above. A workaround suggested by a guy from Parse: