Skip to content

继承自AFHTTPSessionManager,封装的一个下载管理类,并带有HUD

License

Notifications You must be signed in to change notification settings

sinofake/SSNetworkManager

Repository files navigation

SSNetworkManager

继承自AFHTTPSessionManager,封装的一个下载管理类,并带有HUD

用法示例: [[NetworkManager shareManager] GET:URL_USER_LOGIN parameters:nil identifier:IDENTIFIER_USER_LOGIN observer:self selector:@selector(handleUserLogin:)]; [[NetworkManager shareManager] showHUDWithText:@"登录中..."];

#pragma mark - 处理网络请求回调

  • (void)handleUserLogin:(NSNotification *)notification { //ret 是在ParseCenter中解析过后的结果,可能是 "解析过后的结果"或者"nil"或者"NSError" id ret = [[[NetworkManager shareManager] resultDict] objectForKey:notification.name]; NSLog(@"ret:%@", ret); }

About

继承自AFHTTPSessionManager,封装的一个下载管理类,并带有HUD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published