简体   繁体   中英

NSTimer, NSBlockOperation NSInvocation or NSOperation?

I want to make a call to my server fetches some data every 30 data that should be used to display annotation on a MKMapView. I have researched about it, but I'm still unsure which to use?

Some guidance please. :)

I'd recommend using an NSTimer, perform a selector and in your selector launch an NSOperation to perform the download. Use KVO to observe for isFinished or use delegates with your NSOperation :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM