开发者

ipad app using splitview controller

开发者 https://www.devze.com 2023-02-24 22:08 出处:网络
Iam doing an ipad app using splitview controller.Iam getting images from webservice by using custom tableview in rootview.Bu开发者_JAVA技巧t one problem is when loading the images suddenly struck the

Iam doing an ipad app using splitview controller.Iam getting images from webservice by using custom tableview in rootview.Bu开发者_JAVA技巧t one problem is when loading the images suddenly struck the simulator. so, What i have to do?


My guess is that you aren't fetching the images asynchronously, although it is a bit of a wild guess as the question could do with re-phrasing.

IF that is the issue ...

If you are using the SYNCHRONOUS method NSURLConnection sendSynchronousRequest:returningResponse:error: you need to wrap it in a NSOperation so it doesn't block the main UI thread.

More usually you would use the asynchronous methods of NSURLConnection.

Better still, consider the third party library ASIHTTPRequest which can do all this for you and more.

0

精彩评论

暂无评论...
验证码 换一张
取 消