Re: What's the difference between [NSOperationQueue currentQueue] and performSelectorOnMainThread (iOS platform)

2013-02-04 Thread
Thanks Mike seem You are right, and I write like this [self performSelector:@selector(doTheThing) withObject:nil afterDelay:0.5]; it can work correctly. And thanks for your suggestion 2013/2/3 Mike Abdullah > > On 3 Feb 2013, at 07:41, 尹佳冀 wrote: > > > Hi All > > >

What's the difference between [NSOperationQueue currentQueue] and performSelectorOnMainThread (iOS platform)

2013-02-02 Thread
Hi All Does anyone can know what the difference between [NSOperationQueue currentQueue] and performSelectorOnMainThread, If I do some work use operation on [NSOperationQueue mainQueue], the UI will not hang up, but if i use performSelectorOnMainThread the UI will hang up - (void) doTheThing { /

Re: Intercepting spawned URL requests from UIWebView and caching the response

2012-07-17 Thread
Hi, BareFeetWare NSURLProtocol is also can be used in iOS cocoatouch, you can check this example http://code.google.com/p/tkawebview/downloads/detail?name=tkaurlprotocol.zip&can=2&q= this is a open source url protocol, but still have some bug, 1. however I think you can use + requestIsCache