相信大家在判断网络状况的时候,都会用到 Reachability 。
但是在iOS5发布以后,将其导入项目中就会出现下面一个警告
Declaration of 'struct sockaddr_in' will not be visible outside of this function
解决方法很简单,只要在其头文件中添加 #import <netinet/in.h> 警告就解决了。。