autorelease/retain
和NSAutoReleasePool
。
架构armv7的未定义符号:
"_SCNetworkReachabilityCreateWithAddress",引用自: +[Reachability reachabilityWithAddress:] in Reachability.o
"_SCNetworkReachabilityCreateWithName",引用自: +[Reachability reachabilityWithHostName:] in Reachability.o
"_SCNetworkReachabilityUnscheduleFromRunLoop",引用自: -[Reachability stopNotifier] in Reachability.o
"_SCNetworkReachabilityScheduleWithRunLoop",引用自: -[Reachability startNotifier] in Reachability.o
"_SCNetworkReachabilitySetCallback",引用自: -[Reachability startNotifier] in Reachability.o
"_SCNetworkReachabilityGetFlags",引用自: -[Reachability connectionRequired] in Reachability.o -[Reachability currentReachabilityStatus] in Reachability.o
ld:找不到符号(对于架构armv7)。clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
有没有人有适用于iOS5下ARC的可达性代码?