Reachability app iPhone OS4 SDK issues
Apple's reachability application crashes at runtime after successful compile. Given the开发者_开发技巧 extent to which these routines are implemented, has anyone discovered the correction for this?
Thanks ...
I get rid of the crash by commenting the line 175 of the Reachability.m file:
173 + (Reachability*) reachabilityForLocalWiFi;
174 {
175 //[super init];
176 struct sockaddr_in localWifiAddress;
177 bzero(&localWifiAddress, sizeof(localWifiAddress));
Since the 01/06/2010, there is a minor bug fixes.
http://developer.apple.com/iphone/library/samplecode/Reachability/Introduction/Intro.html
精彩评论