The string is about 500 chars and need to be downloaded at app start.
Share
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.
If speed is not crucial, you can simply write:
However, if you want to be elegant, idiomatic and secure (if the above code times out, iOS will kill your app!), use NSURLConnection, or simply wrap the above code into an NSThread.
NSThread docs: http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/Reference/Reference.html
NSURLConnection docs:
http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html
Hope it helps.