Can anyone send me a sample code to write asynchronus method using "oneway" (oneway void) for iOS. So that it will not block the calling thread until the method returns.
You can use the Following link for your requirement.
http://iphone-dev-tips.alterplay.com/2009/10/asynchronous-uiimage.html
Have a look at the -performSelectorInBackground:withObject:
method on NSObject
. I also recommend Apples Threading Programming Guide for some best practices when using asynchronous methods.
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.