开发者

delay Problem switching tab with xml in it

开发者 https://www.devze.com 2023-01-29 14:14 出处:网络
i have app that parser xml from my blog and i have UItabbar and UItableview in it. i开发者_StackOverflow中文版n each tab i fetch XML from different site.

i have app that parser xml from my blog and i have UItabbar and UItableview in it. i开发者_StackOverflow中文版n each tab i fetch XML from different site. the problem is when i click to the second tab it take 1-2 sec and then go to the second tab in the 1-2 sec its load the xml... how do i make it go first to the second tab and then load the xml? my project : Click if you can edit my project it will be awesome :D tnx diabolo


You should call the function which loads the xml like this:

[self performSelector:@selector(yourFunctionName) withObject:nil afterDelay:1];

You can increase the delay, I have entered 1 here but you can change it.

0

精彩评论

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