0
我有以下宏:Objective-C的宏類型
#define MReachabilityReachable (((AppDelegate *)[UIApplication sharedApplication].delegate).reachableAzureMobileServices);
的follwing工作正常。
BOOL internetReachable = MReachabilityReachable;
if (internetReachable){
// do someting
}
有沒有辦法將其改爲:
if (MReachabilityReachable){
// do something
}
編譯器不接受第二個片段。
什麼是編譯器錯誤? – rmaddy
/Users/.../Documents/Developer/....../LoginViewController.m:208:33:它指向MReachabilityReachable –