对AFNetworking3.0+MBProgressHUD的二次封装,使用更方便,适用性非常强: 一句话搞定网络提示;
再也不用担心网络库更新后,工程要修改很多地方了!网络库更新了只需要更新这个封装好的库。 不足之处欢迎指正
使用方法简介:
[MBProgressHUD showAutoMessage:@"自动消失"];
[MBProgressHUD showMessage:@"纯文字,不自动消失" ToView:self.view];
[MBProgressHUD showMessage:@"纯文字,X秒后自动消失" ToView:self.view RemainTime:3];
[MBProgressHUD showCustomIcon:@"talk_gift.png" Title:@"自定义图片" ToView:self.view];
[MBProgressHUD showIconMessage:@"默认图,X秒后自动消失" ToView:self.view RemainTime:3];
[MBProgressHUD showError:@"下载失败" ToView:self.view]; [MBProgressHUD showSuccess:@"下载完成" ToView:self.view];
源码地址:https://github.com/NegHao/NHNetworkHelper 如果你觉得不错,给赞