I have a big plist file, I have a problem, when I do:
[NSMutableDictionary dictionaryWithContentsOfFile:docDirPath];
I must waiting for some seconds before I can use the application. Is there some solution?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Load the plist in another thread, GCD is perfect for this.
If the class of the method that does this will not live until the plist read is complete you will need to wrap the block in a copy to Heap.