资源简介
修复了之前滑动不同步的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个文件信息
相关资源
- 北风网ADO.NET教学系列视频10讲.txt
- 85a261679cb24342f8ab04486078b73e.txt
- 控制论_工程控制论上下钱学森,宋健
- 布衣大众点评手机号码采集助手.rar
- IBMAIX操作系统基础共10集.txt
- 2018最新千锋教育C4D教程.txt
- 计算机系统基础袁春风著.txt
- 目标定位跟踪算法及仿真程序修改后
- 一个Flutter的电商实战项目.zip
- 人工智能一种现代的方法第3版.txt
- 全新高效引流方法利用易语言源码推
- 论文研究基于FPGA的函数信号发生器的
- 中科院《高级Windows程序设计》视频课
- 易语言学习资料合集.txt
- 人事管理系统开发视频教程12天.txt
- shandian-tbzdfh.zip
- 函数.zip
- 双积分式直流电压表.rar
-
BWxm
lFW.sln - 一笔画.rar
- energydetection.zip
- 千图网.zip
- canal.deployer-1.1.4-SNAPSHOT.tar.gz.crdownloa
- com.zip
- XT30.PcbLib
- Angular7Ionic4打造京东商城视频教程.t
- 九章算法百度云(1).txt
- 研发运营一体化DevOps能力成熟度模型
- 利用Praat提取汉字声调并绘图[更新增
- DLT698-45协议调试工具V1.0.rar
评论
共有 条评论