dispatch_async without using a block
问题 I want to use dispatch_async to occasionally pull a changing resource from my web server (about every 60 seconds). I want to make use of dispatch_async but I want to give it a function name instead. Since I want that function to sleep and redo the same thing again. This is what I am trying to do dispatch_async(self.downloadQueue, @selector(getDataThread:)); (this does not compile) I think a while loop is not a good idea so I'm wondering what was the best approach for this 回答1: How about