开发者

iphone: do a webservice request automatically

开发者 https://www.devze.com 2022-12-16 23:52 出处:网络
I need to do an automatic webservice reque开发者_Python百科st every second in my application to maintain my 3g connection. Anyone got any pointers on how to do this effectively?

I need to do an automatic webservice reque开发者_Python百科st every second in my application to maintain my 3g connection. Anyone got any pointers on how to do this effectively?

Thanks!


Have a look at Run Loops.


The NSTimer class should be able to do what you need. There are lots of other questions on SO about connecting to a web service so I won't answer that bit here.

0

精彩评论

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