你好,歡迎來到IOS教程網

 Ios教程網 >> IOS編程開發 >> IOS開發綜合 >> 關於oneway void

關於oneway void

編輯:IOS開發綜合
在 XCode 4.2 (with LLVM):裡    -(void)release    {   }    會彈出警告    warning: Semantic Issue: Conflicting distributed object modifiers on return type in implementation of 'release'       為了去掉警告 修改如下 :   -(oneway void) release    {   }   oneway is used with the distributed objects API, which allows use of objective-c objects between different threads or applications. It tells the system that it should not block the calling thread until the method returns. Without it, the caller will block, even though the method's return type is void. Obviously, it is never used with anything other than void, as doing so would mean the method returns something, but the caller doesn't get it.     
  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved