Hello,
Thank you for the great book. It is a pleasure to read and an awesome source for all aspects of iOS network programming.
I might be wrong but in the "networkChanged" method on page 100 a Reachability object is directly compared with a NetworkStatus value.
For my understanding the method should better read:
Code:
- (void)networkChanged:(NSNotification*)notification {
Reachability *reachability = [notification object];
NetworkStatus status = [reachability currentReachabilityStatus];
if (status == ReachableViaWWAN) {
// Reachable vie WWAN
}
...
Cheers,