1.头文件
#import <Foundation/Foundation.h>
2.宏定义
#define A a
3.枚举/静态变量等
typedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) {
AFNetworkReachabilityStatusUnknown = -1, AFNetworkReachabilityStatusNotReachable = 0, AFNetworkReachabilityStatusReachableViaWWAN = 1, AFNetworkReachabilityStatusReachableViaWiFi = 2,};
static dispatch_queue_t http_request_operation_processing_queue() {
static dispatch_queue_t af_http_request_operation_processing_queue; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ af_http_request_operation_processing_queue = dispatch_queue_create("com.alamofire.networking.http-request.processing", DISPATCH_QUEUE_CONCURRENT); }); return af_http_request_operation_processing_queue;}
4.接口
AFNetworkReachabilityManager : NSObject
(1)属性
(readonly, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus;
(2)方法
+ (instancetype)sharedManager;