use*_*582 -1 objective-c reachability ios automatic-ref-counting
你好.我导入了reachability.h文件和reachability.m文件,以检查我的应用程序中的Internet连接,但是我收到了ARC错误.
我必须尝试将应用程序转换为ARC,但它仍然显示相同的错误如下:
compile Reachability.m and compile Reachability m files
implicit conversion of objective c pointer type 'Reachability *' to Cpointer type void * requires a bridged cast
ARC forbids explicit message send of 'dealloc'
ARC forbids explicit message send of 'autorelease'
ARC forbids explicit message send of 'autorelease'
'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
Cast of C pointer type 'void*' to Objective - C pointer type 'Rachability*' requires a bridged cast
release is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'release
Run Code Online (Sandbox Code Playgroud)
我不知道如何解决这个问题.我需要帮助.
谢谢
| 归档时间: |
|
| 查看次数: |
1571 次 |
| 最近记录: |