可达性回调中的访问不良

时间:2015-02-19 03:42:25

标签: ios reachability

我在下面的代码中访问不好,可能是什么原因?

static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void *info) {
#pragma unused (target, flags)
NSCAssert(info != NULL, @"info was NULL in ReachabilityCallback");
NSCAssert([(__bridge NSObject *) info isKindOfClass:[Reachability class]], @"info was wrong class in ReachabilityCallback");

0 个答案:

没有答案