资源简介
修复了之前滑动不同步的bug

代码片段和文件信息
// AFHTTPSessionManager.m
// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
//
// Permission is hereby granted free of charge to any person obtaining a copy
// of this software and associated documentation files (the “Software“) to deal
// in the Software without restriction including without limitation the rights
// to use copy modify merge publish distribute sublicense and/or sell
// copies of the Software and to permit persons to whom the Software is
// furnished to do so subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
// IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
// LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import “AFHTTPSessionManager.h“
#import “AFURLRequestSerialization.h“
#import “AFURLResponseSerialization.h“
#import
#import
#import
#import
#import
#import
#import
#import
#if TARGET_OS_IOS || TARGET_OS_TV
#import
#elif TARGET_OS_WATCH
#import
#endif
@interface AFHTTPSessionManager ()
@property (readwrite nonatomic strong) NSURL *baseURL;
@end
@implementation AFHTTPSessionManager
@dynamic responseSerializer;
+ (instancetype)manager {
return [[[self class] alloc] initWithbaseURL:nil];
}
- (instancetype)init {
return [self initWithbaseURL:nil];
}
- (instancetype)initWithbaseURL:(NSURL *)url {
return [self initWithbaseURL:url sessionConfiguration:nil];
}
- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration {
return [self initWithbaseURL:nil sessionConfiguration:configuration];
}
- (instancetype)initWithbaseURL:(NSURL *)url
sessionConfiguration:(NSURLSessionConfiguration *)configuration
{
self = [super initWithSessionConfiguration:configuration];
if (!self) {
return nil;
}
// Ensure terminal slash for baseURL path so that NSURL +URLWithString:relativeToURL: works as expected
if ([[url path] length] > 0 && ![[url absoluteString] hasSuffix:@“/“]) {
url = [url URLByAppendingPathComponent:@““];
}
self.baseURL = url;
self.requestSerializer = [AFHTTPRequestSerializer serializer];
self.responseSerializer = [AFJSONResponseSerializer serializer];
return self;
}
#pragma mark -
- (void)setRequestSerializer:(AFHTTPRequestSerializer *)requestSerializer {
NSParameterAs
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-09-23 13:54 Test\
文件 6148 2016-09-24 09:52 Test\.DS_Store
目录 0 2016-11-12 09:06 __MACOSX\
目录 0 2016-11-12 09:06 __MACOSX\Test\
文件 120 2016-09-24 09:52 __MACOSX\Test\._.DS_Store
目录 0 2016-11-12 09:04 Test\.git\
文件 15 2016-09-23 11:32 Test\.git\COMMIT_EDITMSG
文件 144 2016-09-23 11:32 Test\.git\config
文件 73 2016-09-23 11:32 Test\.git\desc
文件 23 2016-09-23 11:32 Test\.git\HEAD
目录 0 2016-09-23 11:32 Test\.git\hooks\
文件 177 2016-09-23 11:32 Test\.git\hooks\README.sample
文件 3073 2016-09-26 10:19 Test\.git\index
目录 0 2016-09-23 11:32 Test\.git\info\
文件 40 2016-09-23 11:32 Test\.git\info\exclude
目录 0 2016-11-12 09:06 __MACOSX\Test\.git\
目录 0 2016-11-12 09:06 __MACOSX\Test\.git\info\
文件 171 2016-09-23 11:32 __MACOSX\Test\.git\info\._exclude
目录 0 2016-09-23 11:32 Test\.git\logs\
文件 171 2016-09-23 11:32 Test\.git\logs\HEAD
目录 0 2016-09-23 11:32 Test\.git\logs\refs\
目录 0 2016-09-23 11:32 Test\.git\logs\refs\heads\
文件 171 2016-09-23 11:32 Test\.git\logs\refs\heads\master
目录 0 2016-09-26 10:19 Test\.git\ob
目录 0 2016-09-26 10:19 Test\.git\ob
文件 196 2016-09-26 10:19 Test\.git\ob
目录 0 2016-09-23 11:32 Test\.git\ob
文件 3518 2016-09-23 11:32 Test\.git\ob
目录 0 2016-09-23 11:32 Test\.git\ob
文件 161 2016-09-23 11:32 Test\.git\ob
目录 0 2016-09-23 13:35 Test\.git\ob
............此处省略344个文件信息
相关资源
- activiti-explorer流程图设计器汉化文件
- 数据库课程设计停车场管理系统
- m×n的长方阵迷宫问题完美求解
- 针对MPLAB® X IDE使用PICKit™ 3在线调
- 东软股份教育事业部解决方案
- 东软数字化校园网解决方案成功应用
- 奶瓶(beini)无限免费破解增强版 使
- 交通灯multisim仿真(附图)
- powerdesigner 15.1 license key
- powerdesigner15.0的注册码license key
- visio软件64位破解版本
- Internet Explorer 11 Windows 系统 各版本
-
开机速度优化工具Startup Dela
yer3.0中 - tomcat 8.0 32位 绿色版
- 四路抢答器
- SolidWorks-100多个
- delphi源码-检测是否运行了多个程序
- 希捷硬盘套件助系统构建商把握Vist
- 可以在XE下使用的DosCommand,捕获控制
- 如何使用VC和OD调试OCX控件
- 计算机三级-网络技术-第4大题题库-共
- 雷柏v700s机械键盘驱动 v1.0.0.1 官方版
- weui手机商城模板在线
- BMA250手册word和PDF(博文配到资源)
- Delphi时钟助手源码,定时关机、提醒
- Cisco无线AP全部配置文件(AIR-1200系列
- 安卓手机PC端一键重启工具
- ManualIciMapping_v3.1
- 集客9341固件ap
- 遍历USB设备,获取USB序列号
评论
共有 条评论