[英]use of - (oneway void) in iOS
Can anyone send me a sample code to write asynchronus method using "oneway" (oneway void) for iOS. 谁能给我发送示例代码来使用iOS的“单向”(oneway void)编写异步方法。 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 http://iphone-dev-tips.alterplay.com/2009/10/asynchronous-uiimage.html
Have a look at the -performSelectorInBackground:withObject:
method on NSObject
. 看看NSObject
上的-performSelectorInBackground:withObject:
方法。 I also recommend Apples Threading Programming Guide for some best practices when using asynchronous methods. 我还建议使用Apples 线程编程指南,以获得使用异步方法时的一些最佳实践。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.