资源简介
使用swift 写的小项目里面有第三方,还有swift许多的语法等等
代码片段和文件信息
// 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 2018-01-10 15:00 QLQWSwift\
目录 0 2017-11-21 11:58 QLQWSwift\QLQWSwiftUITests\
文件 1244 2017-11-21 11:58 QLQWSwift\QLQWSwiftUITests\QLQWSwiftUITests.swift
目录 0 2018-01-30 10:14 __MACOSX\
目录 0 2018-01-30 10:14 __MACOSX\QLQWSwift\
目录 0 2018-01-30 10:14 __MACOSX\QLQWSwift\QLQWSwiftUITests\
文件 181 2017-11-21 11:58 __MACOSX\QLQWSwift\QLQWSwiftUITests\._QLQWSwiftUITests.swift
文件 701 2017-11-21 11:58 QLQWSwift\QLQWSwiftUITests\Info.plist
文件 237 2017-11-21 11:58 __MACOSX\QLQWSwift\QLQWSwiftUITests\._Info.plist
文件 181 2017-11-21 11:58 __MACOSX\QLQWSwift\._QLQWSwiftUITests
目录 0 2018-01-26 17:33 QLQWSwift\.svn\
目录 0 2018-01-26 17:33 QLQWSwift\.svn\pristine\
目录 0 2017-12-18 16:43 QLQWSwift\.svn\pristine\61\
文件 46021 2017-12-18 16:43 QLQWSwift\.svn\pristine\61\611a7cdd92be6f7a78ff019f36d32c7cb808943d.svn-ba
目录 0 2018-01-30 10:14 __MACOSX\QLQWSwift\.svn\
目录 0 2018-01-30 10:14 __MACOSX\QLQWSwift\.svn\pristine\
目录 0 2018-01-30 10:14 __MACOSX\QLQWSwift\.svn\pristine\61\
文件 181 2017-12-18 16:43 __MACOSX\QLQWSwift\.svn\pristine\61\._611a7cdd92be6f7a78ff019f36d32c7cb808943d.svn-ba
文件 4252 2017-12-01 14:18 QLQWSwift\.svn\pristine\61\619a7faa6820984d22097935477da3ded858b8ec.svn-ba
文件 181 2017-12-01 14:18 __MACOSX\QLQWSwift\.svn\pristine\61\._619a7faa6820984d22097935477da3ded858b8ec.svn-ba
文件 2099 2017-11-21 11:58 QLQWSwift\.svn\pristine\61\61785df45b1d4096ff3d9aeec76dcfed68518d6e.svn-ba
文件 181 2017-11-21 11:58 __MACOSX\QLQWSwift\.svn\pristine\61\._61785df45b1d4096ff3d9aeec76dcfed68518d6e.svn-ba
文件 181 2017-12-18 16:43 __MACOSX\QLQWSwift\.svn\pristine\._61
目录 0 2017-12-04 11:46 QLQWSwift\.svn\pristine\0d\
文件 2681 2017-11-21 18:07 QLQWSwift\.svn\pristine\0d\0d1dc2f1cc7c15c500d951171456832353ed619f.svn-ba
目录 0 2018-01-30 10:14 __MACOSX\QLQWSwift\.svn\pristine\0d\
文件 181 2017-11-21 18:07 __MACOSX\QLQWSwift\.svn\pristine\0d\._0d1dc2f1cc7c15c500d951171456832353ed619f.svn-ba
文件 14374 2017-11-21 11:58 QLQWSwift\.svn\pristine\0d\0d687e49c22a9489e03c87c99d03d5760842c5dc.svn-ba
文件 181 2017-11-21 11:58 __MACOSX\QLQWSwift\.svn\pristine\0d\._0d687e49c22a9489e03c87c99d03d5760842c5dc.svn-ba
文件 49127 2017-11-21 18:07 QLQWSwift\.svn\pristine\0d\0d528b2737b4217dc6b92610e3c52fb4ebdc7375.svn-ba
文件 181 2017-11-21 18:07 __MACOSX\QLQWSwift\.svn\pristine\0d\._0d528b2737b4217dc6b92610e3c52fb4ebdc7375.svn-ba
............此处省略5907个文件信息
相关资源
- 零基础学习Swift
- Design Patterns by Tutorials in swift4.0.pdf
- objc 集合类型优化
- 集合类优化 objc
- swift-一个用于iOS和macOS的SSH和SFTP客户
- Swift4实现在线和本地音乐播放器
- RayWenderlich RxSwift Reactive Programming wit
- Swift 4 for Absolute Beginners Develop Apps fo
- iOS Architecture raywenderlich Swift 5包含源码
- Swift教程:Swift基础,第一个Swift程序
- Realm Building Modern Swift Apps with Realm Da
- Data_Structures_and_Algorithms_in_Swift_v2 by
- IOS-Swift2源码-电商App-模仿美丽说等
- Data Structures and Algorithms in Swift v3.zip
- Swift Coding Challenges - Hacking with Swift
- Swift5forAbsoluteBeginners5thEdition.epub
- Swift:面向协议编程_11020624_4033650.ep
- [cnswift.org翻译]最新swift 5中文翻译
- RayWenderlich RxSwift : Reactive Programming w
- RxSwiftRxSwift Reactive Programming with Swift
- macOS应用开发基础教程 pdf + 源码(S
- 七大swift-demo.zip
- iOS_Animations_by_Tutorials V3.1
- Hacking with Swift
- Learn Swift by Building Applications.epub
- Swift_Apprentice_v5.0.0.zip
- Combine Asynchronous Programming with Swift v0
- 泊学付费网站Swift资料(上)
-
swift-iOS的Fireba
se快速入门 - Swift中文手册完整版
评论
共有 条评论