[
  {
    "path": ".gitignore",
    "content": "# Xcode\n#\n# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore\n\n## Build generated\nbuild/\nDerivedData\n\n## Various settings\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\n\n## Other\n*.xccheckout\n*.moved-aside\n*.xcuserstate\n*.xcscmblueprint\n\n## Obj-C/Swift specific\n*.hmap\n*.ipa\n\n# CocoaPods\n#\n# We recommend against adding the Pods directory to your .gitignore. However\n# you should judge for yourself, the pros and cons are mentioned at:\n# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control\n#\n# Pods/\n\n# Carthage\n#\n# Add this line if you want to avoid checking in source code from Carthage dependencies.\n# Carthage/Checkouts\n\nCarthage/Build\n\n# fastlane\n#\n# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the \n# screenshots whenever they are needed.\n# For more information about the recommended setup visit:\n# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md\n\nfastlane/report.xml\nfastlane/screenshots\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2016 苏\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "Podfile",
    "content": "# Uncomment this line to define a global platform for your project\n# platform :ios, '8.0'\n# Uncomment this line if you're using Swift\n# use_frameworks!\n\ntarget 'SYStickHeaderWaterFall' do\npod 'AFNetworking', '~> 3.0.4'\npod 'SDWebImage', '~> 3.7.4'\npod 'MJExtension', '~> 3.0.7'\npod 'MJRefresh', '~> 2.4.7'\npod 'MBProgressHUD', '~> 0.9.1'\n\npod 'SDWebImage-Category', '~> 1.4'\npod 'SDCycleScrollView', '~> 1.6'\n\nend\n\ntarget 'SYStickHeaderWaterFallTests' do\n\nend\n\ntarget 'SYStickHeaderWaterFallUITests' do\n\nend\n\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h",
    "content": "// AFHTTPSessionManager.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n#if !TARGET_OS_WATCH\n#import <SystemConfiguration/SystemConfiguration.h>\n#endif\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_WATCH || TARGET_OS_TV\n#import <MobileCoreServices/MobileCoreServices.h>\n#else\n#import <CoreServices/CoreServices.h>\n#endif\n\n#import \"AFURLSessionManager.h\"\n\n/**\n `AFHTTPSessionManager` is a subclass of `AFURLSessionManager` with convenience methods for making HTTP requests. When a `baseURL` is provided, requests made with the `GET` / `POST` / et al. convenience methods can be made with relative paths.\n\n ## Subclassing Notes\n\n Developers targeting iOS 7 or Mac OS X 10.9 or later that deal extensively with a web service are encouraged to subclass `AFHTTPSessionManager`, providing a class method that returns a shared singleton object on which authentication and other configuration can be shared across the application.\n\n For developers targeting iOS 6 or Mac OS X 10.8 or earlier, `AFHTTPRequestOperationManager` may be used to similar effect.\n\n ## Methods to Override\n\n To change the behavior of all data task operation construction, which is also used in the `GET` / `POST` / et al. convenience methods, override `dataTaskWithRequest:completionHandler:`.\n\n ## Serialization\n\n Requests created by an HTTP client will contain default headers and encode parameters according to the `requestSerializer` property, which is an object conforming to `<AFURLRequestSerialization>`.\n\n Responses received from the server are automatically validated and serialized by the `responseSerializers` property, which is an object conforming to `<AFURLResponseSerialization>`\n\n ## URL Construction Using Relative Paths\n\n For HTTP convenience methods, the request serializer constructs URLs from the path relative to the `-baseURL`, using `NSURL +URLWithString:relativeToURL:`, when provided. If `baseURL` is `nil`, `path` needs to resolve to a valid `NSURL` object using `NSURL +URLWithString:`.\n\n Below are a few examples of how `baseURL` and relative paths interact:\n\n    NSURL *baseURL = [NSURL URLWithString:@\"http://example.com/v1/\"];\n    [NSURL URLWithString:@\"foo\" relativeToURL:baseURL];                  // http://example.com/v1/foo\n    [NSURL URLWithString:@\"foo?bar=baz\" relativeToURL:baseURL];          // http://example.com/v1/foo?bar=baz\n    [NSURL URLWithString:@\"/foo\" relativeToURL:baseURL];                 // http://example.com/foo\n    [NSURL URLWithString:@\"foo/\" relativeToURL:baseURL];                 // http://example.com/v1/foo\n    [NSURL URLWithString:@\"/foo/\" relativeToURL:baseURL];                // http://example.com/foo/\n    [NSURL URLWithString:@\"http://example2.com/\" relativeToURL:baseURL]; // http://example2.com/\n\n Also important to note is that a trailing slash will be added to any `baseURL` without one. This would otherwise cause unexpected behavior when constructing URLs using paths without a leading slash.\n\n @warning Managers for background sessions must be owned for the duration of their use. This can be accomplished by creating an application-wide or shared singleton instance.\n */\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AFHTTPSessionManager : AFURLSessionManager <NSSecureCoding, NSCopying>\n\n/**\n The URL used to construct requests from relative paths in methods like `requestWithMethod:URLString:parameters:`, and the `GET` / `POST` / et al. convenience methods.\n */\n@property (readonly, nonatomic, strong, nullable) NSURL *baseURL;\n\n/**\n Requests created with `requestWithMethod:URLString:parameters:` & `multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:` are constructed with a set of default headers using a parameter serialization specified by this property. By default, this is set to an instance of `AFHTTPRequestSerializer`, which serializes query string parameters for `GET`, `HEAD`, and `DELETE` requests, or otherwise URL-form-encodes HTTP message bodies.\n\n @warning `requestSerializer` must not be `nil`.\n */\n@property (nonatomic, strong) AFHTTPRequestSerializer <AFURLRequestSerialization> * requestSerializer;\n\n/**\n Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to an instance of `AFJSONResponseSerializer`.\n\n @warning `responseSerializer` must not be `nil`.\n */\n@property (nonatomic, strong) AFHTTPResponseSerializer <AFURLResponseSerialization> * responseSerializer;\n\n///---------------------\n/// @name Initialization\n///---------------------\n\n/**\n Creates and returns an `AFHTTPSessionManager` object.\n */\n+ (instancetype)manager;\n\n/**\n Initializes an `AFHTTPSessionManager` object with the specified base URL.\n\n @param url The base URL for the HTTP client.\n\n @return The newly-initialized HTTP client\n */\n- (instancetype)initWithBaseURL:(nullable NSURL *)url;\n\n/**\n Initializes an `AFHTTPSessionManager` object with the specified base URL.\n\n This is the designated initializer.\n\n @param url The base URL for the HTTP client.\n @param configuration The configuration used to create the managed session.\n\n @return The newly-initialized HTTP client\n */\n- (instancetype)initWithBaseURL:(nullable NSURL *)url\n           sessionConfiguration:(nullable NSURLSessionConfiguration *)configuration NS_DESIGNATED_INITIALIZER;\n\n///---------------------------\n/// @name Making HTTP Requests\n///---------------------------\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a `GET` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)GET:(NSString *)URLString\n                   parameters:(nullable id)parameters\n                      success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                      failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;\n\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a `GET` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param progress A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)GET:(NSString *)URLString\n                            parameters:(nullable id)parameters\n                              progress:(nullable void (^)(NSProgress *downloadProgress)) downloadProgress\n                               success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                               failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a `HEAD` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes a single arguments: the data task.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)HEAD:(NSString *)URLString\n                    parameters:(nullable id)parameters\n                       success:(nullable void (^)(NSURLSessionDataTask *task))success\n                       failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a `POST` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)POST:(NSString *)URLString\n                    parameters:(nullable id)parameters\n                       success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                       failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a `POST` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param progress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)POST:(NSString *)URLString\n                             parameters:(nullable id)parameters\n                               progress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgress\n                                success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                                failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a multipart `POST` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)POST:(NSString *)URLString\n                    parameters:(nullable id)parameters\n     constructingBodyWithBlock:(nullable void (^)(id <AFMultipartFormData> formData))block\n                       success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                       failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a multipart `POST` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol.\n @param progress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)POST:(NSString *)URLString\n                             parameters:(nullable id)parameters\n              constructingBodyWithBlock:(nullable void (^)(id <AFMultipartFormData> formData))block\n                               progress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgress\n                                success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                                failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a `PUT` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)PUT:(NSString *)URLString\n                   parameters:(nullable id)parameters\n                      success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                      failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a `PATCH` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)PATCH:(NSString *)URLString\n                     parameters:(nullable id)parameters\n                        success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                        failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;\n\n/**\n Creates and runs an `NSURLSessionDataTask` with a `DELETE` request.\n\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded according to the client request serializer.\n @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.\n @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.\n\n @see -dataTaskWithRequest:completionHandler:\n */\n- (nullable NSURLSessionDataTask *)DELETE:(NSString *)URLString\n                      parameters:(nullable id)parameters\n                         success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success\n                         failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m",
    "content": "// AFHTTPSessionManager.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"AFHTTPSessionManager.h\"\n\n#import \"AFURLRequestSerialization.h\"\n#import \"AFURLResponseSerialization.h\"\n\n#import <Availability.h>\n#import <TargetConditionals.h>\n#import <Security/Security.h>\n\n#import <netinet/in.h>\n#import <netinet6/in6.h>\n#import <arpa/inet.h>\n#import <ifaddrs.h>\n#import <netdb.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n#import <UIKit/UIKit.h>\n#elif TARGET_OS_WATCH\n#import <WatchKit/WatchKit.h>\n#endif\n\n@interface AFHTTPSessionManager ()\n@property (readwrite, nonatomic, strong) NSURL *baseURL;\n@end\n\n@implementation AFHTTPSessionManager\n@dynamic responseSerializer;\n\n+ (instancetype)manager {\n    return [[[self class] alloc] initWithBaseURL:nil];\n}\n\n- (instancetype)init {\n    return [self initWithBaseURL:nil];\n}\n\n- (instancetype)initWithBaseURL:(NSURL *)url {\n    return [self initWithBaseURL:url sessionConfiguration:nil];\n}\n\n- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration {\n    return [self initWithBaseURL:nil sessionConfiguration:configuration];\n}\n\n- (instancetype)initWithBaseURL:(NSURL *)url\n           sessionConfiguration:(NSURLSessionConfiguration *)configuration\n{\n    self = [super initWithSessionConfiguration:configuration];\n    if (!self) {\n        return nil;\n    }\n\n    // Ensure terminal slash for baseURL path, so that NSURL +URLWithString:relativeToURL: works as expected\n    if ([[url path] length] > 0 && ![[url absoluteString] hasSuffix:@\"/\"]) {\n        url = [url URLByAppendingPathComponent:@\"\"];\n    }\n\n    self.baseURL = url;\n\n    self.requestSerializer = [AFHTTPRequestSerializer serializer];\n    self.responseSerializer = [AFJSONResponseSerializer serializer];\n\n    return self;\n}\n\n#pragma mark -\n\n- (void)setRequestSerializer:(AFHTTPRequestSerializer <AFURLRequestSerialization> *)requestSerializer {\n    NSParameterAssert(requestSerializer);\n\n    _requestSerializer = requestSerializer;\n}\n\n- (void)setResponseSerializer:(AFHTTPResponseSerializer <AFURLResponseSerialization> *)responseSerializer {\n    NSParameterAssert(responseSerializer);\n\n    [super setResponseSerializer:responseSerializer];\n}\n\n#pragma mark -\n\n- (NSURLSessionDataTask *)GET:(NSString *)URLString\n                   parameters:(id)parameters\n                      success:(void (^)(NSURLSessionDataTask *task, id responseObject))success\n                      failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure\n{\n\n    return [self GET:URLString parameters:parameters progress:nil success:success failure:failure];\n}\n\n- (NSURLSessionDataTask *)GET:(NSString *)URLString\n                   parameters:(id)parameters\n                     progress:(void (^)(NSProgress * _Nonnull))downloadProgress\n                      success:(void (^)(NSURLSessionDataTask * _Nonnull, id _Nullable))success\n                      failure:(void (^)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull))failure\n{\n\n    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@\"GET\"\n                                                        URLString:URLString\n                                                       parameters:parameters\n                                                   uploadProgress:nil\n                                                 downloadProgress:downloadProgress\n                                                          success:success\n                                                          failure:failure];\n\n    [dataTask resume];\n\n    return dataTask;\n}\n\n- (NSURLSessionDataTask *)HEAD:(NSString *)URLString\n                    parameters:(id)parameters\n                       success:(void (^)(NSURLSessionDataTask *task))success\n                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure\n{\n    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@\"HEAD\" URLString:URLString parameters:parameters uploadProgress:nil downloadProgress:nil success:^(NSURLSessionDataTask *task, __unused id responseObject) {\n        if (success) {\n            success(task);\n        }\n    } failure:failure];\n\n    [dataTask resume];\n\n    return dataTask;\n}\n\n- (NSURLSessionDataTask *)POST:(NSString *)URLString\n                    parameters:(id)parameters\n                       success:(void (^)(NSURLSessionDataTask *task, id responseObject))success\n                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure\n{\n    return [self POST:URLString parameters:parameters progress:nil success:success failure:failure];\n}\n\n- (NSURLSessionDataTask *)POST:(NSString *)URLString\n                    parameters:(id)parameters\n                      progress:(void (^)(NSProgress * _Nonnull))uploadProgress\n                       success:(void (^)(NSURLSessionDataTask * _Nonnull, id _Nullable))success\n                       failure:(void (^)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull))failure\n{\n    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@\"POST\" URLString:URLString parameters:parameters uploadProgress:uploadProgress downloadProgress:nil success:success failure:failure];\n\n    [dataTask resume];\n\n    return dataTask;\n}\n\n- (NSURLSessionDataTask *)POST:(NSString *)URLString\n                    parameters:(nullable id)parameters\n     constructingBodyWithBlock:(nullable void (^)(id<AFMultipartFormData> _Nonnull))block\n                       success:(nullable void (^)(NSURLSessionDataTask * _Nonnull, id _Nullable))success\n                       failure:(nullable void (^)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull))failure\n{\n    return [self POST:URLString parameters:parameters constructingBodyWithBlock:block progress:nil success:success failure:failure];\n}\n\n- (NSURLSessionDataTask *)POST:(NSString *)URLString\n                    parameters:(id)parameters\n     constructingBodyWithBlock:(void (^)(id <AFMultipartFormData> formData))block\n                      progress:(nullable void (^)(NSProgress * _Nonnull))uploadProgress\n                       success:(void (^)(NSURLSessionDataTask *task, id responseObject))success\n                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure\n{\n    NSError *serializationError = nil;\n    NSMutableURLRequest *request = [self.requestSerializer multipartFormRequestWithMethod:@\"POST\" URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters constructingBodyWithBlock:block error:&serializationError];\n    if (serializationError) {\n        if (failure) {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n            dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{\n                failure(nil, serializationError);\n            });\n#pragma clang diagnostic pop\n        }\n\n        return nil;\n    }\n\n    __block NSURLSessionDataTask *task = [self uploadTaskWithStreamedRequest:request progress:uploadProgress completionHandler:^(NSURLResponse * __unused response, id responseObject, NSError *error) {\n        if (error) {\n            if (failure) {\n                failure(task, error);\n            }\n        } else {\n            if (success) {\n                success(task, responseObject);\n            }\n        }\n    }];\n\n    [task resume];\n\n    return task;\n}\n\n- (NSURLSessionDataTask *)PUT:(NSString *)URLString\n                   parameters:(id)parameters\n                      success:(void (^)(NSURLSessionDataTask *task, id responseObject))success\n                      failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure\n{\n    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@\"PUT\" URLString:URLString parameters:parameters uploadProgress:nil downloadProgress:nil success:success failure:failure];\n\n    [dataTask resume];\n\n    return dataTask;\n}\n\n- (NSURLSessionDataTask *)PATCH:(NSString *)URLString\n                     parameters:(id)parameters\n                        success:(void (^)(NSURLSessionDataTask *task, id responseObject))success\n                        failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure\n{\n    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@\"PATCH\" URLString:URLString parameters:parameters uploadProgress:nil downloadProgress:nil success:success failure:failure];\n\n    [dataTask resume];\n\n    return dataTask;\n}\n\n- (NSURLSessionDataTask *)DELETE:(NSString *)URLString\n                      parameters:(id)parameters\n                         success:(void (^)(NSURLSessionDataTask *task, id responseObject))success\n                         failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure\n{\n    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@\"DELETE\" URLString:URLString parameters:parameters uploadProgress:nil downloadProgress:nil success:success failure:failure];\n\n    [dataTask resume];\n\n    return dataTask;\n}\n\n- (NSURLSessionDataTask *)dataTaskWithHTTPMethod:(NSString *)method\n                                       URLString:(NSString *)URLString\n                                      parameters:(id)parameters\n                                  uploadProgress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgress\n                                downloadProgress:(nullable void (^)(NSProgress *downloadProgress)) downloadProgress\n                                         success:(void (^)(NSURLSessionDataTask *, id))success\n                                         failure:(void (^)(NSURLSessionDataTask *, NSError *))failure\n{\n    NSError *serializationError = nil;\n    NSMutableURLRequest *request = [self.requestSerializer requestWithMethod:method URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters error:&serializationError];\n    if (serializationError) {\n        if (failure) {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n            dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{\n                failure(nil, serializationError);\n            });\n#pragma clang diagnostic pop\n        }\n\n        return nil;\n    }\n\n    __block NSURLSessionDataTask *dataTask = nil;\n    dataTask = [self dataTaskWithRequest:request\n                          uploadProgress:uploadProgress\n                        downloadProgress:downloadProgress\n                       completionHandler:^(NSURLResponse * __unused response, id responseObject, NSError *error) {\n        if (error) {\n            if (failure) {\n                failure(dataTask, error);\n            }\n        } else {\n            if (success) {\n                success(dataTask, responseObject);\n            }\n        }\n    }];\n\n    return dataTask;\n}\n\n#pragma mark - NSObject\n\n- (NSString *)description {\n    return [NSString stringWithFormat:@\"<%@: %p, baseURL: %@, session: %@, operationQueue: %@>\", NSStringFromClass([self class]), self, [self.baseURL absoluteString], self.session, self.operationQueue];\n}\n\n#pragma mark - NSSecureCoding\n\n+ (BOOL)supportsSecureCoding {\n    return YES;\n}\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    NSURL *baseURL = [decoder decodeObjectOfClass:[NSURL class] forKey:NSStringFromSelector(@selector(baseURL))];\n    NSURLSessionConfiguration *configuration = [decoder decodeObjectOfClass:[NSURLSessionConfiguration class] forKey:@\"sessionConfiguration\"];\n    if (!configuration) {\n        NSString *configurationIdentifier = [decoder decodeObjectOfClass:[NSString class] forKey:@\"identifier\"];\n        if (configurationIdentifier) {\n#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1100)\n            configuration = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:configurationIdentifier];\n#else\n            configuration = [NSURLSessionConfiguration backgroundSessionConfiguration:configurationIdentifier];\n#endif\n        }\n    }\n\n    self = [self initWithBaseURL:baseURL sessionConfiguration:configuration];\n    if (!self) {\n        return nil;\n    }\n\n    self.requestSerializer = [decoder decodeObjectOfClass:[AFHTTPRequestSerializer class] forKey:NSStringFromSelector(@selector(requestSerializer))];\n    self.responseSerializer = [decoder decodeObjectOfClass:[AFHTTPResponseSerializer class] forKey:NSStringFromSelector(@selector(responseSerializer))];\n    AFSecurityPolicy *decodedPolicy = [decoder decodeObjectOfClass:[AFSecurityPolicy class] forKey:NSStringFromSelector(@selector(securityPolicy))];\n    if (decodedPolicy) {\n        self.securityPolicy = decodedPolicy;\n    }\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [super encodeWithCoder:coder];\n\n    [coder encodeObject:self.baseURL forKey:NSStringFromSelector(@selector(baseURL))];\n    if ([self.session.configuration conformsToProtocol:@protocol(NSCoding)]) {\n        [coder encodeObject:self.session.configuration forKey:@\"sessionConfiguration\"];\n    } else {\n        [coder encodeObject:self.session.configuration.identifier forKey:@\"identifier\"];\n    }\n    [coder encodeObject:self.requestSerializer forKey:NSStringFromSelector(@selector(requestSerializer))];\n    [coder encodeObject:self.responseSerializer forKey:NSStringFromSelector(@selector(responseSerializer))];\n    [coder encodeObject:self.securityPolicy forKey:NSStringFromSelector(@selector(securityPolicy))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFHTTPSessionManager *HTTPClient = [[[self class] allocWithZone:zone] initWithBaseURL:self.baseURL sessionConfiguration:self.session.configuration];\n\n    HTTPClient.requestSerializer = [self.requestSerializer copyWithZone:zone];\n    HTTPClient.responseSerializer = [self.responseSerializer copyWithZone:zone];\n    HTTPClient.securityPolicy = [self.securityPolicy copyWithZone:zone];\n    return HTTPClient;\n}\n\n@end\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.h",
    "content": "// AFNetworkReachabilityManager.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#if !TARGET_OS_WATCH\n#import <SystemConfiguration/SystemConfiguration.h>\n\ntypedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) {\n    AFNetworkReachabilityStatusUnknown          = -1,\n    AFNetworkReachabilityStatusNotReachable     = 0,\n    AFNetworkReachabilityStatusReachableViaWWAN = 1,\n    AFNetworkReachabilityStatusReachableViaWiFi = 2,\n};\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n `AFNetworkReachabilityManager` monitors the reachability of domains, and addresses for both WWAN and WiFi network interfaces.\n\n Reachability can be used to determine background information about why a network operation failed, or to trigger a network operation retrying when a connection is established. It should not be used to prevent a user from initiating a network request, as it's possible that an initial request may be required to establish reachability.\n\n See Apple's Reachability Sample Code (https://developer.apple.com/library/ios/samplecode/reachability/)\n\n @warning Instances of `AFNetworkReachabilityManager` must be started with `-startMonitoring` before reachability status can be determined.\n */\n@interface AFNetworkReachabilityManager : NSObject\n\n/**\n The current network reachability status.\n */\n@property (readonly, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus;\n\n/**\n Whether or not the network is currently reachable.\n */\n@property (readonly, nonatomic, assign, getter = isReachable) BOOL reachable;\n\n/**\n Whether or not the network is currently reachable via WWAN.\n */\n@property (readonly, nonatomic, assign, getter = isReachableViaWWAN) BOOL reachableViaWWAN;\n\n/**\n Whether or not the network is currently reachable via WiFi.\n */\n@property (readonly, nonatomic, assign, getter = isReachableViaWiFi) BOOL reachableViaWiFi;\n\n///---------------------\n/// @name Initialization\n///---------------------\n\n/**\n Returns the shared network reachability manager.\n */\n+ (instancetype)sharedManager;\n\n/**\n Creates and returns a network reachability manager with the default socket address.\n \n @return An initialized network reachability manager, actively monitoring the default socket address.\n */\n+ (instancetype)manager;\n\n/**\n Creates and returns a network reachability manager for the specified domain.\n\n @param domain The domain used to evaluate network reachability.\n\n @return An initialized network reachability manager, actively monitoring the specified domain.\n */\n+ (instancetype)managerForDomain:(NSString *)domain;\n\n/**\n Creates and returns a network reachability manager for the socket address.\n\n @param address The socket address (`sockaddr_in6`) used to evaluate network reachability.\n\n @return An initialized network reachability manager, actively monitoring the specified socket address.\n */\n+ (instancetype)managerForAddress:(const void *)address;\n\n/**\n Initializes an instance of a network reachability manager from the specified reachability object.\n\n @param reachability The reachability object to monitor.\n\n @return An initialized network reachability manager, actively monitoring the specified reachability.\n */\n- (instancetype)initWithReachability:(SCNetworkReachabilityRef)reachability NS_DESIGNATED_INITIALIZER;\n\n///--------------------------------------------------\n/// @name Starting & Stopping Reachability Monitoring\n///--------------------------------------------------\n\n/**\n Starts monitoring for changes in network reachability status.\n */\n- (void)startMonitoring;\n\n/**\n Stops monitoring for changes in network reachability status.\n */\n- (void)stopMonitoring;\n\n///-------------------------------------------------\n/// @name Getting Localized Reachability Description\n///-------------------------------------------------\n\n/**\n Returns a localized string representation of the current network reachability status.\n */\n- (NSString *)localizedNetworkReachabilityStatusString;\n\n///---------------------------------------------------\n/// @name Setting Network Reachability Change Callback\n///---------------------------------------------------\n\n/**\n Sets a callback to be executed when the network availability of the `baseURL` host changes.\n\n @param block A block object to be executed when the network availability of the `baseURL` host changes.. This block has no return value and takes a single argument which represents the various reachability states from the device to the `baseURL`.\n */\n- (void)setReachabilityStatusChangeBlock:(nullable void (^)(AFNetworkReachabilityStatus status))block;\n\n@end\n\n///----------------\n/// @name Constants\n///----------------\n\n/**\n ## Network Reachability\n\n The following constants are provided by `AFNetworkReachabilityManager` as possible network reachability statuses.\n\n enum {\n AFNetworkReachabilityStatusUnknown,\n AFNetworkReachabilityStatusNotReachable,\n AFNetworkReachabilityStatusReachableViaWWAN,\n AFNetworkReachabilityStatusReachableViaWiFi,\n }\n\n `AFNetworkReachabilityStatusUnknown`\n The `baseURL` host reachability is not known.\n\n `AFNetworkReachabilityStatusNotReachable`\n The `baseURL` host cannot be reached.\n\n `AFNetworkReachabilityStatusReachableViaWWAN`\n The `baseURL` host can be reached via a cellular connection, such as EDGE or GPRS.\n\n `AFNetworkReachabilityStatusReachableViaWiFi`\n The `baseURL` host can be reached via a Wi-Fi connection.\n\n ### Keys for Notification UserInfo Dictionary\n\n Strings that are used as keys in a `userInfo` dictionary in a network reachability status change notification.\n\n `AFNetworkingReachabilityNotificationStatusItem`\n A key in the userInfo dictionary in a `AFNetworkingReachabilityDidChangeNotification` notification.\n The corresponding value is an `NSNumber` object representing the `AFNetworkReachabilityStatus` value for the current reachability status.\n */\n\n///--------------------\n/// @name Notifications\n///--------------------\n\n/**\n Posted when network reachability changes.\n This notification assigns no notification object. The `userInfo` dictionary contains an `NSNumber` object under the `AFNetworkingReachabilityNotificationStatusItem` key, representing the `AFNetworkReachabilityStatus` value for the current network reachability.\n\n @warning In order for network reachability to be monitored, include the `SystemConfiguration` framework in the active target's \"Link Binary With Library\" build phase, and add `#import <SystemConfiguration/SystemConfiguration.h>` to the header prefix of the project (`Prefix.pch`).\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingReachabilityDidChangeNotification;\nFOUNDATION_EXPORT NSString * const AFNetworkingReachabilityNotificationStatusItem;\n\n///--------------------\n/// @name Functions\n///--------------------\n\n/**\n Returns a localized string representation of an `AFNetworkReachabilityStatus` value.\n */\nFOUNDATION_EXPORT NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status);\n\nNS_ASSUME_NONNULL_END\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m",
    "content": "// AFNetworkReachabilityManager.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"AFNetworkReachabilityManager.h\"\n#if !TARGET_OS_WATCH\n\n#import <netinet/in.h>\n#import <netinet6/in6.h>\n#import <arpa/inet.h>\n#import <ifaddrs.h>\n#import <netdb.h>\n\nNSString * const AFNetworkingReachabilityDidChangeNotification = @\"com.alamofire.networking.reachability.change\";\nNSString * const AFNetworkingReachabilityNotificationStatusItem = @\"AFNetworkingReachabilityNotificationStatusItem\";\n\ntypedef void (^AFNetworkReachabilityStatusBlock)(AFNetworkReachabilityStatus status);\n\nNSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status) {\n    switch (status) {\n        case AFNetworkReachabilityStatusNotReachable:\n            return NSLocalizedStringFromTable(@\"Not Reachable\", @\"AFNetworking\", nil);\n        case AFNetworkReachabilityStatusReachableViaWWAN:\n            return NSLocalizedStringFromTable(@\"Reachable via WWAN\", @\"AFNetworking\", nil);\n        case AFNetworkReachabilityStatusReachableViaWiFi:\n            return NSLocalizedStringFromTable(@\"Reachable via WiFi\", @\"AFNetworking\", nil);\n        case AFNetworkReachabilityStatusUnknown:\n        default:\n            return NSLocalizedStringFromTable(@\"Unknown\", @\"AFNetworking\", nil);\n    }\n}\n\nstatic AFNetworkReachabilityStatus AFNetworkReachabilityStatusForFlags(SCNetworkReachabilityFlags flags) {\n    BOOL isReachable = ((flags & kSCNetworkReachabilityFlagsReachable) != 0);\n    BOOL needsConnection = ((flags & kSCNetworkReachabilityFlagsConnectionRequired) != 0);\n    BOOL canConnectionAutomatically = (((flags & kSCNetworkReachabilityFlagsConnectionOnDemand ) != 0) || ((flags & kSCNetworkReachabilityFlagsConnectionOnTraffic) != 0));\n    BOOL canConnectWithoutUserInteraction = (canConnectionAutomatically && (flags & kSCNetworkReachabilityFlagsInterventionRequired) == 0);\n    BOOL isNetworkReachable = (isReachable && (!needsConnection || canConnectWithoutUserInteraction));\n\n    AFNetworkReachabilityStatus status = AFNetworkReachabilityStatusUnknown;\n    if (isNetworkReachable == NO) {\n        status = AFNetworkReachabilityStatusNotReachable;\n    }\n#if\tTARGET_OS_IPHONE\n    else if ((flags & kSCNetworkReachabilityFlagsIsWWAN) != 0) {\n        status = AFNetworkReachabilityStatusReachableViaWWAN;\n    }\n#endif\n    else {\n        status = AFNetworkReachabilityStatusReachableViaWiFi;\n    }\n\n    return status;\n}\n\n/**\n * Queue a status change notification for the main thread.\n *\n * This is done to ensure that the notifications are received in the same order\n * as they are sent. If notifications are sent directly, it is possible that\n * a queued notification (for an earlier status condition) is processed after\n * the later update, resulting in the listener being left in the wrong state.\n */\nstatic void AFPostReachabilityStatusChange(SCNetworkReachabilityFlags flags, AFNetworkReachabilityStatusBlock block) {\n    AFNetworkReachabilityStatus status = AFNetworkReachabilityStatusForFlags(flags);\n    dispatch_async(dispatch_get_main_queue(), ^{\n        if (block) {\n            block(status);\n        }\n        NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];\n        NSDictionary *userInfo = @{ AFNetworkingReachabilityNotificationStatusItem: @(status) };\n        [notificationCenter postNotificationName:AFNetworkingReachabilityDidChangeNotification object:nil userInfo:userInfo];\n    });\n}\n\nstatic void AFNetworkReachabilityCallback(SCNetworkReachabilityRef __unused target, SCNetworkReachabilityFlags flags, void *info) {\n    AFPostReachabilityStatusChange(flags, (__bridge AFNetworkReachabilityStatusBlock)info);\n}\n\n\nstatic const void * AFNetworkReachabilityRetainCallback(const void *info) {\n    return Block_copy(info);\n}\n\nstatic void AFNetworkReachabilityReleaseCallback(const void *info) {\n    if (info) {\n        Block_release(info);\n    }\n}\n\n@interface AFNetworkReachabilityManager ()\n@property (readwrite, nonatomic, strong) id networkReachability;\n@property (readwrite, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus;\n@property (readwrite, nonatomic, copy) AFNetworkReachabilityStatusBlock networkReachabilityStatusBlock;\n@end\n\n@implementation AFNetworkReachabilityManager\n\n+ (instancetype)sharedManager {\n    static AFNetworkReachabilityManager *_sharedManager = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        _sharedManager = [self manager];\n    });\n\n    return _sharedManager;\n}\n\n#ifndef __clang_analyzer__\n+ (instancetype)managerForDomain:(NSString *)domain {\n    SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(kCFAllocatorDefault, [domain UTF8String]);\n\n    AFNetworkReachabilityManager *manager = [[self alloc] initWithReachability:reachability];\n\n    return manager;\n}\n#endif\n\n#ifndef __clang_analyzer__\n+ (instancetype)managerForAddress:(const void *)address {\n    SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, (const struct sockaddr *)address);\n    AFNetworkReachabilityManager *manager = [[self alloc] initWithReachability:reachability];\n\n    return manager;\n}\n#endif\n\n+ (instancetype)manager\n{\n#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n    struct sockaddr_in6 address;\n    bzero(&address, sizeof(address));\n    address.sin6_len = sizeof(address);\n    address.sin6_family = AF_INET6;\n#else\n    struct sockaddr_in address;\n    bzero(&address, sizeof(address));\n    address.sin_len = sizeof(address);\n    address.sin_family = AF_INET;\n#endif\n    return [self managerForAddress:&address];\n}\n\n- (instancetype)initWithReachability:(SCNetworkReachabilityRef)reachability {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.networkReachability = CFBridgingRelease(reachability);\n    self.networkReachabilityStatus = AFNetworkReachabilityStatusUnknown;\n\n    return self;\n}\n\n- (instancetype)init NS_UNAVAILABLE\n{\n    return nil;\n}\n\n- (void)dealloc {\n    [self stopMonitoring];\n}\n\n#pragma mark -\n\n- (BOOL)isReachable {\n    return [self isReachableViaWWAN] || [self isReachableViaWiFi];\n}\n\n- (BOOL)isReachableViaWWAN {\n    return self.networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWWAN;\n}\n\n- (BOOL)isReachableViaWiFi {\n    return self.networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWiFi;\n}\n\n#pragma mark -\n\n- (void)startMonitoring {\n    [self stopMonitoring];\n\n    if (!self.networkReachability) {\n        return;\n    }\n\n    __weak __typeof(self)weakSelf = self;\n    AFNetworkReachabilityStatusBlock callback = ^(AFNetworkReachabilityStatus status) {\n        __strong __typeof(weakSelf)strongSelf = weakSelf;\n\n        strongSelf.networkReachabilityStatus = status;\n        if (strongSelf.networkReachabilityStatusBlock) {\n            strongSelf.networkReachabilityStatusBlock(status);\n        }\n\n    };\n\n    id networkReachability = self.networkReachability;\n    SCNetworkReachabilityContext context = {0, (__bridge void *)callback, AFNetworkReachabilityRetainCallback, AFNetworkReachabilityReleaseCallback, NULL};\n    SCNetworkReachabilitySetCallback((__bridge SCNetworkReachabilityRef)networkReachability, AFNetworkReachabilityCallback, &context);\n    SCNetworkReachabilityScheduleWithRunLoop((__bridge SCNetworkReachabilityRef)networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);\n\n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0),^{\n        SCNetworkReachabilityFlags flags;\n        if (SCNetworkReachabilityGetFlags((__bridge SCNetworkReachabilityRef)networkReachability, &flags)) {\n            AFPostReachabilityStatusChange(flags, callback);\n        }\n    });\n}\n\n- (void)stopMonitoring {\n    if (!self.networkReachability) {\n        return;\n    }\n\n    SCNetworkReachabilityUnscheduleFromRunLoop((__bridge SCNetworkReachabilityRef)self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);\n}\n\n#pragma mark -\n\n- (NSString *)localizedNetworkReachabilityStatusString {\n    return AFStringFromNetworkReachabilityStatus(self.networkReachabilityStatus);\n}\n\n#pragma mark -\n\n- (void)setReachabilityStatusChangeBlock:(void (^)(AFNetworkReachabilityStatus status))block {\n    self.networkReachabilityStatusBlock = block;\n}\n\n#pragma mark - NSKeyValueObserving\n\n+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {\n    if ([key isEqualToString:@\"reachable\"] || [key isEqualToString:@\"reachableViaWWAN\"] || [key isEqualToString:@\"reachableViaWiFi\"]) {\n        return [NSSet setWithObject:@\"networkReachabilityStatus\"];\n    }\n\n    return [super keyPathsForValuesAffectingValueForKey:key];\n}\n\n@end\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFNetworking.h",
    "content": "// AFNetworking.h\n//\n// Copyright (c) 2013 AFNetworking (http://afnetworking.com/)\n// \n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n// \n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n// \n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n#import <Availability.h>\n#import <TargetConditionals.h>\n\n#ifndef _AFNETWORKING_\n    #define _AFNETWORKING_\n\n    #import \"AFURLRequestSerialization.h\"\n    #import \"AFURLResponseSerialization.h\"\n    #import \"AFSecurityPolicy.h\"\n\n#if !TARGET_OS_WATCH\n    #import \"AFNetworkReachabilityManager.h\"\n#endif\n\n    #import \"AFURLSessionManager.h\"\n    #import \"AFHTTPSessionManager.h\"\n\n#endif /* _AFNETWORKING_ */\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFSecurityPolicy.h",
    "content": "// AFSecurityPolicy.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n#import <Security/Security.h>\n\ntypedef NS_ENUM(NSUInteger, AFSSLPinningMode) {\n    AFSSLPinningModeNone,\n    AFSSLPinningModePublicKey,\n    AFSSLPinningModeCertificate,\n};\n\n/**\n `AFSecurityPolicy` evaluates server trust against pinned X.509 certificates and public keys over secure connections.\n\n Adding pinned SSL certificates to your app helps prevent man-in-the-middle attacks and other vulnerabilities. Applications dealing with sensitive customer data or financial information are strongly encouraged to route all communication over an HTTPS connection with SSL pinning configured and enabled.\n */\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AFSecurityPolicy : NSObject <NSSecureCoding, NSCopying>\n\n/**\n The criteria by which server trust should be evaluated against the pinned SSL certificates. Defaults to `AFSSLPinningModeNone`.\n */\n@property (readonly, nonatomic, assign) AFSSLPinningMode SSLPinningMode;\n\n/**\n The certificates used to evaluate server trust according to the SSL pinning mode. \n\n  By default, this property is set to any (`.cer`) certificates included in the target compiling AFNetworking. Note that if you are using AFNetworking as embedded framework, no certificates will be pinned by default. Use `certificatesInBundle` to load certificates from your target, and then create a new policy by calling `policyWithPinningMode:withPinnedCertificates`.\n \n Note that if pinning is enabled, `evaluateServerTrust:forDomain:` will return true if any pinned certificate matches.\n */\n@property (nonatomic, strong, nullable) NSSet <NSData *> *pinnedCertificates;\n\n/**\n Whether or not to trust servers with an invalid or expired SSL certificates. Defaults to `NO`.\n */\n@property (nonatomic, assign) BOOL allowInvalidCertificates;\n\n/**\n Whether or not to validate the domain name in the certificate's CN field. Defaults to `YES`.\n */\n@property (nonatomic, assign) BOOL validatesDomainName;\n\n///-----------------------------------------\n/// @name Getting Certificates from the Bundle\n///-----------------------------------------\n\n/**\n Returns any certificates included in the bundle. If you are using AFNetworking as an embedded framework, you must use this method to find the certificates you have included in your app bundle, and use them when creating your security policy by calling `policyWithPinningMode:withPinnedCertificates`.\n\n @return The certificates included in the given bundle.\n */\n+ (NSSet <NSData *> *)certificatesInBundle:(NSBundle *)bundle;\n\n///-----------------------------------------\n/// @name Getting Specific Security Policies\n///-----------------------------------------\n\n/**\n Returns the shared default security policy, which does not allow invalid certificates, validates domain name, and does not validate against pinned certificates or public keys.\n\n @return The default security policy.\n */\n+ (instancetype)defaultPolicy;\n\n///---------------------\n/// @name Initialization\n///---------------------\n\n/**\n Creates and returns a security policy with the specified pinning mode.\n\n @param pinningMode The SSL pinning mode.\n\n @return A new security policy.\n */\n+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode;\n\n/**\n Creates and returns a security policy with the specified pinning mode.\n\n @param pinningMode The SSL pinning mode.\n @param pinnedCertificates The certificates to pin against.\n\n @return A new security policy.\n */\n+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode withPinnedCertificates:(NSSet <NSData *> *)pinnedCertificates;\n\n///------------------------------\n/// @name Evaluating Server Trust\n///------------------------------\n\n/**\n Whether or not the specified server trust should be accepted, based on the security policy.\n\n This method should be used when responding to an authentication challenge from a server.\n\n @param serverTrust The X.509 certificate trust of the server.\n @param domain The domain of serverTrust. If `nil`, the domain will not be validated.\n\n @return Whether or not to trust the server.\n */\n- (BOOL)evaluateServerTrust:(SecTrustRef)serverTrust\n                  forDomain:(nullable NSString *)domain;\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n///----------------\n/// @name Constants\n///----------------\n\n/**\n ## SSL Pinning Modes\n\n The following constants are provided by `AFSSLPinningMode` as possible SSL pinning modes.\n\n enum {\n AFSSLPinningModeNone,\n AFSSLPinningModePublicKey,\n AFSSLPinningModeCertificate,\n }\n\n `AFSSLPinningModeNone`\n Do not used pinned certificates to validate servers.\n\n `AFSSLPinningModePublicKey`\n Validate host certificates against public keys of pinned certificates.\n\n `AFSSLPinningModeCertificate`\n Validate host certificates against pinned certificates.\n*/\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFSecurityPolicy.m",
    "content": "// AFSecurityPolicy.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"AFSecurityPolicy.h\"\n\n#import <AssertMacros.h>\n\n#if !TARGET_OS_IOS && !TARGET_OS_WATCH && !TARGET_OS_TV\nstatic NSData * AFSecKeyGetData(SecKeyRef key) {\n    CFDataRef data = NULL;\n\n    __Require_noErr_Quiet(SecItemExport(key, kSecFormatUnknown, kSecItemPemArmour, NULL, &data), _out);\n\n    return (__bridge_transfer NSData *)data;\n\n_out:\n    if (data) {\n        CFRelease(data);\n    }\n\n    return nil;\n}\n#endif\n\nstatic BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) {\n#if TARGET_OS_IOS || TARGET_OS_WATCH || TARGET_OS_TV\n    return [(__bridge id)key1 isEqual:(__bridge id)key2];\n#else\n    return [AFSecKeyGetData(key1) isEqual:AFSecKeyGetData(key2)];\n#endif\n}\n\nstatic id AFPublicKeyForCertificate(NSData *certificate) {\n    id allowedPublicKey = nil;\n    SecCertificateRef allowedCertificate;\n    SecCertificateRef allowedCertificates[1];\n    CFArrayRef tempCertificates = nil;\n    SecPolicyRef policy = nil;\n    SecTrustRef allowedTrust = nil;\n    SecTrustResultType result;\n\n    allowedCertificate = SecCertificateCreateWithData(NULL, (__bridge CFDataRef)certificate);\n    __Require_Quiet(allowedCertificate != NULL, _out);\n\n    allowedCertificates[0] = allowedCertificate;\n    tempCertificates = CFArrayCreate(NULL, (const void **)allowedCertificates, 1, NULL);\n\n    policy = SecPolicyCreateBasicX509();\n    __Require_noErr_Quiet(SecTrustCreateWithCertificates(tempCertificates, policy, &allowedTrust), _out);\n    __Require_noErr_Quiet(SecTrustEvaluate(allowedTrust, &result), _out);\n\n    allowedPublicKey = (__bridge_transfer id)SecTrustCopyPublicKey(allowedTrust);\n\n_out:\n    if (allowedTrust) {\n        CFRelease(allowedTrust);\n    }\n\n    if (policy) {\n        CFRelease(policy);\n    }\n\n    if (tempCertificates) {\n        CFRelease(tempCertificates);\n    }\n\n    if (allowedCertificate) {\n        CFRelease(allowedCertificate);\n    }\n\n    return allowedPublicKey;\n}\n\nstatic BOOL AFServerTrustIsValid(SecTrustRef serverTrust) {\n    BOOL isValid = NO;\n    SecTrustResultType result;\n    __Require_noErr_Quiet(SecTrustEvaluate(serverTrust, &result), _out);\n\n    isValid = (result == kSecTrustResultUnspecified || result == kSecTrustResultProceed);\n\n_out:\n    return isValid;\n}\n\nstatic NSArray * AFCertificateTrustChainForServerTrust(SecTrustRef serverTrust) {\n    CFIndex certificateCount = SecTrustGetCertificateCount(serverTrust);\n    NSMutableArray *trustChain = [NSMutableArray arrayWithCapacity:(NSUInteger)certificateCount];\n\n    for (CFIndex i = 0; i < certificateCount; i++) {\n        SecCertificateRef certificate = SecTrustGetCertificateAtIndex(serverTrust, i);\n        [trustChain addObject:(__bridge_transfer NSData *)SecCertificateCopyData(certificate)];\n    }\n\n    return [NSArray arrayWithArray:trustChain];\n}\n\nstatic NSArray * AFPublicKeyTrustChainForServerTrust(SecTrustRef serverTrust) {\n    SecPolicyRef policy = SecPolicyCreateBasicX509();\n    CFIndex certificateCount = SecTrustGetCertificateCount(serverTrust);\n    NSMutableArray *trustChain = [NSMutableArray arrayWithCapacity:(NSUInteger)certificateCount];\n    for (CFIndex i = 0; i < certificateCount; i++) {\n        SecCertificateRef certificate = SecTrustGetCertificateAtIndex(serverTrust, i);\n\n        SecCertificateRef someCertificates[] = {certificate};\n        CFArrayRef certificates = CFArrayCreate(NULL, (const void **)someCertificates, 1, NULL);\n\n        SecTrustRef trust;\n        __Require_noErr_Quiet(SecTrustCreateWithCertificates(certificates, policy, &trust), _out);\n\n        SecTrustResultType result;\n        __Require_noErr_Quiet(SecTrustEvaluate(trust, &result), _out);\n\n        [trustChain addObject:(__bridge_transfer id)SecTrustCopyPublicKey(trust)];\n\n    _out:\n        if (trust) {\n            CFRelease(trust);\n        }\n\n        if (certificates) {\n            CFRelease(certificates);\n        }\n\n        continue;\n    }\n    CFRelease(policy);\n\n    return [NSArray arrayWithArray:trustChain];\n}\n\n#pragma mark -\n\n@interface AFSecurityPolicy()\n@property (readwrite, nonatomic, assign) AFSSLPinningMode SSLPinningMode;\n@property (readwrite, nonatomic, strong) NSSet *pinnedPublicKeys;\n@end\n\n@implementation AFSecurityPolicy\n\n+ (NSSet *)certificatesInBundle:(NSBundle *)bundle {\n    NSArray *paths = [bundle pathsForResourcesOfType:@\"cer\" inDirectory:@\".\"];\n\n    NSMutableSet *certificates = [NSMutableSet setWithCapacity:[paths count]];\n    for (NSString *path in paths) {\n        NSData *certificateData = [NSData dataWithContentsOfFile:path];\n        [certificates addObject:certificateData];\n    }\n\n    return [NSSet setWithSet:certificates];\n}\n\n+ (NSSet *)defaultPinnedCertificates {\n    static NSSet *_defaultPinnedCertificates = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        NSBundle *bundle = [NSBundle bundleForClass:[self class]];\n        _defaultPinnedCertificates = [self certificatesInBundle:bundle];\n    });\n\n    return _defaultPinnedCertificates;\n}\n\n+ (instancetype)defaultPolicy {\n    AFSecurityPolicy *securityPolicy = [[self alloc] init];\n    securityPolicy.SSLPinningMode = AFSSLPinningModeNone;\n\n    return securityPolicy;\n}\n\n+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode {\n    return [self policyWithPinningMode:pinningMode withPinnedCertificates:[self defaultPinnedCertificates]];\n}\n\n+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode withPinnedCertificates:(NSSet *)pinnedCertificates {\n    AFSecurityPolicy *securityPolicy = [[self alloc] init];\n    securityPolicy.SSLPinningMode = pinningMode;\n\n    [securityPolicy setPinnedCertificates:pinnedCertificates];\n\n    return securityPolicy;\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.validatesDomainName = YES;\n\n    return self;\n}\n\n- (void)setPinnedCertificates:(NSSet *)pinnedCertificates {\n    _pinnedCertificates = pinnedCertificates;\n\n    if (self.pinnedCertificates) {\n        NSMutableSet *mutablePinnedPublicKeys = [NSMutableSet setWithCapacity:[self.pinnedCertificates count]];\n        for (NSData *certificate in self.pinnedCertificates) {\n            id publicKey = AFPublicKeyForCertificate(certificate);\n            if (!publicKey) {\n                continue;\n            }\n            [mutablePinnedPublicKeys addObject:publicKey];\n        }\n        self.pinnedPublicKeys = [NSSet setWithSet:mutablePinnedPublicKeys];\n    } else {\n        self.pinnedPublicKeys = nil;\n    }\n}\n\n#pragma mark -\n\n- (BOOL)evaluateServerTrust:(SecTrustRef)serverTrust\n                  forDomain:(NSString *)domain\n{\n    if (domain && self.allowInvalidCertificates && self.validatesDomainName && (self.SSLPinningMode == AFSSLPinningModeNone || [self.pinnedCertificates count] == 0)) {\n        // https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/NetworkingTopics/Articles/OverridingSSLChainValidationCorrectly.html\n        //  According to the docs, you should only trust your provided certs for evaluation.\n        //  Pinned certificates are added to the trust. Without pinned certificates,\n        //  there is nothing to evaluate against.\n        //\n        //  From Apple Docs:\n        //          \"Do not implicitly trust self-signed certificates as anchors (kSecTrustOptionImplicitAnchors).\n        //           Instead, add your own (self-signed) CA certificate to the list of trusted anchors.\"\n        NSLog(@\"In order to validate a domain name for self signed certificates, you MUST use pinning.\");\n        return NO;\n    }\n\n    NSMutableArray *policies = [NSMutableArray array];\n    if (self.validatesDomainName) {\n        [policies addObject:(__bridge_transfer id)SecPolicyCreateSSL(true, (__bridge CFStringRef)domain)];\n    } else {\n        [policies addObject:(__bridge_transfer id)SecPolicyCreateBasicX509()];\n    }\n\n    SecTrustSetPolicies(serverTrust, (__bridge CFArrayRef)policies);\n\n    if (self.SSLPinningMode == AFSSLPinningModeNone) {\n        return self.allowInvalidCertificates || AFServerTrustIsValid(serverTrust);\n    } else if (!AFServerTrustIsValid(serverTrust) && !self.allowInvalidCertificates) {\n        return NO;\n    }\n\n    switch (self.SSLPinningMode) {\n        case AFSSLPinningModeNone:\n        default:\n            return NO;\n        case AFSSLPinningModeCertificate: {\n            NSMutableArray *pinnedCertificates = [NSMutableArray array];\n            for (NSData *certificateData in self.pinnedCertificates) {\n                [pinnedCertificates addObject:(__bridge_transfer id)SecCertificateCreateWithData(NULL, (__bridge CFDataRef)certificateData)];\n            }\n            SecTrustSetAnchorCertificates(serverTrust, (__bridge CFArrayRef)pinnedCertificates);\n\n            if (!AFServerTrustIsValid(serverTrust)) {\n                return NO;\n            }\n\n            // obtain the chain after being validated, which *should* contain the pinned certificate in the last position (if it's the Root CA)\n            NSArray *serverCertificates = AFCertificateTrustChainForServerTrust(serverTrust);\n            \n            for (NSData *trustChainCertificate in [serverCertificates reverseObjectEnumerator]) {\n                if ([self.pinnedCertificates containsObject:trustChainCertificate]) {\n                    return YES;\n                }\n            }\n            \n            return NO;\n        }\n        case AFSSLPinningModePublicKey: {\n            NSUInteger trustedPublicKeyCount = 0;\n            NSArray *publicKeys = AFPublicKeyTrustChainForServerTrust(serverTrust);\n\n            for (id trustChainPublicKey in publicKeys) {\n                for (id pinnedPublicKey in self.pinnedPublicKeys) {\n                    if (AFSecKeyIsEqualToKey((__bridge SecKeyRef)trustChainPublicKey, (__bridge SecKeyRef)pinnedPublicKey)) {\n                        trustedPublicKeyCount += 1;\n                    }\n                }\n            }\n            return trustedPublicKeyCount > 0;\n        }\n    }\n    \n    return NO;\n}\n\n#pragma mark - NSKeyValueObserving\n\n+ (NSSet *)keyPathsForValuesAffectingPinnedPublicKeys {\n    return [NSSet setWithObject:@\"pinnedCertificates\"];\n}\n\n#pragma mark - NSSecureCoding\n\n+ (BOOL)supportsSecureCoding {\n    return YES;\n}\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n\n    self = [self init];\n    if (!self) {\n        return nil;\n    }\n\n    self.SSLPinningMode = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(SSLPinningMode))] unsignedIntegerValue];\n    self.allowInvalidCertificates = [decoder decodeBoolForKey:NSStringFromSelector(@selector(allowInvalidCertificates))];\n    self.validatesDomainName = [decoder decodeBoolForKey:NSStringFromSelector(@selector(validatesDomainName))];\n    self.pinnedCertificates = [decoder decodeObjectOfClass:[NSArray class] forKey:NSStringFromSelector(@selector(pinnedCertificates))];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [coder encodeObject:[NSNumber numberWithUnsignedInteger:self.SSLPinningMode] forKey:NSStringFromSelector(@selector(SSLPinningMode))];\n    [coder encodeBool:self.allowInvalidCertificates forKey:NSStringFromSelector(@selector(allowInvalidCertificates))];\n    [coder encodeBool:self.validatesDomainName forKey:NSStringFromSelector(@selector(validatesDomainName))];\n    [coder encodeObject:self.pinnedCertificates forKey:NSStringFromSelector(@selector(pinnedCertificates))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFSecurityPolicy *securityPolicy = [[[self class] allocWithZone:zone] init];\n    securityPolicy.SSLPinningMode = self.SSLPinningMode;\n    securityPolicy.allowInvalidCertificates = self.allowInvalidCertificates;\n    securityPolicy.validatesDomainName = self.validatesDomainName;\n    securityPolicy.pinnedCertificates = [self.pinnedCertificates copyWithZone:zone];\n\n    return securityPolicy;\n}\n\n@end\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.h",
    "content": "// AFURLRequestSerialization.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n#import <UIKit/UIKit.h>\n#elif TARGET_OS_WATCH\n#import <WatchKit/WatchKit.h>\n#endif\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n The `AFURLRequestSerialization` protocol is adopted by an object that encodes parameters for a specified HTTP requests. Request serializers may encode parameters as query strings, HTTP bodies, setting the appropriate HTTP header fields as necessary.\n\n For example, a JSON request serializer may set the HTTP body of the request to a JSON representation, and set the `Content-Type` HTTP header field value to `application/json`.\n */\n@protocol AFURLRequestSerialization <NSObject, NSSecureCoding, NSCopying>\n\n/**\n Returns a request with the specified parameters encoded into a copy of the original request.\n\n @param request The original request.\n @param parameters The parameters to be encoded.\n @param error The error that occurred while attempting to encode the request parameters.\n\n @return A serialized request.\n */\n- (nullable NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request\n                               withParameters:(nullable id)parameters\n                                        error:(NSError * _Nullable __autoreleasing *)error NS_SWIFT_NOTHROW;\n\n@end\n\n#pragma mark -\n\n/**\n\n */\ntypedef NS_ENUM(NSUInteger, AFHTTPRequestQueryStringSerializationStyle) {\n    AFHTTPRequestQueryStringDefaultStyle = 0,\n};\n\n@protocol AFMultipartFormData;\n\n/**\n `AFHTTPRequestSerializer` conforms to the `AFURLRequestSerialization` & `AFURLResponseSerialization` protocols, offering a concrete base implementation of query string / URL form-encoded parameter serialization and default request headers, as well as response status code and content type validation.\n\n Any request or response serializer dealing with HTTP is encouraged to subclass `AFHTTPRequestSerializer` in order to ensure consistent default behavior.\n */\n@interface AFHTTPRequestSerializer : NSObject <AFURLRequestSerialization>\n\n/**\n The string encoding used to serialize parameters. `NSUTF8StringEncoding` by default.\n */\n@property (nonatomic, assign) NSStringEncoding stringEncoding;\n\n/**\n Whether created requests can use the device’s cellular radio (if present). `YES` by default.\n\n @see NSMutableURLRequest -setAllowsCellularAccess:\n */\n@property (nonatomic, assign) BOOL allowsCellularAccess;\n\n/**\n The cache policy of created requests. `NSURLRequestUseProtocolCachePolicy` by default.\n\n @see NSMutableURLRequest -setCachePolicy:\n */\n@property (nonatomic, assign) NSURLRequestCachePolicy cachePolicy;\n\n/**\n Whether created requests should use the default cookie handling. `YES` by default.\n\n @see NSMutableURLRequest -setHTTPShouldHandleCookies:\n */\n@property (nonatomic, assign) BOOL HTTPShouldHandleCookies;\n\n/**\n Whether created requests can continue transmitting data before receiving a response from an earlier transmission. `NO` by default\n\n @see NSMutableURLRequest -setHTTPShouldUsePipelining:\n */\n@property (nonatomic, assign) BOOL HTTPShouldUsePipelining;\n\n/**\n The network service type for created requests. `NSURLNetworkServiceTypeDefault` by default.\n\n @see NSMutableURLRequest -setNetworkServiceType:\n */\n@property (nonatomic, assign) NSURLRequestNetworkServiceType networkServiceType;\n\n/**\n The timeout interval, in seconds, for created requests. The default timeout interval is 60 seconds.\n\n @see NSMutableURLRequest -setTimeoutInterval:\n */\n@property (nonatomic, assign) NSTimeInterval timeoutInterval;\n\n///---------------------------------------\n/// @name Configuring HTTP Request Headers\n///---------------------------------------\n\n/**\n Default HTTP header field values to be applied to serialized requests. By default, these include the following:\n\n - `Accept-Language` with the contents of `NSLocale +preferredLanguages`\n - `User-Agent` with the contents of various bundle identifiers and OS designations\n\n @discussion To add or remove default request headers, use `setValue:forHTTPHeaderField:`.\n */\n@property (readonly, nonatomic, strong) NSDictionary <NSString *, NSString *> *HTTPRequestHeaders;\n\n/**\n Creates and returns a serializer with default configuration.\n */\n+ (instancetype)serializer;\n\n/**\n Sets the value for the HTTP headers set in request objects made by the HTTP client. If `nil`, removes the existing value for that header.\n\n @param field The HTTP header to set a default value for\n @param value The value set as default for the specified header, or `nil`\n */\n- (void)setValue:(nullable NSString *)value\nforHTTPHeaderField:(NSString *)field;\n\n/**\n Returns the value for the HTTP headers set in the request serializer.\n\n @param field The HTTP header to retrieve the default value for\n\n @return The value set as default for the specified header, or `nil`\n */\n- (nullable NSString *)valueForHTTPHeaderField:(NSString *)field;\n\n/**\n Sets the \"Authorization\" HTTP header set in request objects made by the HTTP client to a basic authentication value with Base64-encoded username and password. This overwrites any existing value for this header.\n\n @param username The HTTP basic auth username\n @param password The HTTP basic auth password\n */\n- (void)setAuthorizationHeaderFieldWithUsername:(NSString *)username\n                                       password:(NSString *)password;\n\n/**\n Clears any existing value for the \"Authorization\" HTTP header.\n */\n- (void)clearAuthorizationHeader;\n\n///-------------------------------------------------------\n/// @name Configuring Query String Parameter Serialization\n///-------------------------------------------------------\n\n/**\n HTTP methods for which serialized requests will encode parameters as a query string. `GET`, `HEAD`, and `DELETE` by default.\n */\n@property (nonatomic, strong) NSSet <NSString *> *HTTPMethodsEncodingParametersInURI;\n\n/**\n Set the method of query string serialization according to one of the pre-defined styles.\n\n @param style The serialization style.\n\n @see AFHTTPRequestQueryStringSerializationStyle\n */\n- (void)setQueryStringSerializationWithStyle:(AFHTTPRequestQueryStringSerializationStyle)style;\n\n/**\n Set the a custom method of query string serialization according to the specified block.\n\n @param block A block that defines a process of encoding parameters into a query string. This block returns the query string and takes three arguments: the request, the parameters to encode, and the error that occurred when attempting to encode parameters for the given request.\n */\n- (void)setQueryStringSerializationWithBlock:(nullable NSString * (^)(NSURLRequest *request, id parameters, NSError * __autoreleasing *error))block;\n\n///-------------------------------\n/// @name Creating Request Objects\n///-------------------------------\n\n/**\n Creates an `NSMutableURLRequest` object with the specified HTTP method and URL string.\n\n If the HTTP method is `GET`, `HEAD`, or `DELETE`, the parameters will be used to construct a url-encoded query string that is appended to the request's URL. Otherwise, the parameters will be encoded according to the value of the `parameterEncoding` property, and set as the request body.\n\n @param method The HTTP method for the request, such as `GET`, `POST`, `PUT`, or `DELETE`. This parameter must not be `nil`.\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be either set as a query string for `GET` requests, or the request HTTP body.\n @param error The error that occurred while constructing the request.\n\n @return An `NSMutableURLRequest` object.\n */\n- (NSMutableURLRequest *)requestWithMethod:(NSString *)method\n                                 URLString:(NSString *)URLString\n                                parameters:(nullable id)parameters\n                                     error:(NSError * _Nullable __autoreleasing *)error;\n\n/**\n Creates an `NSMutableURLRequest` object with the specified HTTP method and URLString, and constructs a `multipart/form-data` HTTP body, using the specified parameters and multipart form data block. See http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.2\n\n Multipart form requests are automatically streamed, reading files directly from disk along with in-memory data in a single HTTP body. The resulting `NSMutableURLRequest` object has an `HTTPBodyStream` property, so refrain from setting `HTTPBodyStream` or `HTTPBody` on this request object, as it will clear out the multipart form body stream.\n\n @param method The HTTP method for the request. This parameter must not be `GET` or `HEAD`, or `nil`.\n @param URLString The URL string used to create the request URL.\n @param parameters The parameters to be encoded and set in the request HTTP body.\n @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol.\n @param error The error that occurred while constructing the request.\n\n @return An `NSMutableURLRequest` object\n */\n- (NSMutableURLRequest *)multipartFormRequestWithMethod:(NSString *)method\n                                              URLString:(NSString *)URLString\n                                             parameters:(nullable NSDictionary <NSString *, id> *)parameters\n                              constructingBodyWithBlock:(nullable void (^)(id <AFMultipartFormData> formData))block\n                                                  error:(NSError * _Nullable __autoreleasing *)error;\n\n/**\n Creates an `NSMutableURLRequest` by removing the `HTTPBodyStream` from a request, and asynchronously writing its contents into the specified file, invoking the completion handler when finished.\n\n @param request The multipart form request. The `HTTPBodyStream` property of `request` must not be `nil`.\n @param fileURL The file URL to write multipart form contents to.\n @param handler A handler block to execute.\n\n @discussion There is a bug in `NSURLSessionTask` that causes requests to not send a `Content-Length` header when streaming contents from an HTTP body, which is notably problematic when interacting with the Amazon S3 webservice. As a workaround, this method takes a request constructed with `multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:error:`, or any other request with an `HTTPBodyStream`, writes the contents to the specified file and returns a copy of the original request with the `HTTPBodyStream` property set to `nil`. From here, the file can either be passed to `AFURLSessionManager -uploadTaskWithRequest:fromFile:progress:completionHandler:`, or have its contents read into an `NSData` that's assigned to the `HTTPBody` property of the request.\n\n @see https://github.com/AFNetworking/AFNetworking/issues/1398\n */\n- (NSMutableURLRequest *)requestWithMultipartFormRequest:(NSURLRequest *)request\n                             writingStreamContentsToFile:(NSURL *)fileURL\n                                       completionHandler:(nullable void (^)(NSError * _Nullable error))handler;\n\n@end\n\n#pragma mark -\n\n/**\n The `AFMultipartFormData` protocol defines the methods supported by the parameter in the block argument of `AFHTTPRequestSerializer -multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:`.\n */\n@protocol AFMultipartFormData\n\n/**\n Appends the HTTP header `Content-Disposition: file; filename=#{generated filename}; name=#{name}\"` and `Content-Type: #{generated mimeType}`, followed by the encoded file data and the multipart form boundary.\n\n The filename and MIME type for this data in the form will be automatically generated, using the last path component of the `fileURL` and system associated MIME type for the `fileURL` extension, respectively.\n\n @param fileURL The URL corresponding to the file whose content will be appended to the form. This parameter must not be `nil`.\n @param name The name to be associated with the specified data. This parameter must not be `nil`.\n @param error If an error occurs, upon return contains an `NSError` object that describes the problem.\n\n @return `YES` if the file data was successfully appended, otherwise `NO`.\n */\n- (BOOL)appendPartWithFileURL:(NSURL *)fileURL\n                         name:(NSString *)name\n                        error:(NSError * _Nullable __autoreleasing *)error;\n\n/**\n Appends the HTTP header `Content-Disposition: file; filename=#{filename}; name=#{name}\"` and `Content-Type: #{mimeType}`, followed by the encoded file data and the multipart form boundary.\n\n @param fileURL The URL corresponding to the file whose content will be appended to the form. This parameter must not be `nil`.\n @param name The name to be associated with the specified data. This parameter must not be `nil`.\n @param fileName The file name to be used in the `Content-Disposition` header. This parameter must not be `nil`.\n @param mimeType The declared MIME type of the file data. This parameter must not be `nil`.\n @param error If an error occurs, upon return contains an `NSError` object that describes the problem.\n\n @return `YES` if the file data was successfully appended otherwise `NO`.\n */\n- (BOOL)appendPartWithFileURL:(NSURL *)fileURL\n                         name:(NSString *)name\n                     fileName:(NSString *)fileName\n                     mimeType:(NSString *)mimeType\n                        error:(NSError * _Nullable __autoreleasing *)error;\n\n/**\n Appends the HTTP header `Content-Disposition: file; filename=#{filename}; name=#{name}\"` and `Content-Type: #{mimeType}`, followed by the data from the input stream and the multipart form boundary.\n\n @param inputStream The input stream to be appended to the form data\n @param name The name to be associated with the specified input stream. This parameter must not be `nil`.\n @param fileName The filename to be associated with the specified input stream. This parameter must not be `nil`.\n @param length The length of the specified input stream in bytes.\n @param mimeType The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. This parameter must not be `nil`.\n */\n- (void)appendPartWithInputStream:(nullable NSInputStream *)inputStream\n                             name:(NSString *)name\n                         fileName:(NSString *)fileName\n                           length:(int64_t)length\n                         mimeType:(NSString *)mimeType;\n\n/**\n Appends the HTTP header `Content-Disposition: file; filename=#{filename}; name=#{name}\"` and `Content-Type: #{mimeType}`, followed by the encoded file data and the multipart form boundary.\n\n @param data The data to be encoded and appended to the form data.\n @param name The name to be associated with the specified data. This parameter must not be `nil`.\n @param fileName The filename to be associated with the specified data. This parameter must not be `nil`.\n @param mimeType The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. This parameter must not be `nil`.\n */\n- (void)appendPartWithFileData:(NSData *)data\n                          name:(NSString *)name\n                      fileName:(NSString *)fileName\n                      mimeType:(NSString *)mimeType;\n\n/**\n Appends the HTTP headers `Content-Disposition: form-data; name=#{name}\"`, followed by the encoded data and the multipart form boundary.\n\n @param data The data to be encoded and appended to the form data.\n @param name The name to be associated with the specified data. This parameter must not be `nil`.\n */\n\n- (void)appendPartWithFormData:(NSData *)data\n                          name:(NSString *)name;\n\n\n/**\n Appends HTTP headers, followed by the encoded data and the multipart form boundary.\n\n @param headers The HTTP headers to be appended to the form data.\n @param body The data to be encoded and appended to the form data. This parameter must not be `nil`.\n */\n- (void)appendPartWithHeaders:(nullable NSDictionary <NSString *, NSString *> *)headers\n                         body:(NSData *)body;\n\n/**\n Throttles request bandwidth by limiting the packet size and adding a delay for each chunk read from the upload stream.\n\n When uploading over a 3G or EDGE connection, requests may fail with \"request body stream exhausted\". Setting a maximum packet size and delay according to the recommended values (`kAFUploadStream3GSuggestedPacketSize` and `kAFUploadStream3GSuggestedDelay`) lowers the risk of the input stream exceeding its allocated bandwidth. Unfortunately, there is no definite way to distinguish between a 3G, EDGE, or LTE connection over `NSURLConnection`. As such, it is not recommended that you throttle bandwidth based solely on network reachability. Instead, you should consider checking for the \"request body stream exhausted\" in a failure block, and then retrying the request with throttled bandwidth.\n\n @param numberOfBytes Maximum packet size, in number of bytes. The default packet size for an input stream is 16kb.\n @param delay Duration of delay each time a packet is read. By default, no delay is set.\n */\n- (void)throttleBandwidthWithPacketSize:(NSUInteger)numberOfBytes\n                                  delay:(NSTimeInterval)delay;\n\n@end\n\n#pragma mark -\n\n/**\n `AFJSONRequestSerializer` is a subclass of `AFHTTPRequestSerializer` that encodes parameters as JSON using `NSJSONSerialization`, setting the `Content-Type` of the encoded request to `application/json`.\n */\n@interface AFJSONRequestSerializer : AFHTTPRequestSerializer\n\n/**\n Options for writing the request JSON data from Foundation objects. For possible values, see the `NSJSONSerialization` documentation section \"NSJSONWritingOptions\". `0` by default.\n */\n@property (nonatomic, assign) NSJSONWritingOptions writingOptions;\n\n/**\n Creates and returns a JSON serializer with specified reading and writing options.\n\n @param writingOptions The specified JSON writing options.\n */\n+ (instancetype)serializerWithWritingOptions:(NSJSONWritingOptions)writingOptions;\n\n@end\n\n#pragma mark -\n\n/**\n `AFPropertyListRequestSerializer` is a subclass of `AFHTTPRequestSerializer` that encodes parameters as JSON using `NSPropertyListSerializer`, setting the `Content-Type` of the encoded request to `application/x-plist`.\n */\n@interface AFPropertyListRequestSerializer : AFHTTPRequestSerializer\n\n/**\n The property list format. Possible values are described in \"NSPropertyListFormat\".\n */\n@property (nonatomic, assign) NSPropertyListFormat format;\n\n/**\n @warning The `writeOptions` property is currently unused.\n */\n@property (nonatomic, assign) NSPropertyListWriteOptions writeOptions;\n\n/**\n Creates and returns a property list serializer with a specified format, read options, and write options.\n\n @param format The property list format.\n @param writeOptions The property list write options.\n\n @warning The `writeOptions` property is currently unused.\n */\n+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format\n                        writeOptions:(NSPropertyListWriteOptions)writeOptions;\n\n@end\n\n#pragma mark -\n\n///----------------\n/// @name Constants\n///----------------\n\n/**\n ## Error Domains\n\n The following error domain is predefined.\n\n - `NSString * const AFURLRequestSerializationErrorDomain`\n\n ### Constants\n\n `AFURLRequestSerializationErrorDomain`\n AFURLRequestSerializer errors. Error codes for `AFURLRequestSerializationErrorDomain` correspond to codes in `NSURLErrorDomain`.\n */\nFOUNDATION_EXPORT NSString * const AFURLRequestSerializationErrorDomain;\n\n/**\n ## User info dictionary keys\n\n These keys may exist in the user info dictionary, in addition to those defined for NSError.\n\n - `NSString * const AFNetworkingOperationFailingURLRequestErrorKey`\n\n ### Constants\n\n `AFNetworkingOperationFailingURLRequestErrorKey`\n The corresponding value is an `NSURLRequest` containing the request of the operation associated with an error. This key is only present in the `AFURLRequestSerializationErrorDomain`.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingOperationFailingURLRequestErrorKey;\n\n/**\n ## Throttling Bandwidth for HTTP Request Input Streams\n\n @see -throttleBandwidthWithPacketSize:delay:\n\n ### Constants\n\n `kAFUploadStream3GSuggestedPacketSize`\n Maximum packet size, in number of bytes. Equal to 16kb.\n\n `kAFUploadStream3GSuggestedDelay`\n Duration of delay each time a packet is read. Equal to 0.2 seconds.\n */\nFOUNDATION_EXPORT NSUInteger const kAFUploadStream3GSuggestedPacketSize;\nFOUNDATION_EXPORT NSTimeInterval const kAFUploadStream3GSuggestedDelay;\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m",
    "content": "// AFURLRequestSerialization.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"AFURLRequestSerialization.h\"\n\n#if TARGET_OS_IOS || TARGET_OS_WATCH || TARGET_OS_TV\n#import <MobileCoreServices/MobileCoreServices.h>\n#else\n#import <CoreServices/CoreServices.h>\n#endif\n\nNSString * const AFURLRequestSerializationErrorDomain = @\"com.alamofire.error.serialization.request\";\nNSString * const AFNetworkingOperationFailingURLRequestErrorKey = @\"com.alamofire.serialization.request.error.response\";\n\ntypedef NSString * (^AFQueryStringSerializationBlock)(NSURLRequest *request, id parameters, NSError *__autoreleasing *error);\n\n/**\n Returns a percent-escaped string following RFC 3986 for a query string key or value.\n RFC 3986 states that the following characters are \"reserved\" characters.\n    - General Delimiters: \":\", \"#\", \"[\", \"]\", \"@\", \"?\", \"/\"\n    - Sub-Delimiters: \"!\", \"$\", \"&\", \"'\", \"(\", \")\", \"*\", \"+\", \",\", \";\", \"=\"\n\n In RFC 3986 - Section 3.4, it states that the \"?\" and \"/\" characters should not be escaped to allow\n query strings to include a URL. Therefore, all \"reserved\" characters with the exception of \"?\" and \"/\"\n should be percent-escaped in the query string.\n    - parameter string: The string to be percent-escaped.\n    - returns: The percent-escaped string.\n */\nstatic NSString * AFPercentEscapedStringFromString(NSString *string) {\n    static NSString * const kAFCharactersGeneralDelimitersToEncode = @\":#[]@\"; // does not include \"?\" or \"/\" due to RFC 3986 - Section 3.4\n    static NSString * const kAFCharactersSubDelimitersToEncode = @\"!$&'()*+,;=\";\n\n    NSMutableCharacterSet * allowedCharacterSet = [[NSCharacterSet URLQueryAllowedCharacterSet] mutableCopy];\n    [allowedCharacterSet removeCharactersInString:[kAFCharactersGeneralDelimitersToEncode stringByAppendingString:kAFCharactersSubDelimitersToEncode]];\n\n\t// FIXME: https://github.com/AFNetworking/AFNetworking/pull/3028\n    // return [string stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacterSet];\n\n    static NSUInteger const batchSize = 50;\n\n    NSUInteger index = 0;\n    NSMutableString *escaped = @\"\".mutableCopy;\n\n    while (index < string.length) {\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wgnu\"\n        NSUInteger length = MIN(string.length - index, batchSize);\n#pragma GCC diagnostic pop\n        NSRange range = NSMakeRange(index, length);\n\n        // To avoid breaking up character sequences such as 👴🏻👮🏽\n        range = [string rangeOfComposedCharacterSequencesForRange:range];\n\n        NSString *substring = [string substringWithRange:range];\n        NSString *encoded = [substring stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacterSet];\n        [escaped appendString:encoded];\n\n        index += range.length;\n    }\n\n\treturn escaped;\n}\n\n#pragma mark -\n\n@interface AFQueryStringPair : NSObject\n@property (readwrite, nonatomic, strong) id field;\n@property (readwrite, nonatomic, strong) id value;\n\n- (instancetype)initWithField:(id)field value:(id)value;\n\n- (NSString *)URLEncodedStringValue;\n@end\n\n@implementation AFQueryStringPair\n\n- (instancetype)initWithField:(id)field value:(id)value {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.field = field;\n    self.value = value;\n\n    return self;\n}\n\n- (NSString *)URLEncodedStringValue {\n    if (!self.value || [self.value isEqual:[NSNull null]]) {\n        return AFPercentEscapedStringFromString([self.field description]);\n    } else {\n        return [NSString stringWithFormat:@\"%@=%@\", AFPercentEscapedStringFromString([self.field description]), AFPercentEscapedStringFromString([self.value description])];\n    }\n}\n\n@end\n\n#pragma mark -\n\nFOUNDATION_EXPORT NSArray * AFQueryStringPairsFromDictionary(NSDictionary *dictionary);\nFOUNDATION_EXPORT NSArray * AFQueryStringPairsFromKeyAndValue(NSString *key, id value);\n\nstatic NSString * AFQueryStringFromParameters(NSDictionary *parameters) {\n    NSMutableArray *mutablePairs = [NSMutableArray array];\n    for (AFQueryStringPair *pair in AFQueryStringPairsFromDictionary(parameters)) {\n        [mutablePairs addObject:[pair URLEncodedStringValue]];\n    }\n\n    return [mutablePairs componentsJoinedByString:@\"&\"];\n}\n\nNSArray * AFQueryStringPairsFromDictionary(NSDictionary *dictionary) {\n    return AFQueryStringPairsFromKeyAndValue(nil, dictionary);\n}\n\nNSArray * AFQueryStringPairsFromKeyAndValue(NSString *key, id value) {\n    NSMutableArray *mutableQueryStringComponents = [NSMutableArray array];\n\n    NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@\"description\" ascending:YES selector:@selector(compare:)];\n\n    if ([value isKindOfClass:[NSDictionary class]]) {\n        NSDictionary *dictionary = value;\n        // Sort dictionary keys to ensure consistent ordering in query string, which is important when deserializing potentially ambiguous sequences, such as an array of dictionaries\n        for (id nestedKey in [dictionary.allKeys sortedArrayUsingDescriptors:@[ sortDescriptor ]]) {\n            id nestedValue = dictionary[nestedKey];\n            if (nestedValue) {\n                [mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFromKeyAndValue((key ? [NSString stringWithFormat:@\"%@[%@]\", key, nestedKey] : nestedKey), nestedValue)];\n            }\n        }\n    } else if ([value isKindOfClass:[NSArray class]]) {\n        NSArray *array = value;\n        for (id nestedValue in array) {\n            [mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFromKeyAndValue([NSString stringWithFormat:@\"%@[]\", key], nestedValue)];\n        }\n    } else if ([value isKindOfClass:[NSSet class]]) {\n        NSSet *set = value;\n        for (id obj in [set sortedArrayUsingDescriptors:@[ sortDescriptor ]]) {\n            [mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFromKeyAndValue(key, obj)];\n        }\n    } else {\n        [mutableQueryStringComponents addObject:[[AFQueryStringPair alloc] initWithField:key value:value]];\n    }\n\n    return mutableQueryStringComponents;\n}\n\n#pragma mark -\n\n@interface AFStreamingMultipartFormData : NSObject <AFMultipartFormData>\n- (instancetype)initWithURLRequest:(NSMutableURLRequest *)urlRequest\n                    stringEncoding:(NSStringEncoding)encoding;\n\n- (NSMutableURLRequest *)requestByFinalizingMultipartFormData;\n@end\n\n#pragma mark -\n\nstatic NSArray * AFHTTPRequestSerializerObservedKeyPaths() {\n    static NSArray *_AFHTTPRequestSerializerObservedKeyPaths = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        _AFHTTPRequestSerializerObservedKeyPaths = @[NSStringFromSelector(@selector(allowsCellularAccess)), NSStringFromSelector(@selector(cachePolicy)), NSStringFromSelector(@selector(HTTPShouldHandleCookies)), NSStringFromSelector(@selector(HTTPShouldUsePipelining)), NSStringFromSelector(@selector(networkServiceType)), NSStringFromSelector(@selector(timeoutInterval))];\n    });\n\n    return _AFHTTPRequestSerializerObservedKeyPaths;\n}\n\nstatic void *AFHTTPRequestSerializerObserverContext = &AFHTTPRequestSerializerObserverContext;\n\n@interface AFHTTPRequestSerializer ()\n@property (readwrite, nonatomic, strong) NSMutableSet *mutableObservedChangedKeyPaths;\n@property (readwrite, nonatomic, strong) NSMutableDictionary *mutableHTTPRequestHeaders;\n@property (readwrite, nonatomic, assign) AFHTTPRequestQueryStringSerializationStyle queryStringSerializationStyle;\n@property (readwrite, nonatomic, copy) AFQueryStringSerializationBlock queryStringSerialization;\n@end\n\n@implementation AFHTTPRequestSerializer\n\n+ (instancetype)serializer {\n    return [[self alloc] init];\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.stringEncoding = NSUTF8StringEncoding;\n\n    self.mutableHTTPRequestHeaders = [NSMutableDictionary dictionary];\n\n    // Accept-Language HTTP Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4\n    NSMutableArray *acceptLanguagesComponents = [NSMutableArray array];\n    [[NSLocale preferredLanguages] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {\n        float q = 1.0f - (idx * 0.1f);\n        [acceptLanguagesComponents addObject:[NSString stringWithFormat:@\"%@;q=%0.1g\", obj, q]];\n        *stop = q <= 0.5f;\n    }];\n    [self setValue:[acceptLanguagesComponents componentsJoinedByString:@\", \"] forHTTPHeaderField:@\"Accept-Language\"];\n\n    NSString *userAgent = nil;\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n#if TARGET_OS_IOS\n    // User-Agent Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43\n    userAgent = [NSString stringWithFormat:@\"%@/%@ (%@; iOS %@; Scale/%0.2f)\", [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey], [[NSBundle mainBundle] infoDictionary][@\"CFBundleShortVersionString\"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey], [[UIDevice currentDevice] model], [[UIDevice currentDevice] systemVersion], [[UIScreen mainScreen] scale]];\n#elif TARGET_OS_WATCH\n    // User-Agent Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43\n    userAgent = [NSString stringWithFormat:@\"%@/%@ (%@; watchOS %@; Scale/%0.2f)\", [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey], [[NSBundle mainBundle] infoDictionary][@\"CFBundleShortVersionString\"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey], [[WKInterfaceDevice currentDevice] model], [[WKInterfaceDevice currentDevice] systemVersion], [[WKInterfaceDevice currentDevice] screenScale]];\n#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)\n    userAgent = [NSString stringWithFormat:@\"%@/%@ (Mac OS X %@)\", [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey], [[NSBundle mainBundle] infoDictionary][@\"CFBundleShortVersionString\"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey], [[NSProcessInfo processInfo] operatingSystemVersionString]];\n#endif\n#pragma clang diagnostic pop\n    if (userAgent) {\n        if (![userAgent canBeConvertedToEncoding:NSASCIIStringEncoding]) {\n            NSMutableString *mutableUserAgent = [userAgent mutableCopy];\n            if (CFStringTransform((__bridge CFMutableStringRef)(mutableUserAgent), NULL, (__bridge CFStringRef)@\"Any-Latin; Latin-ASCII; [:^ASCII:] Remove\", false)) {\n                userAgent = mutableUserAgent;\n            }\n        }\n        [self setValue:userAgent forHTTPHeaderField:@\"User-Agent\"];\n    }\n\n    // HTTP Method Definitions; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html\n    self.HTTPMethodsEncodingParametersInURI = [NSSet setWithObjects:@\"GET\", @\"HEAD\", @\"DELETE\", nil];\n\n    self.mutableObservedChangedKeyPaths = [NSMutableSet set];\n    for (NSString *keyPath in AFHTTPRequestSerializerObservedKeyPaths()) {\n        if ([self respondsToSelector:NSSelectorFromString(keyPath)]) {\n            [self addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew context:AFHTTPRequestSerializerObserverContext];\n        }\n    }\n\n    return self;\n}\n\n- (void)dealloc {\n    for (NSString *keyPath in AFHTTPRequestSerializerObservedKeyPaths()) {\n        if ([self respondsToSelector:NSSelectorFromString(keyPath)]) {\n            [self removeObserver:self forKeyPath:keyPath context:AFHTTPRequestSerializerObserverContext];\n        }\n    }\n}\n\n#pragma mark -\n\n// Workarounds for crashing behavior using Key-Value Observing with XCTest\n// See https://github.com/AFNetworking/AFNetworking/issues/2523\n\n- (void)setAllowsCellularAccess:(BOOL)allowsCellularAccess {\n    [self willChangeValueForKey:NSStringFromSelector(@selector(allowsCellularAccess))];\n    _allowsCellularAccess = allowsCellularAccess;\n    [self didChangeValueForKey:NSStringFromSelector(@selector(allowsCellularAccess))];\n}\n\n- (void)setCachePolicy:(NSURLRequestCachePolicy)cachePolicy {\n    [self willChangeValueForKey:NSStringFromSelector(@selector(cachePolicy))];\n    _cachePolicy = cachePolicy;\n    [self didChangeValueForKey:NSStringFromSelector(@selector(cachePolicy))];\n}\n\n- (void)setHTTPShouldHandleCookies:(BOOL)HTTPShouldHandleCookies {\n    [self willChangeValueForKey:NSStringFromSelector(@selector(HTTPShouldHandleCookies))];\n    _HTTPShouldHandleCookies = HTTPShouldHandleCookies;\n    [self didChangeValueForKey:NSStringFromSelector(@selector(HTTPShouldHandleCookies))];\n}\n\n- (void)setHTTPShouldUsePipelining:(BOOL)HTTPShouldUsePipelining {\n    [self willChangeValueForKey:NSStringFromSelector(@selector(HTTPShouldUsePipelining))];\n    _HTTPShouldUsePipelining = HTTPShouldUsePipelining;\n    [self didChangeValueForKey:NSStringFromSelector(@selector(HTTPShouldUsePipelining))];\n}\n\n- (void)setNetworkServiceType:(NSURLRequestNetworkServiceType)networkServiceType {\n    [self willChangeValueForKey:NSStringFromSelector(@selector(networkServiceType))];\n    _networkServiceType = networkServiceType;\n    [self didChangeValueForKey:NSStringFromSelector(@selector(networkServiceType))];\n}\n\n- (void)setTimeoutInterval:(NSTimeInterval)timeoutInterval {\n    [self willChangeValueForKey:NSStringFromSelector(@selector(timeoutInterval))];\n    _timeoutInterval = timeoutInterval;\n    [self didChangeValueForKey:NSStringFromSelector(@selector(timeoutInterval))];\n}\n\n#pragma mark -\n\n- (NSDictionary *)HTTPRequestHeaders {\n    return [NSDictionary dictionaryWithDictionary:self.mutableHTTPRequestHeaders];\n}\n\n- (void)setValue:(NSString *)value\nforHTTPHeaderField:(NSString *)field\n{\n\t[self.mutableHTTPRequestHeaders setValue:value forKey:field];\n}\n\n- (NSString *)valueForHTTPHeaderField:(NSString *)field {\n    return [self.mutableHTTPRequestHeaders valueForKey:field];\n}\n\n- (void)setAuthorizationHeaderFieldWithUsername:(NSString *)username\n                                       password:(NSString *)password\n{\n    NSData *basicAuthCredentials = [[NSString stringWithFormat:@\"%@:%@\", username, password] dataUsingEncoding:NSUTF8StringEncoding];\n    NSString *base64AuthCredentials = [basicAuthCredentials base64EncodedStringWithOptions:(NSDataBase64EncodingOptions)0];\n    [self setValue:[NSString stringWithFormat:@\"Basic %@\", base64AuthCredentials] forHTTPHeaderField:@\"Authorization\"];\n}\n\n- (void)clearAuthorizationHeader {\n\t[self.mutableHTTPRequestHeaders removeObjectForKey:@\"Authorization\"];\n}\n\n#pragma mark -\n\n- (void)setQueryStringSerializationWithStyle:(AFHTTPRequestQueryStringSerializationStyle)style {\n    self.queryStringSerializationStyle = style;\n    self.queryStringSerialization = nil;\n}\n\n- (void)setQueryStringSerializationWithBlock:(NSString *(^)(NSURLRequest *, id, NSError *__autoreleasing *))block {\n    self.queryStringSerialization = block;\n}\n\n#pragma mark -\n\n- (NSMutableURLRequest *)requestWithMethod:(NSString *)method\n                                 URLString:(NSString *)URLString\n                                parameters:(id)parameters\n                                     error:(NSError *__autoreleasing *)error\n{\n    NSParameterAssert(method);\n    NSParameterAssert(URLString);\n\n    NSURL *url = [NSURL URLWithString:URLString];\n\n    NSParameterAssert(url);\n\n    NSMutableURLRequest *mutableRequest = [[NSMutableURLRequest alloc] initWithURL:url];\n    mutableRequest.HTTPMethod = method;\n\n    for (NSString *keyPath in AFHTTPRequestSerializerObservedKeyPaths()) {\n        if ([self.mutableObservedChangedKeyPaths containsObject:keyPath]) {\n            [mutableRequest setValue:[self valueForKeyPath:keyPath] forKey:keyPath];\n        }\n    }\n\n    mutableRequest = [[self requestBySerializingRequest:mutableRequest withParameters:parameters error:error] mutableCopy];\n\n\treturn mutableRequest;\n}\n\n- (NSMutableURLRequest *)multipartFormRequestWithMethod:(NSString *)method\n                                              URLString:(NSString *)URLString\n                                             parameters:(NSDictionary *)parameters\n                              constructingBodyWithBlock:(void (^)(id <AFMultipartFormData> formData))block\n                                                  error:(NSError *__autoreleasing *)error\n{\n    NSParameterAssert(method);\n    NSParameterAssert(![method isEqualToString:@\"GET\"] && ![method isEqualToString:@\"HEAD\"]);\n\n    NSMutableURLRequest *mutableRequest = [self requestWithMethod:method URLString:URLString parameters:nil error:error];\n\n    __block AFStreamingMultipartFormData *formData = [[AFStreamingMultipartFormData alloc] initWithURLRequest:mutableRequest stringEncoding:NSUTF8StringEncoding];\n\n    if (parameters) {\n        for (AFQueryStringPair *pair in AFQueryStringPairsFromDictionary(parameters)) {\n            NSData *data = nil;\n            if ([pair.value isKindOfClass:[NSData class]]) {\n                data = pair.value;\n            } else if ([pair.value isEqual:[NSNull null]]) {\n                data = [NSData data];\n            } else {\n                data = [[pair.value description] dataUsingEncoding:self.stringEncoding];\n            }\n\n            if (data) {\n                [formData appendPartWithFormData:data name:[pair.field description]];\n            }\n        }\n    }\n\n    if (block) {\n        block(formData);\n    }\n\n    return [formData requestByFinalizingMultipartFormData];\n}\n\n- (NSMutableURLRequest *)requestWithMultipartFormRequest:(NSURLRequest *)request\n                             writingStreamContentsToFile:(NSURL *)fileURL\n                                       completionHandler:(void (^)(NSError *error))handler\n{\n    NSParameterAssert(request.HTTPBodyStream);\n    NSParameterAssert([fileURL isFileURL]);\n\n    NSInputStream *inputStream = request.HTTPBodyStream;\n    NSOutputStream *outputStream = [[NSOutputStream alloc] initWithURL:fileURL append:NO];\n    __block NSError *error = nil;\n\n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{\n        [inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];\n        [outputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];\n\n        [inputStream open];\n        [outputStream open];\n\n        while ([inputStream hasBytesAvailable] && [outputStream hasSpaceAvailable]) {\n            uint8_t buffer[1024];\n\n            NSInteger bytesRead = [inputStream read:buffer maxLength:1024];\n            if (inputStream.streamError || bytesRead < 0) {\n                error = inputStream.streamError;\n                break;\n            }\n\n            NSInteger bytesWritten = [outputStream write:buffer maxLength:(NSUInteger)bytesRead];\n            if (outputStream.streamError || bytesWritten < 0) {\n                error = outputStream.streamError;\n                break;\n            }\n\n            if (bytesRead == 0 && bytesWritten == 0) {\n                break;\n            }\n        }\n\n        [outputStream close];\n        [inputStream close];\n\n        if (handler) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                handler(error);\n            });\n        }\n    });\n\n    NSMutableURLRequest *mutableRequest = [request mutableCopy];\n    mutableRequest.HTTPBodyStream = nil;\n\n    return mutableRequest;\n}\n\n#pragma mark - AFURLRequestSerialization\n\n- (NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request\n                               withParameters:(id)parameters\n                                        error:(NSError *__autoreleasing *)error\n{\n    NSParameterAssert(request);\n\n    NSMutableURLRequest *mutableRequest = [request mutableCopy];\n\n    [self.HTTPRequestHeaders enumerateKeysAndObjectsUsingBlock:^(id field, id value, BOOL * __unused stop) {\n        if (![request valueForHTTPHeaderField:field]) {\n            [mutableRequest setValue:value forHTTPHeaderField:field];\n        }\n    }];\n\n    NSString *query = nil;\n    if (parameters) {\n        if (self.queryStringSerialization) {\n            NSError *serializationError;\n            query = self.queryStringSerialization(request, parameters, &serializationError);\n\n            if (serializationError) {\n                if (error) {\n                    *error = serializationError;\n                }\n\n                return nil;\n            }\n        } else {\n            switch (self.queryStringSerializationStyle) {\n                case AFHTTPRequestQueryStringDefaultStyle:\n                    query = AFQueryStringFromParameters(parameters);\n                    break;\n            }\n        }\n    }\n\n    if ([self.HTTPMethodsEncodingParametersInURI containsObject:[[request HTTPMethod] uppercaseString]]) {\n        if (query) {\n            mutableRequest.URL = [NSURL URLWithString:[[mutableRequest.URL absoluteString] stringByAppendingFormat:mutableRequest.URL.query ? @\"&%@\" : @\"?%@\", query]];\n        }\n    } else {\n        // #2864: an empty string is a valid x-www-form-urlencoded payload\n        if (!query) {\n            query = @\"\";\n        }\n        if (![mutableRequest valueForHTTPHeaderField:@\"Content-Type\"]) {\n            [mutableRequest setValue:@\"application/x-www-form-urlencoded\" forHTTPHeaderField:@\"Content-Type\"];\n        }\n        [mutableRequest setHTTPBody:[query dataUsingEncoding:self.stringEncoding]];\n    }\n\n    return mutableRequest;\n}\n\n#pragma mark - NSKeyValueObserving\n\n+ (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key {\n    if ([AFHTTPRequestSerializerObservedKeyPaths() containsObject:key]) {\n        return NO;\n    }\n\n    return [super automaticallyNotifiesObserversForKey:key];\n}\n\n- (void)observeValueForKeyPath:(NSString *)keyPath\n                      ofObject:(__unused id)object\n                        change:(NSDictionary *)change\n                       context:(void *)context\n{\n    if (context == AFHTTPRequestSerializerObserverContext) {\n        if ([change[NSKeyValueChangeNewKey] isEqual:[NSNull null]]) {\n            [self.mutableObservedChangedKeyPaths removeObject:keyPath];\n        } else {\n            [self.mutableObservedChangedKeyPaths addObject:keyPath];\n        }\n    }\n}\n\n#pragma mark - NSSecureCoding\n\n+ (BOOL)supportsSecureCoding {\n    return YES;\n}\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [self init];\n    if (!self) {\n        return nil;\n    }\n\n    self.mutableHTTPRequestHeaders = [[decoder decodeObjectOfClass:[NSDictionary class] forKey:NSStringFromSelector(@selector(mutableHTTPRequestHeaders))] mutableCopy];\n    self.queryStringSerializationStyle = (AFHTTPRequestQueryStringSerializationStyle)[[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(queryStringSerializationStyle))] unsignedIntegerValue];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [coder encodeObject:self.mutableHTTPRequestHeaders forKey:NSStringFromSelector(@selector(mutableHTTPRequestHeaders))];\n    [coder encodeInteger:self.queryStringSerializationStyle forKey:NSStringFromSelector(@selector(queryStringSerializationStyle))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFHTTPRequestSerializer *serializer = [[[self class] allocWithZone:zone] init];\n    serializer.mutableHTTPRequestHeaders = [self.mutableHTTPRequestHeaders mutableCopyWithZone:zone];\n    serializer.queryStringSerializationStyle = self.queryStringSerializationStyle;\n    serializer.queryStringSerialization = self.queryStringSerialization;\n\n    return serializer;\n}\n\n@end\n\n#pragma mark -\n\nstatic NSString * AFCreateMultipartFormBoundary() {\n    return [NSString stringWithFormat:@\"Boundary+%08X%08X\", arc4random(), arc4random()];\n}\n\nstatic NSString * const kAFMultipartFormCRLF = @\"\\r\\n\";\n\nstatic inline NSString * AFMultipartFormInitialBoundary(NSString *boundary) {\n    return [NSString stringWithFormat:@\"--%@%@\", boundary, kAFMultipartFormCRLF];\n}\n\nstatic inline NSString * AFMultipartFormEncapsulationBoundary(NSString *boundary) {\n    return [NSString stringWithFormat:@\"%@--%@%@\", kAFMultipartFormCRLF, boundary, kAFMultipartFormCRLF];\n}\n\nstatic inline NSString * AFMultipartFormFinalBoundary(NSString *boundary) {\n    return [NSString stringWithFormat:@\"%@--%@--%@\", kAFMultipartFormCRLF, boundary, kAFMultipartFormCRLF];\n}\n\nstatic inline NSString * AFContentTypeForPathExtension(NSString *extension) {\n    NSString *UTI = (__bridge_transfer NSString *)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, (__bridge CFStringRef)extension, NULL);\n    NSString *contentType = (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)UTI, kUTTagClassMIMEType);\n    if (!contentType) {\n        return @\"application/octet-stream\";\n    } else {\n        return contentType;\n    }\n}\n\nNSUInteger const kAFUploadStream3GSuggestedPacketSize = 1024 * 16;\nNSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2;\n\n@interface AFHTTPBodyPart : NSObject\n@property (nonatomic, assign) NSStringEncoding stringEncoding;\n@property (nonatomic, strong) NSDictionary *headers;\n@property (nonatomic, copy) NSString *boundary;\n@property (nonatomic, strong) id body;\n@property (nonatomic, assign) unsigned long long bodyContentLength;\n@property (nonatomic, strong) NSInputStream *inputStream;\n\n@property (nonatomic, assign) BOOL hasInitialBoundary;\n@property (nonatomic, assign) BOOL hasFinalBoundary;\n\n@property (readonly, nonatomic, assign, getter = hasBytesAvailable) BOOL bytesAvailable;\n@property (readonly, nonatomic, assign) unsigned long long contentLength;\n\n- (NSInteger)read:(uint8_t *)buffer\n        maxLength:(NSUInteger)length;\n@end\n\n@interface AFMultipartBodyStream : NSInputStream <NSStreamDelegate>\n@property (nonatomic, assign) NSUInteger numberOfBytesInPacket;\n@property (nonatomic, assign) NSTimeInterval delay;\n@property (nonatomic, strong) NSInputStream *inputStream;\n@property (readonly, nonatomic, assign) unsigned long long contentLength;\n@property (readonly, nonatomic, assign, getter = isEmpty) BOOL empty;\n\n- (instancetype)initWithStringEncoding:(NSStringEncoding)encoding;\n- (void)setInitialAndFinalBoundaries;\n- (void)appendHTTPBodyPart:(AFHTTPBodyPart *)bodyPart;\n@end\n\n#pragma mark -\n\n@interface AFStreamingMultipartFormData ()\n@property (readwrite, nonatomic, copy) NSMutableURLRequest *request;\n@property (readwrite, nonatomic, assign) NSStringEncoding stringEncoding;\n@property (readwrite, nonatomic, copy) NSString *boundary;\n@property (readwrite, nonatomic, strong) AFMultipartBodyStream *bodyStream;\n@end\n\n@implementation AFStreamingMultipartFormData\n\n- (instancetype)initWithURLRequest:(NSMutableURLRequest *)urlRequest\n                    stringEncoding:(NSStringEncoding)encoding\n{\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.request = urlRequest;\n    self.stringEncoding = encoding;\n    self.boundary = AFCreateMultipartFormBoundary();\n    self.bodyStream = [[AFMultipartBodyStream alloc] initWithStringEncoding:encoding];\n\n    return self;\n}\n\n- (BOOL)appendPartWithFileURL:(NSURL *)fileURL\n                         name:(NSString *)name\n                        error:(NSError * __autoreleasing *)error\n{\n    NSParameterAssert(fileURL);\n    NSParameterAssert(name);\n\n    NSString *fileName = [fileURL lastPathComponent];\n    NSString *mimeType = AFContentTypeForPathExtension([fileURL pathExtension]);\n\n    return [self appendPartWithFileURL:fileURL name:name fileName:fileName mimeType:mimeType error:error];\n}\n\n- (BOOL)appendPartWithFileURL:(NSURL *)fileURL\n                         name:(NSString *)name\n                     fileName:(NSString *)fileName\n                     mimeType:(NSString *)mimeType\n                        error:(NSError * __autoreleasing *)error\n{\n    NSParameterAssert(fileURL);\n    NSParameterAssert(name);\n    NSParameterAssert(fileName);\n    NSParameterAssert(mimeType);\n\n    if (![fileURL isFileURL]) {\n        NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey: NSLocalizedStringFromTable(@\"Expected URL to be a file URL\", @\"AFNetworking\", nil)};\n        if (error) {\n            *error = [[NSError alloc] initWithDomain:AFURLRequestSerializationErrorDomain code:NSURLErrorBadURL userInfo:userInfo];\n        }\n\n        return NO;\n    } else if ([fileURL checkResourceIsReachableAndReturnError:error] == NO) {\n        NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey: NSLocalizedStringFromTable(@\"File URL not reachable.\", @\"AFNetworking\", nil)};\n        if (error) {\n            *error = [[NSError alloc] initWithDomain:AFURLRequestSerializationErrorDomain code:NSURLErrorBadURL userInfo:userInfo];\n        }\n\n        return NO;\n    }\n\n    NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:[fileURL path] error:error];\n    if (!fileAttributes) {\n        return NO;\n    }\n\n    NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary];\n    [mutableHeaders setValue:[NSString stringWithFormat:@\"form-data; name=\\\"%@\\\"; filename=\\\"%@\\\"\", name, fileName] forKey:@\"Content-Disposition\"];\n    [mutableHeaders setValue:mimeType forKey:@\"Content-Type\"];\n\n    AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init];\n    bodyPart.stringEncoding = self.stringEncoding;\n    bodyPart.headers = mutableHeaders;\n    bodyPart.boundary = self.boundary;\n    bodyPart.body = fileURL;\n    bodyPart.bodyContentLength = [fileAttributes[NSFileSize] unsignedLongLongValue];\n    [self.bodyStream appendHTTPBodyPart:bodyPart];\n\n    return YES;\n}\n\n- (void)appendPartWithInputStream:(NSInputStream *)inputStream\n                             name:(NSString *)name\n                         fileName:(NSString *)fileName\n                           length:(int64_t)length\n                         mimeType:(NSString *)mimeType\n{\n    NSParameterAssert(name);\n    NSParameterAssert(fileName);\n    NSParameterAssert(mimeType);\n\n    NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary];\n    [mutableHeaders setValue:[NSString stringWithFormat:@\"form-data; name=\\\"%@\\\"; filename=\\\"%@\\\"\", name, fileName] forKey:@\"Content-Disposition\"];\n    [mutableHeaders setValue:mimeType forKey:@\"Content-Type\"];\n\n    AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init];\n    bodyPart.stringEncoding = self.stringEncoding;\n    bodyPart.headers = mutableHeaders;\n    bodyPart.boundary = self.boundary;\n    bodyPart.body = inputStream;\n\n    bodyPart.bodyContentLength = (unsigned long long)length;\n\n    [self.bodyStream appendHTTPBodyPart:bodyPart];\n}\n\n- (void)appendPartWithFileData:(NSData *)data\n                          name:(NSString *)name\n                      fileName:(NSString *)fileName\n                      mimeType:(NSString *)mimeType\n{\n    NSParameterAssert(name);\n    NSParameterAssert(fileName);\n    NSParameterAssert(mimeType);\n\n    NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary];\n    [mutableHeaders setValue:[NSString stringWithFormat:@\"form-data; name=\\\"%@\\\"; filename=\\\"%@\\\"\", name, fileName] forKey:@\"Content-Disposition\"];\n    [mutableHeaders setValue:mimeType forKey:@\"Content-Type\"];\n\n    [self appendPartWithHeaders:mutableHeaders body:data];\n}\n\n- (void)appendPartWithFormData:(NSData *)data\n                          name:(NSString *)name\n{\n    NSParameterAssert(name);\n\n    NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary];\n    [mutableHeaders setValue:[NSString stringWithFormat:@\"form-data; name=\\\"%@\\\"\", name] forKey:@\"Content-Disposition\"];\n\n    [self appendPartWithHeaders:mutableHeaders body:data];\n}\n\n- (void)appendPartWithHeaders:(NSDictionary *)headers\n                         body:(NSData *)body\n{\n    NSParameterAssert(body);\n\n    AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init];\n    bodyPart.stringEncoding = self.stringEncoding;\n    bodyPart.headers = headers;\n    bodyPart.boundary = self.boundary;\n    bodyPart.bodyContentLength = [body length];\n    bodyPart.body = body;\n\n    [self.bodyStream appendHTTPBodyPart:bodyPart];\n}\n\n- (void)throttleBandwidthWithPacketSize:(NSUInteger)numberOfBytes\n                                  delay:(NSTimeInterval)delay\n{\n    self.bodyStream.numberOfBytesInPacket = numberOfBytes;\n    self.bodyStream.delay = delay;\n}\n\n- (NSMutableURLRequest *)requestByFinalizingMultipartFormData {\n    if ([self.bodyStream isEmpty]) {\n        return self.request;\n    }\n\n    // Reset the initial and final boundaries to ensure correct Content-Length\n    [self.bodyStream setInitialAndFinalBoundaries];\n    [self.request setHTTPBodyStream:self.bodyStream];\n\n    [self.request setValue:[NSString stringWithFormat:@\"multipart/form-data; boundary=%@\", self.boundary] forHTTPHeaderField:@\"Content-Type\"];\n    [self.request setValue:[NSString stringWithFormat:@\"%llu\", [self.bodyStream contentLength]] forHTTPHeaderField:@\"Content-Length\"];\n\n    return self.request;\n}\n\n@end\n\n#pragma mark -\n\n@interface NSStream ()\n@property (readwrite) NSStreamStatus streamStatus;\n@property (readwrite, copy) NSError *streamError;\n@end\n\n@interface AFMultipartBodyStream () <NSCopying>\n@property (readwrite, nonatomic, assign) NSStringEncoding stringEncoding;\n@property (readwrite, nonatomic, strong) NSMutableArray *HTTPBodyParts;\n@property (readwrite, nonatomic, strong) NSEnumerator *HTTPBodyPartEnumerator;\n@property (readwrite, nonatomic, strong) AFHTTPBodyPart *currentHTTPBodyPart;\n@property (readwrite, nonatomic, strong) NSOutputStream *outputStream;\n@property (readwrite, nonatomic, strong) NSMutableData *buffer;\n@end\n\n@implementation AFMultipartBodyStream\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wimplicit-atomic-properties\"\n#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1100)\n@synthesize delegate;\n#endif\n@synthesize streamStatus;\n@synthesize streamError;\n#pragma clang diagnostic pop\n\n- (instancetype)initWithStringEncoding:(NSStringEncoding)encoding {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.stringEncoding = encoding;\n    self.HTTPBodyParts = [NSMutableArray array];\n    self.numberOfBytesInPacket = NSIntegerMax;\n\n    return self;\n}\n\n- (void)setInitialAndFinalBoundaries {\n    if ([self.HTTPBodyParts count] > 0) {\n        for (AFHTTPBodyPart *bodyPart in self.HTTPBodyParts) {\n            bodyPart.hasInitialBoundary = NO;\n            bodyPart.hasFinalBoundary = NO;\n        }\n\n        [[self.HTTPBodyParts firstObject] setHasInitialBoundary:YES];\n        [[self.HTTPBodyParts lastObject] setHasFinalBoundary:YES];\n    }\n}\n\n- (void)appendHTTPBodyPart:(AFHTTPBodyPart *)bodyPart {\n    [self.HTTPBodyParts addObject:bodyPart];\n}\n\n- (BOOL)isEmpty {\n    return [self.HTTPBodyParts count] == 0;\n}\n\n#pragma mark - NSInputStream\n\n- (NSInteger)read:(uint8_t *)buffer\n        maxLength:(NSUInteger)length\n{\n    if ([self streamStatus] == NSStreamStatusClosed) {\n        return 0;\n    }\n\n    NSInteger totalNumberOfBytesRead = 0;\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n    while ((NSUInteger)totalNumberOfBytesRead < MIN(length, self.numberOfBytesInPacket)) {\n        if (!self.currentHTTPBodyPart || ![self.currentHTTPBodyPart hasBytesAvailable]) {\n            if (!(self.currentHTTPBodyPart = [self.HTTPBodyPartEnumerator nextObject])) {\n                break;\n            }\n        } else {\n            NSUInteger maxLength = MIN(length, self.numberOfBytesInPacket) - (NSUInteger)totalNumberOfBytesRead;\n            NSInteger numberOfBytesRead = [self.currentHTTPBodyPart read:&buffer[totalNumberOfBytesRead] maxLength:maxLength];\n            if (numberOfBytesRead == -1) {\n                self.streamError = self.currentHTTPBodyPart.inputStream.streamError;\n                break;\n            } else {\n                totalNumberOfBytesRead += numberOfBytesRead;\n\n                if (self.delay > 0.0f) {\n                    [NSThread sleepForTimeInterval:self.delay];\n                }\n            }\n        }\n    }\n#pragma clang diagnostic pop\n\n    return totalNumberOfBytesRead;\n}\n\n- (BOOL)getBuffer:(__unused uint8_t **)buffer\n           length:(__unused NSUInteger *)len\n{\n    return NO;\n}\n\n- (BOOL)hasBytesAvailable {\n    return [self streamStatus] == NSStreamStatusOpen;\n}\n\n#pragma mark - NSStream\n\n- (void)open {\n    if (self.streamStatus == NSStreamStatusOpen) {\n        return;\n    }\n\n    self.streamStatus = NSStreamStatusOpen;\n\n    [self setInitialAndFinalBoundaries];\n    self.HTTPBodyPartEnumerator = [self.HTTPBodyParts objectEnumerator];\n}\n\n- (void)close {\n    self.streamStatus = NSStreamStatusClosed;\n}\n\n- (id)propertyForKey:(__unused NSString *)key {\n    return nil;\n}\n\n- (BOOL)setProperty:(__unused id)property\n             forKey:(__unused NSString *)key\n{\n    return NO;\n}\n\n- (void)scheduleInRunLoop:(__unused NSRunLoop *)aRunLoop\n                  forMode:(__unused NSString *)mode\n{}\n\n- (void)removeFromRunLoop:(__unused NSRunLoop *)aRunLoop\n                  forMode:(__unused NSString *)mode\n{}\n\n- (unsigned long long)contentLength {\n    unsigned long long length = 0;\n    for (AFHTTPBodyPart *bodyPart in self.HTTPBodyParts) {\n        length += [bodyPart contentLength];\n    }\n\n    return length;\n}\n\n#pragma mark - Undocumented CFReadStream Bridged Methods\n\n- (void)_scheduleInCFRunLoop:(__unused CFRunLoopRef)aRunLoop\n                     forMode:(__unused CFStringRef)aMode\n{}\n\n- (void)_unscheduleFromCFRunLoop:(__unused CFRunLoopRef)aRunLoop\n                         forMode:(__unused CFStringRef)aMode\n{}\n\n- (BOOL)_setCFClientFlags:(__unused CFOptionFlags)inFlags\n                 callback:(__unused CFReadStreamClientCallBack)inCallback\n                  context:(__unused CFStreamClientContext *)inContext {\n    return NO;\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFMultipartBodyStream *bodyStreamCopy = [[[self class] allocWithZone:zone] initWithStringEncoding:self.stringEncoding];\n\n    for (AFHTTPBodyPart *bodyPart in self.HTTPBodyParts) {\n        [bodyStreamCopy appendHTTPBodyPart:[bodyPart copy]];\n    }\n\n    [bodyStreamCopy setInitialAndFinalBoundaries];\n\n    return bodyStreamCopy;\n}\n\n@end\n\n#pragma mark -\n\ntypedef enum {\n    AFEncapsulationBoundaryPhase = 1,\n    AFHeaderPhase                = 2,\n    AFBodyPhase                  = 3,\n    AFFinalBoundaryPhase         = 4,\n} AFHTTPBodyPartReadPhase;\n\n@interface AFHTTPBodyPart () <NSCopying> {\n    AFHTTPBodyPartReadPhase _phase;\n    NSInputStream *_inputStream;\n    unsigned long long _phaseReadOffset;\n}\n\n- (BOOL)transitionToNextPhase;\n- (NSInteger)readData:(NSData *)data\n           intoBuffer:(uint8_t *)buffer\n            maxLength:(NSUInteger)length;\n@end\n\n@implementation AFHTTPBodyPart\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    [self transitionToNextPhase];\n\n    return self;\n}\n\n- (void)dealloc {\n    if (_inputStream) {\n        [_inputStream close];\n        _inputStream = nil;\n    }\n}\n\n- (NSInputStream *)inputStream {\n    if (!_inputStream) {\n        if ([self.body isKindOfClass:[NSData class]]) {\n            _inputStream = [NSInputStream inputStreamWithData:self.body];\n        } else if ([self.body isKindOfClass:[NSURL class]]) {\n            _inputStream = [NSInputStream inputStreamWithURL:self.body];\n        } else if ([self.body isKindOfClass:[NSInputStream class]]) {\n            _inputStream = self.body;\n        } else {\n            _inputStream = [NSInputStream inputStreamWithData:[NSData data]];\n        }\n    }\n\n    return _inputStream;\n}\n\n- (NSString *)stringForHeaders {\n    NSMutableString *headerString = [NSMutableString string];\n    for (NSString *field in [self.headers allKeys]) {\n        [headerString appendString:[NSString stringWithFormat:@\"%@: %@%@\", field, [self.headers valueForKey:field], kAFMultipartFormCRLF]];\n    }\n    [headerString appendString:kAFMultipartFormCRLF];\n\n    return [NSString stringWithString:headerString];\n}\n\n- (unsigned long long)contentLength {\n    unsigned long long length = 0;\n\n    NSData *encapsulationBoundaryData = [([self hasInitialBoundary] ? AFMultipartFormInitialBoundary(self.boundary) : AFMultipartFormEncapsulationBoundary(self.boundary)) dataUsingEncoding:self.stringEncoding];\n    length += [encapsulationBoundaryData length];\n\n    NSData *headersData = [[self stringForHeaders] dataUsingEncoding:self.stringEncoding];\n    length += [headersData length];\n\n    length += _bodyContentLength;\n\n    NSData *closingBoundaryData = ([self hasFinalBoundary] ? [AFMultipartFormFinalBoundary(self.boundary) dataUsingEncoding:self.stringEncoding] : [NSData data]);\n    length += [closingBoundaryData length];\n\n    return length;\n}\n\n- (BOOL)hasBytesAvailable {\n    // Allows `read:maxLength:` to be called again if `AFMultipartFormFinalBoundary` doesn't fit into the available buffer\n    if (_phase == AFFinalBoundaryPhase) {\n        return YES;\n    }\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wcovered-switch-default\"\n    switch (self.inputStream.streamStatus) {\n        case NSStreamStatusNotOpen:\n        case NSStreamStatusOpening:\n        case NSStreamStatusOpen:\n        case NSStreamStatusReading:\n        case NSStreamStatusWriting:\n            return YES;\n        case NSStreamStatusAtEnd:\n        case NSStreamStatusClosed:\n        case NSStreamStatusError:\n        default:\n            return NO;\n    }\n#pragma clang diagnostic pop\n}\n\n- (NSInteger)read:(uint8_t *)buffer\n        maxLength:(NSUInteger)length\n{\n    NSInteger totalNumberOfBytesRead = 0;\n\n    if (_phase == AFEncapsulationBoundaryPhase) {\n        NSData *encapsulationBoundaryData = [([self hasInitialBoundary] ? AFMultipartFormInitialBoundary(self.boundary) : AFMultipartFormEncapsulationBoundary(self.boundary)) dataUsingEncoding:self.stringEncoding];\n        totalNumberOfBytesRead += [self readData:encapsulationBoundaryData intoBuffer:&buffer[totalNumberOfBytesRead] maxLength:(length - (NSUInteger)totalNumberOfBytesRead)];\n    }\n\n    if (_phase == AFHeaderPhase) {\n        NSData *headersData = [[self stringForHeaders] dataUsingEncoding:self.stringEncoding];\n        totalNumberOfBytesRead += [self readData:headersData intoBuffer:&buffer[totalNumberOfBytesRead] maxLength:(length - (NSUInteger)totalNumberOfBytesRead)];\n    }\n\n    if (_phase == AFBodyPhase) {\n        NSInteger numberOfBytesRead = 0;\n\n        numberOfBytesRead = [self.inputStream read:&buffer[totalNumberOfBytesRead] maxLength:(length - (NSUInteger)totalNumberOfBytesRead)];\n        if (numberOfBytesRead == -1) {\n            return -1;\n        } else {\n            totalNumberOfBytesRead += numberOfBytesRead;\n\n            if ([self.inputStream streamStatus] >= NSStreamStatusAtEnd) {\n                [self transitionToNextPhase];\n            }\n        }\n    }\n\n    if (_phase == AFFinalBoundaryPhase) {\n        NSData *closingBoundaryData = ([self hasFinalBoundary] ? [AFMultipartFormFinalBoundary(self.boundary) dataUsingEncoding:self.stringEncoding] : [NSData data]);\n        totalNumberOfBytesRead += [self readData:closingBoundaryData intoBuffer:&buffer[totalNumberOfBytesRead] maxLength:(length - (NSUInteger)totalNumberOfBytesRead)];\n    }\n\n    return totalNumberOfBytesRead;\n}\n\n- (NSInteger)readData:(NSData *)data\n           intoBuffer:(uint8_t *)buffer\n            maxLength:(NSUInteger)length\n{\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n    NSRange range = NSMakeRange((NSUInteger)_phaseReadOffset, MIN([data length] - ((NSUInteger)_phaseReadOffset), length));\n    [data getBytes:buffer range:range];\n#pragma clang diagnostic pop\n\n    _phaseReadOffset += range.length;\n\n    if (((NSUInteger)_phaseReadOffset) >= [data length]) {\n        [self transitionToNextPhase];\n    }\n\n    return (NSInteger)range.length;\n}\n\n- (BOOL)transitionToNextPhase {\n    if (![[NSThread currentThread] isMainThread]) {\n        dispatch_sync(dispatch_get_main_queue(), ^{\n            [self transitionToNextPhase];\n        });\n        return YES;\n    }\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wcovered-switch-default\"\n    switch (_phase) {\n        case AFEncapsulationBoundaryPhase:\n            _phase = AFHeaderPhase;\n            break;\n        case AFHeaderPhase:\n            [self.inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];\n            [self.inputStream open];\n            _phase = AFBodyPhase;\n            break;\n        case AFBodyPhase:\n            [self.inputStream close];\n            _phase = AFFinalBoundaryPhase;\n            break;\n        case AFFinalBoundaryPhase:\n        default:\n            _phase = AFEncapsulationBoundaryPhase;\n            break;\n    }\n    _phaseReadOffset = 0;\n#pragma clang diagnostic pop\n\n    return YES;\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFHTTPBodyPart *bodyPart = [[[self class] allocWithZone:zone] init];\n\n    bodyPart.stringEncoding = self.stringEncoding;\n    bodyPart.headers = self.headers;\n    bodyPart.bodyContentLength = self.bodyContentLength;\n    bodyPart.body = self.body;\n    bodyPart.boundary = self.boundary;\n\n    return bodyPart;\n}\n\n@end\n\n#pragma mark -\n\n@implementation AFJSONRequestSerializer\n\n+ (instancetype)serializer {\n    return [self serializerWithWritingOptions:(NSJSONWritingOptions)0];\n}\n\n+ (instancetype)serializerWithWritingOptions:(NSJSONWritingOptions)writingOptions\n{\n    AFJSONRequestSerializer *serializer = [[self alloc] init];\n    serializer.writingOptions = writingOptions;\n\n    return serializer;\n}\n\n#pragma mark - AFURLRequestSerialization\n\n- (NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request\n                               withParameters:(id)parameters\n                                        error:(NSError *__autoreleasing *)error\n{\n    NSParameterAssert(request);\n\n    if ([self.HTTPMethodsEncodingParametersInURI containsObject:[[request HTTPMethod] uppercaseString]]) {\n        return [super requestBySerializingRequest:request withParameters:parameters error:error];\n    }\n\n    NSMutableURLRequest *mutableRequest = [request mutableCopy];\n\n    [self.HTTPRequestHeaders enumerateKeysAndObjectsUsingBlock:^(id field, id value, BOOL * __unused stop) {\n        if (![request valueForHTTPHeaderField:field]) {\n            [mutableRequest setValue:value forHTTPHeaderField:field];\n        }\n    }];\n\n    if (parameters) {\n        if (![mutableRequest valueForHTTPHeaderField:@\"Content-Type\"]) {\n            [mutableRequest setValue:@\"application/json\" forHTTPHeaderField:@\"Content-Type\"];\n        }\n\n        [mutableRequest setHTTPBody:[NSJSONSerialization dataWithJSONObject:parameters options:self.writingOptions error:error]];\n    }\n\n    return mutableRequest;\n}\n\n#pragma mark - NSSecureCoding\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [super initWithCoder:decoder];\n    if (!self) {\n        return nil;\n    }\n\n    self.writingOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(writingOptions))] unsignedIntegerValue];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [super encodeWithCoder:coder];\n\n    [coder encodeInteger:self.writingOptions forKey:NSStringFromSelector(@selector(writingOptions))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFJSONRequestSerializer *serializer = [super copyWithZone:zone];\n    serializer.writingOptions = self.writingOptions;\n\n    return serializer;\n}\n\n@end\n\n#pragma mark -\n\n@implementation AFPropertyListRequestSerializer\n\n+ (instancetype)serializer {\n    return [self serializerWithFormat:NSPropertyListXMLFormat_v1_0 writeOptions:0];\n}\n\n+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format\n                        writeOptions:(NSPropertyListWriteOptions)writeOptions\n{\n    AFPropertyListRequestSerializer *serializer = [[self alloc] init];\n    serializer.format = format;\n    serializer.writeOptions = writeOptions;\n\n    return serializer;\n}\n\n#pragma mark - AFURLRequestSerializer\n\n- (NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request\n                               withParameters:(id)parameters\n                                        error:(NSError *__autoreleasing *)error\n{\n    NSParameterAssert(request);\n\n    if ([self.HTTPMethodsEncodingParametersInURI containsObject:[[request HTTPMethod] uppercaseString]]) {\n        return [super requestBySerializingRequest:request withParameters:parameters error:error];\n    }\n\n    NSMutableURLRequest *mutableRequest = [request mutableCopy];\n\n    [self.HTTPRequestHeaders enumerateKeysAndObjectsUsingBlock:^(id field, id value, BOOL * __unused stop) {\n        if (![request valueForHTTPHeaderField:field]) {\n            [mutableRequest setValue:value forHTTPHeaderField:field];\n        }\n    }];\n\n    if (parameters) {\n        if (![mutableRequest valueForHTTPHeaderField:@\"Content-Type\"]) {\n            [mutableRequest setValue:@\"application/x-plist\" forHTTPHeaderField:@\"Content-Type\"];\n        }\n\n        [mutableRequest setHTTPBody:[NSPropertyListSerialization dataWithPropertyList:parameters format:self.format options:self.writeOptions error:error]];\n    }\n\n    return mutableRequest;\n}\n\n#pragma mark - NSSecureCoding\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [super initWithCoder:decoder];\n    if (!self) {\n        return nil;\n    }\n\n    self.format = (NSPropertyListFormat)[[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(format))] unsignedIntegerValue];\n    self.writeOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(writeOptions))] unsignedIntegerValue];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [super encodeWithCoder:coder];\n\n    [coder encodeInteger:self.format forKey:NSStringFromSelector(@selector(format))];\n    [coder encodeObject:@(self.writeOptions) forKey:NSStringFromSelector(@selector(writeOptions))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFPropertyListRequestSerializer *serializer = [super copyWithZone:zone];\n    serializer.format = self.format;\n    serializer.writeOptions = self.writeOptions;\n\n    return serializer;\n}\n\n@end\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.h",
    "content": "// AFURLResponseSerialization.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n#import <CoreGraphics/CoreGraphics.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n The `AFURLResponseSerialization` protocol is adopted by an object that decodes data into a more useful object representation, according to details in the server response. Response serializers may additionally perform validation on the incoming response and data.\n\n For example, a JSON response serializer may check for an acceptable status code (`2XX` range) and content type (`application/json`), decoding a valid JSON response into an object.\n */\n@protocol AFURLResponseSerialization <NSObject, NSSecureCoding, NSCopying>\n\n/**\n The response object decoded from the data associated with a specified response.\n\n @param response The response to be processed.\n @param data The response data to be decoded.\n @param error The error that occurred while attempting to decode the response data.\n\n @return The object decoded from the specified response data.\n */\n- (nullable id)responseObjectForResponse:(nullable NSURLResponse *)response\n                           data:(nullable NSData *)data\n                          error:(NSError * _Nullable __autoreleasing *)error NS_SWIFT_NOTHROW;\n\n@end\n\n#pragma mark -\n\n/**\n `AFHTTPResponseSerializer` conforms to the `AFURLRequestSerialization` & `AFURLResponseSerialization` protocols, offering a concrete base implementation of query string / URL form-encoded parameter serialization and default request headers, as well as response status code and content type validation.\n\n Any request or response serializer dealing with HTTP is encouraged to subclass `AFHTTPResponseSerializer` in order to ensure consistent default behavior.\n */\n@interface AFHTTPResponseSerializer : NSObject <AFURLResponseSerialization>\n\n- (instancetype)init;\n\n/**\n The string encoding used to serialize data received from the server, when no string encoding is specified by the response. `NSUTF8StringEncoding` by default.\n */\n@property (nonatomic, assign) NSStringEncoding stringEncoding;\n\n/**\n Creates and returns a serializer with default configuration.\n */\n+ (instancetype)serializer;\n\n///-----------------------------------------\n/// @name Configuring Response Serialization\n///-----------------------------------------\n\n/**\n The acceptable HTTP status codes for responses. When non-`nil`, responses with status codes not contained by the set will result in an error during validation.\n\n See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\n */\n@property (nonatomic, copy, nullable) NSIndexSet *acceptableStatusCodes;\n\n/**\n The acceptable MIME types for responses. When non-`nil`, responses with a `Content-Type` with MIME types that do not intersect with the set will result in an error during validation.\n */\n@property (nonatomic, copy, nullable) NSSet <NSString *> *acceptableContentTypes;\n\n/**\n Validates the specified response and data.\n\n In its base implementation, this method checks for an acceptable status code and content type. Subclasses may wish to add other domain-specific checks.\n\n @param response The response to be validated.\n @param data The data associated with the response.\n @param error The error that occurred while attempting to validate the response.\n\n @return `YES` if the response is valid, otherwise `NO`.\n */\n- (BOOL)validateResponse:(nullable NSHTTPURLResponse *)response\n                    data:(nullable NSData *)data\n                   error:(NSError * _Nullable __autoreleasing *)error;\n\n@end\n\n#pragma mark -\n\n\n/**\n `AFJSONResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes JSON responses.\n\n By default, `AFJSONResponseSerializer` accepts the following MIME types, which includes the official standard, `application/json`, as well as other commonly-used types:\n\n - `application/json`\n - `text/json`\n - `text/javascript`\n */\n@interface AFJSONResponseSerializer : AFHTTPResponseSerializer\n\n- (instancetype)init;\n\n/**\n Options for reading the response JSON data and creating the Foundation objects. For possible values, see the `NSJSONSerialization` documentation section \"NSJSONReadingOptions\". `0` by default.\n */\n@property (nonatomic, assign) NSJSONReadingOptions readingOptions;\n\n/**\n Whether to remove keys with `NSNull` values from response JSON. Defaults to `NO`.\n */\n@property (nonatomic, assign) BOOL removesKeysWithNullValues;\n\n/**\n Creates and returns a JSON serializer with specified reading and writing options.\n\n @param readingOptions The specified JSON reading options.\n */\n+ (instancetype)serializerWithReadingOptions:(NSJSONReadingOptions)readingOptions;\n\n@end\n\n#pragma mark -\n\n/**\n `AFXMLParserResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLParser` objects.\n\n By default, `AFXMLParserResponseSerializer` accepts the following MIME types, which includes the official standard, `application/xml`, as well as other commonly-used types:\n\n - `application/xml`\n - `text/xml`\n */\n@interface AFXMLParserResponseSerializer : AFHTTPResponseSerializer\n\n@end\n\n#pragma mark -\n\n#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED\n\n/**\n `AFXMLDocumentResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLDocument` objects.\n\n By default, `AFXMLDocumentResponseSerializer` accepts the following MIME types, which includes the official standard, `application/xml`, as well as other commonly-used types:\n\n - `application/xml`\n - `text/xml`\n */\n@interface AFXMLDocumentResponseSerializer : AFHTTPResponseSerializer\n\n- (instancetype)init;\n\n/**\n Input and output options specifically intended for `NSXMLDocument` objects. For possible values, see the `NSJSONSerialization` documentation section \"NSJSONReadingOptions\". `0` by default.\n */\n@property (nonatomic, assign) NSUInteger options;\n\n/**\n Creates and returns an XML document serializer with the specified options.\n\n @param mask The XML document options.\n */\n+ (instancetype)serializerWithXMLDocumentOptions:(NSUInteger)mask;\n\n@end\n\n#endif\n\n#pragma mark -\n\n/**\n `AFPropertyListResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLDocument` objects.\n\n By default, `AFPropertyListResponseSerializer` accepts the following MIME types:\n\n - `application/x-plist`\n */\n@interface AFPropertyListResponseSerializer : AFHTTPResponseSerializer\n\n- (instancetype)init;\n\n/**\n The property list format. Possible values are described in \"NSPropertyListFormat\".\n */\n@property (nonatomic, assign) NSPropertyListFormat format;\n\n/**\n The property list reading options. Possible values are described in \"NSPropertyListMutabilityOptions.\"\n */\n@property (nonatomic, assign) NSPropertyListReadOptions readOptions;\n\n/**\n Creates and returns a property list serializer with a specified format, read options, and write options.\n\n @param format The property list format.\n @param readOptions The property list reading options.\n */\n+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format\n                         readOptions:(NSPropertyListReadOptions)readOptions;\n\n@end\n\n#pragma mark -\n\n/**\n `AFImageResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes image responses.\n\n By default, `AFImageResponseSerializer` accepts the following MIME types, which correspond to the image formats supported by UIImage or NSImage:\n\n - `image/tiff`\n - `image/jpeg`\n - `image/gif`\n - `image/png`\n - `image/ico`\n - `image/x-icon`\n - `image/bmp`\n - `image/x-bmp`\n - `image/x-xbitmap`\n - `image/x-win-bitmap`\n */\n@interface AFImageResponseSerializer : AFHTTPResponseSerializer\n\n#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH\n/**\n The scale factor used when interpreting the image data to construct `responseImage`. Specifying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property. This is set to the value of scale of the main screen by default, which automatically scales images for retina displays, for instance.\n */\n@property (nonatomic, assign) CGFloat imageScale;\n\n/**\n Whether to automatically inflate response image data for compressed formats (such as PNG or JPEG). Enabling this can significantly improve drawing performance on iOS when used with `setCompletionBlockWithSuccess:failure:`, as it allows a bitmap representation to be constructed in the background rather than on the main thread. `YES` by default.\n */\n@property (nonatomic, assign) BOOL automaticallyInflatesResponseImage;\n#endif\n\n@end\n\n#pragma mark -\n\n/**\n `AFCompoundSerializer` is a subclass of `AFHTTPResponseSerializer` that delegates the response serialization to the first `AFHTTPResponseSerializer` object that returns an object for `responseObjectForResponse:data:error:`, falling back on the default behavior of `AFHTTPResponseSerializer`. This is useful for supporting multiple potential types and structures of server responses with a single serializer.\n */\n@interface AFCompoundResponseSerializer : AFHTTPResponseSerializer\n\n/**\n The component response serializers.\n */\n@property (readonly, nonatomic, copy) NSArray <id<AFURLResponseSerialization>> *responseSerializers;\n\n/**\n Creates and returns a compound serializer comprised of the specified response serializers.\n\n @warning Each response serializer specified must be a subclass of `AFHTTPResponseSerializer`, and response to `-validateResponse:data:error:`.\n */\n+ (instancetype)compoundSerializerWithResponseSerializers:(NSArray <id<AFURLResponseSerialization>> *)responseSerializers;\n\n@end\n\n///----------------\n/// @name Constants\n///----------------\n\n/**\n ## Error Domains\n\n The following error domain is predefined.\n\n - `NSString * const AFURLResponseSerializationErrorDomain`\n\n ### Constants\n\n `AFURLResponseSerializationErrorDomain`\n AFURLResponseSerializer errors. Error codes for `AFURLResponseSerializationErrorDomain` correspond to codes in `NSURLErrorDomain`.\n */\nFOUNDATION_EXPORT NSString * const AFURLResponseSerializationErrorDomain;\n\n/**\n ## User info dictionary keys\n\n These keys may exist in the user info dictionary, in addition to those defined for NSError.\n\n - `NSString * const AFNetworkingOperationFailingURLResponseErrorKey`\n - `NSString * const AFNetworkingOperationFailingURLResponseDataErrorKey`\n\n ### Constants\n\n `AFNetworkingOperationFailingURLResponseErrorKey`\n The corresponding value is an `NSURLResponse` containing the response of the operation associated with an error. This key is only present in the `AFURLResponseSerializationErrorDomain`.\n\n `AFNetworkingOperationFailingURLResponseDataErrorKey`\n The corresponding value is an `NSData` containing the original data of the operation associated with an error. This key is only present in the `AFURLResponseSerializationErrorDomain`.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingOperationFailingURLResponseErrorKey;\n\nFOUNDATION_EXPORT NSString * const AFNetworkingOperationFailingURLResponseDataErrorKey;\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.m",
    "content": "// AFURLResponseSerialization.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"AFURLResponseSerialization.h\"\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS\n#import <UIKit/UIKit.h>\n#elif TARGET_OS_WATCH\n#import <WatchKit/WatchKit.h>\n#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)\n#import <Cocoa/Cocoa.h>\n#endif\n\nNSString * const AFURLResponseSerializationErrorDomain = @\"com.alamofire.error.serialization.response\";\nNSString * const AFNetworkingOperationFailingURLResponseErrorKey = @\"com.alamofire.serialization.response.error.response\";\nNSString * const AFNetworkingOperationFailingURLResponseDataErrorKey = @\"com.alamofire.serialization.response.error.data\";\n\nstatic NSError * AFErrorWithUnderlyingError(NSError *error, NSError *underlyingError) {\n    if (!error) {\n        return underlyingError;\n    }\n\n    if (!underlyingError || error.userInfo[NSUnderlyingErrorKey]) {\n        return error;\n    }\n\n    NSMutableDictionary *mutableUserInfo = [error.userInfo mutableCopy];\n    mutableUserInfo[NSUnderlyingErrorKey] = underlyingError;\n\n    return [[NSError alloc] initWithDomain:error.domain code:error.code userInfo:mutableUserInfo];\n}\n\nstatic BOOL AFErrorOrUnderlyingErrorHasCodeInDomain(NSError *error, NSInteger code, NSString *domain) {\n    if ([error.domain isEqualToString:domain] && error.code == code) {\n        return YES;\n    } else if (error.userInfo[NSUnderlyingErrorKey]) {\n        return AFErrorOrUnderlyingErrorHasCodeInDomain(error.userInfo[NSUnderlyingErrorKey], code, domain);\n    }\n\n    return NO;\n}\n\nstatic id AFJSONObjectByRemovingKeysWithNullValues(id JSONObject, NSJSONReadingOptions readingOptions) {\n    if ([JSONObject isKindOfClass:[NSArray class]]) {\n        NSMutableArray *mutableArray = [NSMutableArray arrayWithCapacity:[(NSArray *)JSONObject count]];\n        for (id value in (NSArray *)JSONObject) {\n            [mutableArray addObject:AFJSONObjectByRemovingKeysWithNullValues(value, readingOptions)];\n        }\n\n        return (readingOptions & NSJSONReadingMutableContainers) ? mutableArray : [NSArray arrayWithArray:mutableArray];\n    } else if ([JSONObject isKindOfClass:[NSDictionary class]]) {\n        NSMutableDictionary *mutableDictionary = [NSMutableDictionary dictionaryWithDictionary:JSONObject];\n        for (id <NSCopying> key in [(NSDictionary *)JSONObject allKeys]) {\n            id value = (NSDictionary *)JSONObject[key];\n            if (!value || [value isEqual:[NSNull null]]) {\n                [mutableDictionary removeObjectForKey:key];\n            } else if ([value isKindOfClass:[NSArray class]] || [value isKindOfClass:[NSDictionary class]]) {\n                mutableDictionary[key] = AFJSONObjectByRemovingKeysWithNullValues(value, readingOptions);\n            }\n        }\n\n        return (readingOptions & NSJSONReadingMutableContainers) ? mutableDictionary : [NSDictionary dictionaryWithDictionary:mutableDictionary];\n    }\n\n    return JSONObject;\n}\n\n@implementation AFHTTPResponseSerializer\n\n+ (instancetype)serializer {\n    return [[self alloc] init];\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.stringEncoding = NSUTF8StringEncoding;\n\n    self.acceptableStatusCodes = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(200, 100)];\n    self.acceptableContentTypes = nil;\n\n    return self;\n}\n\n#pragma mark -\n\n- (BOOL)validateResponse:(NSHTTPURLResponse *)response\n                    data:(NSData *)data\n                   error:(NSError * __autoreleasing *)error\n{\n    BOOL responseIsValid = YES;\n    NSError *validationError = nil;\n\n    if (response && [response isKindOfClass:[NSHTTPURLResponse class]]) {\n        if (self.acceptableContentTypes && ![self.acceptableContentTypes containsObject:[response MIMEType]]) {\n            if ([data length] > 0 && [response URL]) {\n                NSMutableDictionary *mutableUserInfo = [@{\n                                                          NSLocalizedDescriptionKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@\"Request failed: unacceptable content-type: %@\", @\"AFNetworking\", nil), [response MIMEType]],\n                                                          NSURLErrorFailingURLErrorKey:[response URL],\n                                                          AFNetworkingOperationFailingURLResponseErrorKey: response,\n                                                        } mutableCopy];\n                if (data) {\n                    mutableUserInfo[AFNetworkingOperationFailingURLResponseDataErrorKey] = data;\n                }\n\n                validationError = AFErrorWithUnderlyingError([NSError errorWithDomain:AFURLResponseSerializationErrorDomain code:NSURLErrorCannotDecodeContentData userInfo:mutableUserInfo], validationError);\n            }\n\n            responseIsValid = NO;\n        }\n\n        if (self.acceptableStatusCodes && ![self.acceptableStatusCodes containsIndex:(NSUInteger)response.statusCode] && [response URL]) {\n            NSMutableDictionary *mutableUserInfo = [@{\n                                               NSLocalizedDescriptionKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@\"Request failed: %@ (%ld)\", @\"AFNetworking\", nil), [NSHTTPURLResponse localizedStringForStatusCode:response.statusCode], (long)response.statusCode],\n                                               NSURLErrorFailingURLErrorKey:[response URL],\n                                               AFNetworkingOperationFailingURLResponseErrorKey: response,\n                                       } mutableCopy];\n\n            if (data) {\n                mutableUserInfo[AFNetworkingOperationFailingURLResponseDataErrorKey] = data;\n            }\n\n            validationError = AFErrorWithUnderlyingError([NSError errorWithDomain:AFURLResponseSerializationErrorDomain code:NSURLErrorBadServerResponse userInfo:mutableUserInfo], validationError);\n\n            responseIsValid = NO;\n        }\n    }\n\n    if (error && !responseIsValid) {\n        *error = validationError;\n    }\n\n    return responseIsValid;\n}\n\n#pragma mark - AFURLResponseSerialization\n\n- (id)responseObjectForResponse:(NSURLResponse *)response\n                           data:(NSData *)data\n                          error:(NSError *__autoreleasing *)error\n{\n    [self validateResponse:(NSHTTPURLResponse *)response data:data error:error];\n\n    return data;\n}\n\n#pragma mark - NSSecureCoding\n\n+ (BOOL)supportsSecureCoding {\n    return YES;\n}\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [self init];\n    if (!self) {\n        return nil;\n    }\n\n    self.acceptableStatusCodes = [decoder decodeObjectOfClass:[NSIndexSet class] forKey:NSStringFromSelector(@selector(acceptableStatusCodes))];\n    self.acceptableContentTypes = [decoder decodeObjectOfClass:[NSIndexSet class] forKey:NSStringFromSelector(@selector(acceptableContentTypes))];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [coder encodeObject:self.acceptableStatusCodes forKey:NSStringFromSelector(@selector(acceptableStatusCodes))];\n    [coder encodeObject:self.acceptableContentTypes forKey:NSStringFromSelector(@selector(acceptableContentTypes))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFHTTPResponseSerializer *serializer = [[[self class] allocWithZone:zone] init];\n    serializer.acceptableStatusCodes = [self.acceptableStatusCodes copyWithZone:zone];\n    serializer.acceptableContentTypes = [self.acceptableContentTypes copyWithZone:zone];\n\n    return serializer;\n}\n\n@end\n\n#pragma mark -\n\n@implementation AFJSONResponseSerializer\n\n+ (instancetype)serializer {\n    return [self serializerWithReadingOptions:(NSJSONReadingOptions)0];\n}\n\n+ (instancetype)serializerWithReadingOptions:(NSJSONReadingOptions)readingOptions {\n    AFJSONResponseSerializer *serializer = [[self alloc] init];\n    serializer.readingOptions = readingOptions;\n\n    return serializer;\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.acceptableContentTypes = [NSSet setWithObjects:@\"application/json\", @\"text/json\", @\"text/javascript\", nil];\n\n    return self;\n}\n\n#pragma mark - AFURLResponseSerialization\n\n- (id)responseObjectForResponse:(NSURLResponse *)response\n                           data:(NSData *)data\n                          error:(NSError *__autoreleasing *)error\n{\n    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {\n        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {\n            return nil;\n        }\n    }\n\n    // Workaround for behavior of Rails to return a single space for `head :ok` (a workaround for a bug in Safari), which is not interpreted as valid input by NSJSONSerialization.\n    // See https://github.com/rails/rails/issues/1742\n    NSStringEncoding stringEncoding = self.stringEncoding;\n    if (response.textEncodingName) {\n        CFStringEncoding encoding = CFStringConvertIANACharSetNameToEncoding((CFStringRef)response.textEncodingName);\n        if (encoding != kCFStringEncodingInvalidId) {\n            stringEncoding = CFStringConvertEncodingToNSStringEncoding(encoding);\n        }\n    }\n\n    id responseObject = nil;\n    NSError *serializationError = nil;\n    @autoreleasepool {\n        NSString *responseString = [[NSString alloc] initWithData:data encoding:stringEncoding];\n        if (responseString && ![responseString isEqualToString:@\" \"]) {\n            // Workaround for a bug in NSJSONSerialization when Unicode character escape codes are used instead of the actual character\n            // See http://stackoverflow.com/a/12843465/157142\n            data = [responseString dataUsingEncoding:NSUTF8StringEncoding];\n\n            if (data) {\n                if ([data length] > 0) {\n                    responseObject = [NSJSONSerialization JSONObjectWithData:data options:self.readingOptions error:&serializationError];\n                } else {\n                    return nil;\n                }\n            } else {\n                NSDictionary *userInfo = @{\n                                           NSLocalizedDescriptionKey: NSLocalizedStringFromTable(@\"Data failed decoding as a UTF-8 string\", @\"AFNetworking\", nil),\n                                           NSLocalizedFailureReasonErrorKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@\"Could not decode string: %@\", @\"AFNetworking\", nil), responseString]\n                                           };\n\n                serializationError = [NSError errorWithDomain:AFURLResponseSerializationErrorDomain code:NSURLErrorCannotDecodeContentData userInfo:userInfo];\n            }\n        }\n    }\n\n    if (self.removesKeysWithNullValues && responseObject) {\n        responseObject = AFJSONObjectByRemovingKeysWithNullValues(responseObject, self.readingOptions);\n    }\n\n    if (error) {\n        *error = AFErrorWithUnderlyingError(serializationError, *error);\n    }\n\n    return responseObject;\n}\n\n#pragma mark - NSSecureCoding\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [super initWithCoder:decoder];\n    if (!self) {\n        return nil;\n    }\n\n    self.readingOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(readingOptions))] unsignedIntegerValue];\n    self.removesKeysWithNullValues = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(removesKeysWithNullValues))] boolValue];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [super encodeWithCoder:coder];\n\n    [coder encodeObject:@(self.readingOptions) forKey:NSStringFromSelector(@selector(readingOptions))];\n    [coder encodeObject:@(self.removesKeysWithNullValues) forKey:NSStringFromSelector(@selector(removesKeysWithNullValues))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFJSONResponseSerializer *serializer = [[[self class] allocWithZone:zone] init];\n    serializer.readingOptions = self.readingOptions;\n    serializer.removesKeysWithNullValues = self.removesKeysWithNullValues;\n\n    return serializer;\n}\n\n@end\n\n#pragma mark -\n\n@implementation AFXMLParserResponseSerializer\n\n+ (instancetype)serializer {\n    AFXMLParserResponseSerializer *serializer = [[self alloc] init];\n\n    return serializer;\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@\"application/xml\", @\"text/xml\", nil];\n\n    return self;\n}\n\n#pragma mark - AFURLResponseSerialization\n\n- (id)responseObjectForResponse:(NSHTTPURLResponse *)response\n                           data:(NSData *)data\n                          error:(NSError *__autoreleasing *)error\n{\n    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {\n        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {\n            return nil;\n        }\n    }\n\n    return [[NSXMLParser alloc] initWithData:data];\n}\n\n@end\n\n#pragma mark -\n\n#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED\n\n@implementation AFXMLDocumentResponseSerializer\n\n+ (instancetype)serializer {\n    return [self serializerWithXMLDocumentOptions:0];\n}\n\n+ (instancetype)serializerWithXMLDocumentOptions:(NSUInteger)mask {\n    AFXMLDocumentResponseSerializer *serializer = [[self alloc] init];\n    serializer.options = mask;\n\n    return serializer;\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@\"application/xml\", @\"text/xml\", nil];\n\n    return self;\n}\n\n#pragma mark - AFURLResponseSerialization\n\n- (id)responseObjectForResponse:(NSURLResponse *)response\n                           data:(NSData *)data\n                          error:(NSError *__autoreleasing *)error\n{\n    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {\n        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {\n            return nil;\n        }\n    }\n\n    NSError *serializationError = nil;\n    NSXMLDocument *document = [[NSXMLDocument alloc] initWithData:data options:self.options error:&serializationError];\n\n    if (error) {\n        *error = AFErrorWithUnderlyingError(serializationError, *error);\n    }\n\n    return document;\n}\n\n#pragma mark - NSSecureCoding\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [super initWithCoder:decoder];\n    if (!self) {\n        return nil;\n    }\n\n    self.options = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(options))] unsignedIntegerValue];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [super encodeWithCoder:coder];\n\n    [coder encodeObject:@(self.options) forKey:NSStringFromSelector(@selector(options))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFXMLDocumentResponseSerializer *serializer = [[[self class] allocWithZone:zone] init];\n    serializer.options = self.options;\n\n    return serializer;\n}\n\n@end\n\n#endif\n\n#pragma mark -\n\n@implementation AFPropertyListResponseSerializer\n\n+ (instancetype)serializer {\n    return [self serializerWithFormat:NSPropertyListXMLFormat_v1_0 readOptions:0];\n}\n\n+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format\n                         readOptions:(NSPropertyListReadOptions)readOptions\n{\n    AFPropertyListResponseSerializer *serializer = [[self alloc] init];\n    serializer.format = format;\n    serializer.readOptions = readOptions;\n\n    return serializer;\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@\"application/x-plist\", nil];\n\n    return self;\n}\n\n#pragma mark - AFURLResponseSerialization\n\n- (id)responseObjectForResponse:(NSURLResponse *)response\n                           data:(NSData *)data\n                          error:(NSError *__autoreleasing *)error\n{\n    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {\n        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {\n            return nil;\n        }\n    }\n\n    id responseObject;\n    NSError *serializationError = nil;\n\n    if (data) {\n        responseObject = [NSPropertyListSerialization propertyListWithData:data options:self.readOptions format:NULL error:&serializationError];\n    }\n\n    if (error) {\n        *error = AFErrorWithUnderlyingError(serializationError, *error);\n    }\n\n    return responseObject;\n}\n\n#pragma mark - NSSecureCoding\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [super initWithCoder:decoder];\n    if (!self) {\n        return nil;\n    }\n\n    self.format = (NSPropertyListFormat)[[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(format))] unsignedIntegerValue];\n    self.readOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(readOptions))] unsignedIntegerValue];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [super encodeWithCoder:coder];\n\n    [coder encodeObject:@(self.format) forKey:NSStringFromSelector(@selector(format))];\n    [coder encodeObject:@(self.readOptions) forKey:NSStringFromSelector(@selector(readOptions))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFPropertyListResponseSerializer *serializer = [[[self class] allocWithZone:zone] init];\n    serializer.format = self.format;\n    serializer.readOptions = self.readOptions;\n\n    return serializer;\n}\n\n@end\n\n#pragma mark -\n\n#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH\n#import <CoreGraphics/CoreGraphics.h>\n#import <UIKit/UIKit.h>\n\n@interface UIImage (AFNetworkingSafeImageLoading)\n+ (UIImage *)af_safeImageWithData:(NSData *)data;\n@end\n\nstatic NSLock* imageLock = nil;\n\n@implementation UIImage (AFNetworkingSafeImageLoading)\n\n+ (UIImage *)af_safeImageWithData:(NSData *)data {\n    UIImage* image = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        imageLock = [[NSLock alloc] init];\n    });\n    \n    [imageLock lock];\n    image = [UIImage imageWithData:data];\n    [imageLock unlock];\n    return image;\n}\n\n@end\n\nstatic UIImage * AFImageWithDataAtScale(NSData *data, CGFloat scale) {\n    UIImage *image = [UIImage af_safeImageWithData:data];\n    if (image.images) {\n        return image;\n    }\n    \n    return [[UIImage alloc] initWithCGImage:[image CGImage] scale:scale orientation:image.imageOrientation];\n}\n\nstatic UIImage * AFInflatedImageFromResponseWithDataAtScale(NSHTTPURLResponse *response, NSData *data, CGFloat scale) {\n    if (!data || [data length] == 0) {\n        return nil;\n    }\n\n    CGImageRef imageRef = NULL;\n    CGDataProviderRef dataProvider = CGDataProviderCreateWithCFData((__bridge CFDataRef)data);\n\n    if ([response.MIMEType isEqualToString:@\"image/png\"]) {\n        imageRef = CGImageCreateWithPNGDataProvider(dataProvider,  NULL, true, kCGRenderingIntentDefault);\n    } else if ([response.MIMEType isEqualToString:@\"image/jpeg\"]) {\n        imageRef = CGImageCreateWithJPEGDataProvider(dataProvider, NULL, true, kCGRenderingIntentDefault);\n\n        if (imageRef) {\n            CGColorSpaceRef imageColorSpace = CGImageGetColorSpace(imageRef);\n            CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(imageColorSpace);\n\n            // CGImageCreateWithJPEGDataProvider does not properly handle CMKY, so fall back to AFImageWithDataAtScale\n            if (imageColorSpaceModel == kCGColorSpaceModelCMYK) {\n                CGImageRelease(imageRef);\n                imageRef = NULL;\n            }\n        }\n    }\n\n    CGDataProviderRelease(dataProvider);\n\n    UIImage *image = AFImageWithDataAtScale(data, scale);\n    if (!imageRef) {\n        if (image.images || !image) {\n            return image;\n        }\n\n        imageRef = CGImageCreateCopy([image CGImage]);\n        if (!imageRef) {\n            return nil;\n        }\n    }\n\n    size_t width = CGImageGetWidth(imageRef);\n    size_t height = CGImageGetHeight(imageRef);\n    size_t bitsPerComponent = CGImageGetBitsPerComponent(imageRef);\n\n    if (width * height > 1024 * 1024 || bitsPerComponent > 8) {\n        CGImageRelease(imageRef);\n\n        return image;\n    }\n\n    // CGImageGetBytesPerRow() calculates incorrectly in iOS 5.0, so defer to CGBitmapContextCreate\n    size_t bytesPerRow = 0;\n    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();\n    CGColorSpaceModel colorSpaceModel = CGColorSpaceGetModel(colorSpace);\n    CGBitmapInfo bitmapInfo = CGImageGetBitmapInfo(imageRef);\n\n    if (colorSpaceModel == kCGColorSpaceModelRGB) {\n        uint32_t alpha = (bitmapInfo & kCGBitmapAlphaInfoMask);\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wassign-enum\"\n        if (alpha == kCGImageAlphaNone) {\n            bitmapInfo &= ~kCGBitmapAlphaInfoMask;\n            bitmapInfo |= kCGImageAlphaNoneSkipFirst;\n        } else if (!(alpha == kCGImageAlphaNoneSkipFirst || alpha == kCGImageAlphaNoneSkipLast)) {\n            bitmapInfo &= ~kCGBitmapAlphaInfoMask;\n            bitmapInfo |= kCGImageAlphaPremultipliedFirst;\n        }\n#pragma clang diagnostic pop\n    }\n\n    CGContextRef context = CGBitmapContextCreate(NULL, width, height, bitsPerComponent, bytesPerRow, colorSpace, bitmapInfo);\n\n    CGColorSpaceRelease(colorSpace);\n\n    if (!context) {\n        CGImageRelease(imageRef);\n\n        return image;\n    }\n\n    CGContextDrawImage(context, CGRectMake(0.0f, 0.0f, width, height), imageRef);\n    CGImageRef inflatedImageRef = CGBitmapContextCreateImage(context);\n\n    CGContextRelease(context);\n\n    UIImage *inflatedImage = [[UIImage alloc] initWithCGImage:inflatedImageRef scale:scale orientation:image.imageOrientation];\n\n    CGImageRelease(inflatedImageRef);\n    CGImageRelease(imageRef);\n\n    return inflatedImage;\n}\n#endif\n\n\n@implementation AFImageResponseSerializer\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@\"image/tiff\", @\"image/jpeg\", @\"image/gif\", @\"image/png\", @\"image/ico\", @\"image/x-icon\", @\"image/bmp\", @\"image/x-bmp\", @\"image/x-xbitmap\", @\"image/x-win-bitmap\", nil];\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n    self.imageScale = [[UIScreen mainScreen] scale];\n    self.automaticallyInflatesResponseImage = YES;\n#elif TARGET_OS_WATCH\n    self.imageScale = [[WKInterfaceDevice currentDevice] screenScale];\n    self.automaticallyInflatesResponseImage = YES;\n#endif\n\n    return self;\n}\n\n#pragma mark - AFURLResponseSerializer\n\n- (id)responseObjectForResponse:(NSURLResponse *)response\n                           data:(NSData *)data\n                          error:(NSError *__autoreleasing *)error\n{\n    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {\n        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {\n            return nil;\n        }\n    }\n\n#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH\n    if (self.automaticallyInflatesResponseImage) {\n        return AFInflatedImageFromResponseWithDataAtScale((NSHTTPURLResponse *)response, data, self.imageScale);\n    } else {\n        return AFImageWithDataAtScale(data, self.imageScale);\n    }\n#else\n    // Ensure that the image is set to it's correct pixel width and height\n    NSBitmapImageRep *bitimage = [[NSBitmapImageRep alloc] initWithData:data];\n    NSImage *image = [[NSImage alloc] initWithSize:NSMakeSize([bitimage pixelsWide], [bitimage pixelsHigh])];\n    [image addRepresentation:bitimage];\n\n    return image;\n#endif\n\n    return nil;\n}\n\n#pragma mark - NSSecureCoding\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [super initWithCoder:decoder];\n    if (!self) {\n        return nil;\n    }\n\n#if TARGET_OS_IOS  || TARGET_OS_TV || TARGET_OS_WATCH\n    NSNumber *imageScale = [decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(imageScale))];\n#if CGFLOAT_IS_DOUBLE\n    self.imageScale = [imageScale doubleValue];\n#else\n    self.imageScale = [imageScale floatValue];\n#endif\n\n    self.automaticallyInflatesResponseImage = [decoder decodeBoolForKey:NSStringFromSelector(@selector(automaticallyInflatesResponseImage))];\n#endif\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [super encodeWithCoder:coder];\n\n#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH\n    [coder encodeObject:@(self.imageScale) forKey:NSStringFromSelector(@selector(imageScale))];\n    [coder encodeBool:self.automaticallyInflatesResponseImage forKey:NSStringFromSelector(@selector(automaticallyInflatesResponseImage))];\n#endif\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFImageResponseSerializer *serializer = [[[self class] allocWithZone:zone] init];\n\n#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH\n    serializer.imageScale = self.imageScale;\n    serializer.automaticallyInflatesResponseImage = self.automaticallyInflatesResponseImage;\n#endif\n\n    return serializer;\n}\n\n@end\n\n#pragma mark -\n\n@interface AFCompoundResponseSerializer ()\n@property (readwrite, nonatomic, copy) NSArray *responseSerializers;\n@end\n\n@implementation AFCompoundResponseSerializer\n\n+ (instancetype)compoundSerializerWithResponseSerializers:(NSArray *)responseSerializers {\n    AFCompoundResponseSerializer *serializer = [[self alloc] init];\n    serializer.responseSerializers = responseSerializers;\n\n    return serializer;\n}\n\n#pragma mark - AFURLResponseSerialization\n\n- (id)responseObjectForResponse:(NSURLResponse *)response\n                           data:(NSData *)data\n                          error:(NSError *__autoreleasing *)error\n{\n    for (id <AFURLResponseSerialization> serializer in self.responseSerializers) {\n        if (![serializer isKindOfClass:[AFHTTPResponseSerializer class]]) {\n            continue;\n        }\n\n        NSError *serializerError = nil;\n        id responseObject = [serializer responseObjectForResponse:response data:data error:&serializerError];\n        if (responseObject) {\n            if (error) {\n                *error = AFErrorWithUnderlyingError(serializerError, *error);\n            }\n\n            return responseObject;\n        }\n    }\n\n    return [super responseObjectForResponse:response data:data error:error];\n}\n\n#pragma mark - NSSecureCoding\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    self = [super initWithCoder:decoder];\n    if (!self) {\n        return nil;\n    }\n\n    self.responseSerializers = [decoder decodeObjectOfClass:[NSArray class] forKey:NSStringFromSelector(@selector(responseSerializers))];\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [super encodeWithCoder:coder];\n\n    [coder encodeObject:self.responseSerializers forKey:NSStringFromSelector(@selector(responseSerializers))];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    AFCompoundResponseSerializer *serializer = [[[self class] allocWithZone:zone] init];\n    serializer.responseSerializers = self.responseSerializers;\n\n    return serializer;\n}\n\n@end\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFURLSessionManager.h",
    "content": "// AFURLSessionManager.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n\n#import <Foundation/Foundation.h>\n\n#import \"AFURLResponseSerialization.h\"\n#import \"AFURLRequestSerialization.h\"\n#import \"AFSecurityPolicy.h\"\n#if !TARGET_OS_WATCH\n#import \"AFNetworkReachabilityManager.h\"\n#endif\n\n/**\n `AFURLSessionManager` creates and manages an `NSURLSession` object based on a specified `NSURLSessionConfiguration` object, which conforms to `<NSURLSessionTaskDelegate>`, `<NSURLSessionDataDelegate>`, `<NSURLSessionDownloadDelegate>`, and `<NSURLSessionDelegate>`.\n\n ## Subclassing Notes\n\n This is the base class for `AFHTTPSessionManager`, which adds functionality specific to making HTTP requests. If you are looking to extend `AFURLSessionManager` specifically for HTTP, consider subclassing `AFHTTPSessionManager` instead.\n\n ## NSURLSession & NSURLSessionTask Delegate Methods\n\n `AFURLSessionManager` implements the following delegate methods:\n\n ### `NSURLSessionDelegate`\n\n - `URLSession:didBecomeInvalidWithError:`\n - `URLSession:didReceiveChallenge:completionHandler:`\n - `URLSessionDidFinishEventsForBackgroundURLSession:`\n\n ### `NSURLSessionTaskDelegate`\n\n - `URLSession:willPerformHTTPRedirection:newRequest:completionHandler:`\n - `URLSession:task:didReceiveChallenge:completionHandler:`\n - `URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:`\n - `URLSession:task:didCompleteWithError:`\n\n ### `NSURLSessionDataDelegate`\n\n - `URLSession:dataTask:didReceiveResponse:completionHandler:`\n - `URLSession:dataTask:didBecomeDownloadTask:`\n - `URLSession:dataTask:didReceiveData:`\n - `URLSession:dataTask:willCacheResponse:completionHandler:`\n\n ### `NSURLSessionDownloadDelegate`\n\n - `URLSession:downloadTask:didFinishDownloadingToURL:`\n - `URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesWritten:totalBytesExpectedToWrite:`\n - `URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:`\n\n If any of these methods are overridden in a subclass, they _must_ call the `super` implementation first.\n\n ## Network Reachability Monitoring\n\n Network reachability status and change monitoring is available through the `reachabilityManager` property. Applications may choose to monitor network reachability conditions in order to prevent or suspend any outbound requests. See `AFNetworkReachabilityManager` for more details.\n\n ## NSCoding Caveats\n\n - Encoded managers do not include any block properties. Be sure to set delegate callback blocks when using `-initWithCoder:` or `NSKeyedUnarchiver`.\n\n ## NSCopying Caveats\n\n - `-copy` and `-copyWithZone:` return a new manager with a new `NSURLSession` created from the configuration of the original.\n - Operation copies do not include any delegate callback blocks, as they often strongly captures a reference to `self`, which would otherwise have the unintuitive side-effect of pointing to the _original_ session manager when copied.\n\n @warning Managers for background sessions must be owned for the duration of their use. This can be accomplished by creating an application-wide or shared singleton instance.\n */\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AFURLSessionManager : NSObject <NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate, NSSecureCoding, NSCopying>\n\n/**\n The managed session.\n */\n@property (readonly, nonatomic, strong) NSURLSession *session;\n\n/**\n The operation queue on which delegate callbacks are run.\n */\n@property (readonly, nonatomic, strong) NSOperationQueue *operationQueue;\n\n/**\n Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to an instance of `AFJSONResponseSerializer`.\n\n @warning `responseSerializer` must not be `nil`.\n */\n@property (nonatomic, strong) id <AFURLResponseSerialization> responseSerializer;\n\n///-------------------------------\n/// @name Managing Security Policy\n///-------------------------------\n\n/**\n The security policy used by created session to evaluate server trust for secure connections. `AFURLSessionManager` uses the `defaultPolicy` unless otherwise specified.\n */\n@property (nonatomic, strong) AFSecurityPolicy *securityPolicy;\n\n#if !TARGET_OS_WATCH\n///--------------------------------------\n/// @name Monitoring Network Reachability\n///--------------------------------------\n\n/**\n The network reachability manager. `AFURLSessionManager` uses the `sharedManager` by default.\n */\n@property (readwrite, nonatomic, strong) AFNetworkReachabilityManager *reachabilityManager;\n#endif\n\n///----------------------------\n/// @name Getting Session Tasks\n///----------------------------\n\n/**\n The data, upload, and download tasks currently run by the managed session.\n */\n@property (readonly, nonatomic, strong) NSArray <NSURLSessionTask *> *tasks;\n\n/**\n The data tasks currently run by the managed session.\n */\n@property (readonly, nonatomic, strong) NSArray <NSURLSessionDataTask *> *dataTasks;\n\n/**\n The upload tasks currently run by the managed session.\n */\n@property (readonly, nonatomic, strong) NSArray <NSURLSessionUploadTask *> *uploadTasks;\n\n/**\n The download tasks currently run by the managed session.\n */\n@property (readonly, nonatomic, strong) NSArray <NSURLSessionDownloadTask *> *downloadTasks;\n\n///-------------------------------\n/// @name Managing Callback Queues\n///-------------------------------\n\n/**\n The dispatch queue for `completionBlock`. If `NULL` (default), the main queue is used.\n */\n@property (nonatomic, strong, nullable) dispatch_queue_t completionQueue;\n\n/**\n The dispatch group for `completionBlock`. If `NULL` (default), a private dispatch group is used.\n */\n@property (nonatomic, strong, nullable) dispatch_group_t completionGroup;\n\n///---------------------------------\n/// @name Working Around System Bugs\n///---------------------------------\n\n/**\n Whether to attempt to retry creation of upload tasks for background sessions when initial call returns `nil`. `NO` by default.\n\n @bug As of iOS 7.0, there is a bug where upload tasks created for background tasks are sometimes `nil`. As a workaround, if this property is `YES`, AFNetworking will follow Apple's recommendation to try creating the task again.\n\n @see https://github.com/AFNetworking/AFNetworking/issues/1675\n */\n@property (nonatomic, assign) BOOL attemptsToRecreateUploadTasksForBackgroundSessions;\n\n///---------------------\n/// @name Initialization\n///---------------------\n\n/**\n Creates and returns a manager for a session created with the specified configuration. This is the designated initializer.\n\n @param configuration The configuration used to create the managed session.\n\n @return A manager for a newly-created session.\n */\n- (instancetype)initWithSessionConfiguration:(nullable NSURLSessionConfiguration *)configuration NS_DESIGNATED_INITIALIZER;\n\n/**\n Invalidates the managed session, optionally canceling pending tasks.\n\n @param cancelPendingTasks Whether or not to cancel pending tasks.\n */\n- (void)invalidateSessionCancelingTasks:(BOOL)cancelPendingTasks;\n\n///-------------------------\n/// @name Running Data Tasks\n///-------------------------\n\n/**\n Creates an `NSURLSessionDataTask` with the specified request.\n\n @param request The HTTP request for the request.\n @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.\n */\n- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request\n                            completionHandler:(nullable void (^)(NSURLResponse *response, id _Nullable responseObject,  NSError * _Nullable error))completionHandler;\n\n/**\n Creates an `NSURLSessionDataTask` with the specified request.\n\n @param request The HTTP request for the request.\n @param uploadProgress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.\n @param downloadProgress A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.\n @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.\n */\n- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request\n                               uploadProgress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n                             downloadProgress:(nullable void (^)(NSProgress *downloadProgress)) downloadProgressBlock\n                            completionHandler:(nullable void (^)(NSURLResponse *response, id _Nullable responseObject,  NSError * _Nullable error))completionHandler;\n\n///---------------------------\n/// @name Running Upload Tasks\n///---------------------------\n\n/**\n Creates an `NSURLSessionUploadTask` with the specified request for a local file.\n\n @param request The HTTP request for the request.\n @param fileURL A URL to the local file to be uploaded.\n @param progress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.\n @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.\n\n @see `attemptsToRecreateUploadTasksForBackgroundSessions`\n */\n- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request\n                                         fromFile:(NSURL *)fileURL\n                                         progress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n                                completionHandler:(nullable void (^)(NSURLResponse *response, id _Nullable responseObject, NSError  * _Nullable error))completionHandler;\n\n/**\n Creates an `NSURLSessionUploadTask` with the specified request for an HTTP body.\n\n @param request The HTTP request for the request.\n @param bodyData A data object containing the HTTP body to be uploaded.\n @param progress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.\n @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.\n */\n- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request\n                                         fromData:(nullable NSData *)bodyData\n                                         progress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n                                completionHandler:(nullable void (^)(NSURLResponse *response, id _Nullable responseObject, NSError * _Nullable error))completionHandler;\n\n/**\n Creates an `NSURLSessionUploadTask` with the specified streaming request.\n\n @param request The HTTP request for the request.\n @param progress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.\n @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.\n */\n- (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request\n                                                 progress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n                                        completionHandler:(nullable void (^)(NSURLResponse *response, id _Nullable responseObject, NSError * _Nullable error))completionHandler;\n\n///-----------------------------\n/// @name Running Download Tasks\n///-----------------------------\n\n/**\n Creates an `NSURLSessionDownloadTask` with the specified request.\n\n @param request The HTTP request for the request.\n @param progress A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.\n @param destination A block object to be executed in order to determine the destination of the downloaded file. This block takes two arguments, the target path & the server response, and returns the desired file URL of the resulting download. The temporary file used during the download will be automatically deleted after being moved to the returned URL.\n @param completionHandler A block to be executed when a task finishes. This block has no return value and takes three arguments: the server response, the path of the downloaded file, and the error describing the network or parsing error that occurred, if any.\n\n @warning If using a background `NSURLSessionConfiguration` on iOS, these blocks will be lost when the app is terminated. Background sessions may prefer to use `-setDownloadTaskDidFinishDownloadingBlock:` to specify the URL for saving the downloaded file, rather than the destination block of this method.\n */\n- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request\n                                             progress:(nullable void (^)(NSProgress *downloadProgress)) downloadProgressBlock\n                                          destination:(nullable NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination\n                                    completionHandler:(nullable void (^)(NSURLResponse *response, NSURL * _Nullable filePath, NSError * _Nullable error))completionHandler;\n\n/**\n Creates an `NSURLSessionDownloadTask` with the specified resume data.\n\n @param resumeData The data used to resume downloading.\n @param progress A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.\n @param destination A block object to be executed in order to determine the destination of the downloaded file. This block takes two arguments, the target path & the server response, and returns the desired file URL of the resulting download. The temporary file used during the download will be automatically deleted after being moved to the returned URL.\n @param completionHandler A block to be executed when a task finishes. This block has no return value and takes three arguments: the server response, the path of the downloaded file, and the error describing the network or parsing error that occurred, if any.\n */\n- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData\n                                                progress:(nullable void (^)(NSProgress *downloadProgress)) downloadProgressBlock\n                                             destination:(nullable NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination\n                                       completionHandler:(nullable void (^)(NSURLResponse *response, NSURL * _Nullable filePath, NSError * _Nullable error))completionHandler;\n\n///---------------------------------\n/// @name Getting Progress for Tasks\n///---------------------------------\n\n/**\n Returns the upload progress of the specified task.\n\n @param task The session task. Must not be `nil`.\n\n @return An `NSProgress` object reporting the upload progress of a task, or `nil` if the progress is unavailable.\n */\n- (nullable NSProgress *)uploadProgressForTask:(NSURLSessionTask *)task;\n\n/**\n Returns the download progress of the specified task.\n\n @param task The session task. Must not be `nil`.\n\n @return An `NSProgress` object reporting the download progress of a task, or `nil` if the progress is unavailable.\n */\n- (nullable NSProgress *)downloadProgressForTask:(NSURLSessionTask *)task;\n\n///-----------------------------------------\n/// @name Setting Session Delegate Callbacks\n///-----------------------------------------\n\n/**\n Sets a block to be executed when the managed session becomes invalid, as handled by the `NSURLSessionDelegate` method `URLSession:didBecomeInvalidWithError:`.\n\n @param block A block object to be executed when the managed session becomes invalid. The block has no return value, and takes two arguments: the session, and the error related to the cause of invalidation.\n */\n- (void)setSessionDidBecomeInvalidBlock:(nullable void (^)(NSURLSession *session, NSError *error))block;\n\n/**\n Sets a block to be executed when a connection level authentication challenge has occurred, as handled by the `NSURLSessionDelegate` method `URLSession:didReceiveChallenge:completionHandler:`.\n\n @param block A block object to be executed when a connection level authentication challenge has occurred. The block returns the disposition of the authentication challenge, and takes three arguments: the session, the authentication challenge, and a pointer to the credential that should be used to resolve the challenge.\n */\n- (void)setSessionDidReceiveAuthenticationChallengeBlock:(nullable NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLAuthenticationChallenge *challenge, NSURLCredential * _Nullable __autoreleasing * _Nullable credential))block;\n\n///--------------------------------------\n/// @name Setting Task Delegate Callbacks\n///--------------------------------------\n\n/**\n Sets a block to be executed when a task requires a new request body stream to send to the remote server, as handled by the `NSURLSessionTaskDelegate` method `URLSession:task:needNewBodyStream:`.\n\n @param block A block object to be executed when a task requires a new request body stream.\n */\n- (void)setTaskNeedNewBodyStreamBlock:(nullable NSInputStream * (^)(NSURLSession *session, NSURLSessionTask *task))block;\n\n/**\n Sets a block to be executed when an HTTP request is attempting to perform a redirection to a different URL, as handled by the `NSURLSessionTaskDelegate` method `URLSession:willPerformHTTPRedirection:newRequest:completionHandler:`.\n\n @param block A block object to be executed when an HTTP request is attempting to perform a redirection to a different URL. The block returns the request to be made for the redirection, and takes four arguments: the session, the task, the redirection response, and the request corresponding to the redirection response.\n */\n- (void)setTaskWillPerformHTTPRedirectionBlock:(nullable NSURLRequest * (^)(NSURLSession *session, NSURLSessionTask *task, NSURLResponse *response, NSURLRequest *request))block;\n\n/**\n Sets a block to be executed when a session task has received a request specific authentication challenge, as handled by the `NSURLSessionTaskDelegate` method `URLSession:task:didReceiveChallenge:completionHandler:`.\n\n @param block A block object to be executed when a session task has received a request specific authentication challenge. The block returns the disposition of the authentication challenge, and takes four arguments: the session, the task, the authentication challenge, and a pointer to the credential that should be used to resolve the challenge.\n */\n- (void)setTaskDidReceiveAuthenticationChallengeBlock:(nullable NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLSessionTask *task, NSURLAuthenticationChallenge *challenge, NSURLCredential * _Nullable __autoreleasing * _Nullable credential))block;\n\n/**\n Sets a block to be executed periodically to track upload progress, as handled by the `NSURLSessionTaskDelegate` method `URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:`.\n\n @param block A block object to be called when an undetermined number of bytes have been uploaded to the server. This block has no return value and takes five arguments: the session, the task, the number of bytes written since the last time the upload progress block was called, the total bytes written, and the total bytes expected to be written during the request, as initially determined by the length of the HTTP body. This block may be called multiple times, and will execute on the main thread.\n */\n- (void)setTaskDidSendBodyDataBlock:(nullable void (^)(NSURLSession *session, NSURLSessionTask *task, int64_t bytesSent, int64_t totalBytesSent, int64_t totalBytesExpectedToSend))block;\n\n/**\n Sets a block to be executed as the last message related to a specific task, as handled by the `NSURLSessionTaskDelegate` method `URLSession:task:didCompleteWithError:`.\n\n @param block A block object to be executed when a session task is completed. The block has no return value, and takes three arguments: the session, the task, and any error that occurred in the process of executing the task.\n */\n- (void)setTaskDidCompleteBlock:(nullable void (^)(NSURLSession *session, NSURLSessionTask *task, NSError * _Nullable error))block;\n\n///-------------------------------------------\n/// @name Setting Data Task Delegate Callbacks\n///-------------------------------------------\n\n/**\n Sets a block to be executed when a data task has received a response, as handled by the `NSURLSessionDataDelegate` method `URLSession:dataTask:didReceiveResponse:completionHandler:`.\n\n @param block A block object to be executed when a data task has received a response. The block returns the disposition of the session response, and takes three arguments: the session, the data task, and the received response.\n */\n- (void)setDataTaskDidReceiveResponseBlock:(nullable NSURLSessionResponseDisposition (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLResponse *response))block;\n\n/**\n Sets a block to be executed when a data task has become a download task, as handled by the `NSURLSessionDataDelegate` method `URLSession:dataTask:didBecomeDownloadTask:`.\n\n @param block A block object to be executed when a data task has become a download task. The block has no return value, and takes three arguments: the session, the data task, and the download task it has become.\n */\n- (void)setDataTaskDidBecomeDownloadTaskBlock:(nullable void (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLSessionDownloadTask *downloadTask))block;\n\n/**\n Sets a block to be executed when a data task receives data, as handled by the `NSURLSessionDataDelegate` method `URLSession:dataTask:didReceiveData:`.\n\n @param block A block object to be called when an undetermined number of bytes have been downloaded from the server. This block has no return value and takes three arguments: the session, the data task, and the data received. This block may be called multiple times, and will execute on the session manager operation queue.\n */\n- (void)setDataTaskDidReceiveDataBlock:(nullable void (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSData *data))block;\n\n/**\n Sets a block to be executed to determine the caching behavior of a data task, as handled by the `NSURLSessionDataDelegate` method `URLSession:dataTask:willCacheResponse:completionHandler:`.\n\n @param block A block object to be executed to determine the caching behavior of a data task. The block returns the response to cache, and takes three arguments: the session, the data task, and the proposed cached URL response.\n */\n- (void)setDataTaskWillCacheResponseBlock:(nullable NSCachedURLResponse * (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSCachedURLResponse *proposedResponse))block;\n\n/**\n Sets a block to be executed once all messages enqueued for a session have been delivered, as handled by the `NSURLSessionDataDelegate` method `URLSessionDidFinishEventsForBackgroundURLSession:`.\n\n @param block A block object to be executed once all messages enqueued for a session have been delivered. The block has no return value and takes a single argument: the session.\n */\n- (void)setDidFinishEventsForBackgroundURLSessionBlock:(nullable void (^)(NSURLSession *session))block;\n\n///-----------------------------------------------\n/// @name Setting Download Task Delegate Callbacks\n///-----------------------------------------------\n\n/**\n Sets a block to be executed when a download task has completed a download, as handled by the `NSURLSessionDownloadDelegate` method `URLSession:downloadTask:didFinishDownloadingToURL:`.\n\n @param block A block object to be executed when a download task has completed. The block returns the URL the download should be moved to, and takes three arguments: the session, the download task, and the temporary location of the downloaded file. If the file manager encounters an error while attempting to move the temporary file to the destination, an `AFURLSessionDownloadTaskDidFailToMoveFileNotification` will be posted, with the download task as its object, and the user info of the error.\n */\n- (void)setDownloadTaskDidFinishDownloadingBlock:(nullable NSURL * _Nullable  (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, NSURL *location))block;\n\n/**\n Sets a block to be executed periodically to track download progress, as handled by the `NSURLSessionDownloadDelegate` method `URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesWritten:totalBytesExpectedToWrite:`.\n\n @param block A block object to be called when an undetermined number of bytes have been downloaded from the server. This block has no return value and takes five arguments: the session, the download task, the number of bytes read since the last time the download progress block was called, the total bytes read, and the total bytes expected to be read during the request, as initially determined by the expected content size of the `NSHTTPURLResponse` object. This block may be called multiple times, and will execute on the session manager operation queue.\n */\n- (void)setDownloadTaskDidWriteDataBlock:(nullable void (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite))block;\n\n/**\n Sets a block to be executed when a download task has been resumed, as handled by the `NSURLSessionDownloadDelegate` method `URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:`.\n\n @param block A block object to be executed when a download task has been resumed. The block has no return value and takes four arguments: the session, the download task, the file offset of the resumed download, and the total number of bytes expected to be downloaded.\n */\n- (void)setDownloadTaskDidResumeBlock:(nullable void (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t fileOffset, int64_t expectedTotalBytes))block;\n\n@end\n\n///--------------------\n/// @name Notifications\n///--------------------\n\n/**\n Posted when a task resumes.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingTaskDidResumeNotification;\n\n/**\n Posted when a task finishes executing. Includes a userInfo dictionary with additional information about the task.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingTaskDidCompleteNotification;\n\n/**\n Posted when a task suspends its execution.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingTaskDidSuspendNotification;\n\n/**\n Posted when a session is invalidated.\n */\nFOUNDATION_EXPORT NSString * const AFURLSessionDidInvalidateNotification;\n\n/**\n Posted when a session download task encountered an error when moving the temporary download file to a specified destination.\n */\nFOUNDATION_EXPORT NSString * const AFURLSessionDownloadTaskDidFailToMoveFileNotification;\n\n/**\n The raw response data of the task. Included in the userInfo dictionary of the `AFNetworkingTaskDidCompleteNotification` if response data exists for the task.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingTaskDidCompleteResponseDataKey;\n\n/**\n The serialized response object of the task. Included in the userInfo dictionary of the `AFNetworkingTaskDidCompleteNotification` if the response was serialized.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingTaskDidCompleteSerializedResponseKey;\n\n/**\n The response serializer used to serialize the response. Included in the userInfo dictionary of the `AFNetworkingTaskDidCompleteNotification` if the task has an associated response serializer.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingTaskDidCompleteResponseSerializerKey;\n\n/**\n The file path associated with the download task. Included in the userInfo dictionary of the `AFNetworkingTaskDidCompleteNotification` if an the response data has been stored directly to disk.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingTaskDidCompleteAssetPathKey;\n\n/**\n Any error associated with the task, or the serialization of the response. Included in the userInfo dictionary of the `AFNetworkingTaskDidCompleteNotification` if an error exists.\n */\nFOUNDATION_EXPORT NSString * const AFNetworkingTaskDidCompleteErrorKey;\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "Pods/AFNetworking/AFNetworking/AFURLSessionManager.m",
    "content": "// AFURLSessionManager.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"AFURLSessionManager.h\"\n#import <objc/runtime.h>\n\n#ifndef NSFoundationVersionNumber_iOS_8_0\n#define NSFoundationVersionNumber_With_Fixed_5871104061079552_bug 1140.11\n#else\n#define NSFoundationVersionNumber_With_Fixed_5871104061079552_bug NSFoundationVersionNumber_iOS_8_0\n#endif\n\nstatic dispatch_queue_t url_session_manager_creation_queue() {\n    static dispatch_queue_t af_url_session_manager_creation_queue;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        af_url_session_manager_creation_queue = dispatch_queue_create(\"com.alamofire.networking.session.manager.creation\", DISPATCH_QUEUE_SERIAL);\n    });\n\n    return af_url_session_manager_creation_queue;\n}\n\nstatic void url_session_manager_create_task_safely(dispatch_block_t block) {\n    if (NSFoundationVersionNumber < NSFoundationVersionNumber_With_Fixed_5871104061079552_bug) {\n        // Fix of bug\n        // Open Radar:http://openradar.appspot.com/radar?id=5871104061079552 (status: Fixed in iOS8)\n        // Issue about:https://github.com/AFNetworking/AFNetworking/issues/2093\n        dispatch_sync(url_session_manager_creation_queue(), block);\n    } else {\n        block();\n    }\n}\n\nstatic dispatch_queue_t url_session_manager_processing_queue() {\n    static dispatch_queue_t af_url_session_manager_processing_queue;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        af_url_session_manager_processing_queue = dispatch_queue_create(\"com.alamofire.networking.session.manager.processing\", DISPATCH_QUEUE_CONCURRENT);\n    });\n\n    return af_url_session_manager_processing_queue;\n}\n\nstatic dispatch_group_t url_session_manager_completion_group() {\n    static dispatch_group_t af_url_session_manager_completion_group;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        af_url_session_manager_completion_group = dispatch_group_create();\n    });\n\n    return af_url_session_manager_completion_group;\n}\n\nNSString * const AFNetworkingTaskDidResumeNotification = @\"com.alamofire.networking.task.resume\";\nNSString * const AFNetworkingTaskDidCompleteNotification = @\"com.alamofire.networking.task.complete\";\nNSString * const AFNetworkingTaskDidSuspendNotification = @\"com.alamofire.networking.task.suspend\";\nNSString * const AFURLSessionDidInvalidateNotification = @\"com.alamofire.networking.session.invalidate\";\nNSString * const AFURLSessionDownloadTaskDidFailToMoveFileNotification = @\"com.alamofire.networking.session.download.file-manager-error\";\n\nNSString * const AFNetworkingTaskDidCompleteSerializedResponseKey = @\"com.alamofire.networking.task.complete.serializedresponse\";\nNSString * const AFNetworkingTaskDidCompleteResponseSerializerKey = @\"com.alamofire.networking.task.complete.responseserializer\";\nNSString * const AFNetworkingTaskDidCompleteResponseDataKey = @\"com.alamofire.networking.complete.finish.responsedata\";\nNSString * const AFNetworkingTaskDidCompleteErrorKey = @\"com.alamofire.networking.task.complete.error\";\nNSString * const AFNetworkingTaskDidCompleteAssetPathKey = @\"com.alamofire.networking.task.complete.assetpath\";\n\nstatic NSString * const AFURLSessionManagerLockName = @\"com.alamofire.networking.session.manager.lock\";\n\nstatic NSUInteger const AFMaximumNumberOfAttemptsToRecreateBackgroundSessionUploadTask = 3;\n\nstatic void * AFTaskStateChangedContext = &AFTaskStateChangedContext;\n\ntypedef void (^AFURLSessionDidBecomeInvalidBlock)(NSURLSession *session, NSError *error);\ntypedef NSURLSessionAuthChallengeDisposition (^AFURLSessionDidReceiveAuthenticationChallengeBlock)(NSURLSession *session, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential);\n\ntypedef NSURLRequest * (^AFURLSessionTaskWillPerformHTTPRedirectionBlock)(NSURLSession *session, NSURLSessionTask *task, NSURLResponse *response, NSURLRequest *request);\ntypedef NSURLSessionAuthChallengeDisposition (^AFURLSessionTaskDidReceiveAuthenticationChallengeBlock)(NSURLSession *session, NSURLSessionTask *task, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential);\ntypedef void (^AFURLSessionDidFinishEventsForBackgroundURLSessionBlock)(NSURLSession *session);\n\ntypedef NSInputStream * (^AFURLSessionTaskNeedNewBodyStreamBlock)(NSURLSession *session, NSURLSessionTask *task);\ntypedef void (^AFURLSessionTaskDidSendBodyDataBlock)(NSURLSession *session, NSURLSessionTask *task, int64_t bytesSent, int64_t totalBytesSent, int64_t totalBytesExpectedToSend);\ntypedef void (^AFURLSessionTaskDidCompleteBlock)(NSURLSession *session, NSURLSessionTask *task, NSError *error);\n\ntypedef NSURLSessionResponseDisposition (^AFURLSessionDataTaskDidReceiveResponseBlock)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLResponse *response);\ntypedef void (^AFURLSessionDataTaskDidBecomeDownloadTaskBlock)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLSessionDownloadTask *downloadTask);\ntypedef void (^AFURLSessionDataTaskDidReceiveDataBlock)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSData *data);\ntypedef NSCachedURLResponse * (^AFURLSessionDataTaskWillCacheResponseBlock)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSCachedURLResponse *proposedResponse);\n\ntypedef NSURL * (^AFURLSessionDownloadTaskDidFinishDownloadingBlock)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, NSURL *location);\ntypedef void (^AFURLSessionDownloadTaskDidWriteDataBlock)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite);\ntypedef void (^AFURLSessionDownloadTaskDidResumeBlock)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t fileOffset, int64_t expectedTotalBytes);\ntypedef void (^AFURLSessionTaskProgressBlock)(NSProgress *);\n\ntypedef void (^AFURLSessionTaskCompletionHandler)(NSURLResponse *response, id responseObject, NSError *error);\n\n\n#pragma mark -\n\n@interface AFURLSessionManagerTaskDelegate : NSObject <NSURLSessionTaskDelegate, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate>\n@property (nonatomic, weak) AFURLSessionManager *manager;\n@property (nonatomic, strong) NSMutableData *mutableData;\n@property (nonatomic, strong) NSProgress *uploadProgress;\n@property (nonatomic, strong) NSProgress *downloadProgress;\n@property (nonatomic, copy) NSURL *downloadFileURL;\n@property (nonatomic, copy) AFURLSessionDownloadTaskDidFinishDownloadingBlock downloadTaskDidFinishDownloading;\n@property (nonatomic, copy) AFURLSessionTaskProgressBlock uploadProgressBlock;\n@property (nonatomic, copy) AFURLSessionTaskProgressBlock downloadProgressBlock;\n@property (nonatomic, copy) AFURLSessionTaskCompletionHandler completionHandler;\n@end\n\n@implementation AFURLSessionManagerTaskDelegate\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    self.mutableData = [NSMutableData data];\n    self.uploadProgress = [[NSProgress alloc] initWithParent:nil userInfo:nil];\n    self.uploadProgress.totalUnitCount = NSURLSessionTransferSizeUnknown;\n\n    self.downloadProgress = [[NSProgress alloc] initWithParent:nil userInfo:nil];\n    self.downloadProgress.totalUnitCount = NSURLSessionTransferSizeUnknown;\n    return self;\n}\n\n#pragma mark - NSProgress Tracking\n\n- (void)setupProgressForTask:(NSURLSessionTask *)task {\n    __weak __typeof__(task) weakTask = task;\n\n    self.uploadProgress.totalUnitCount = task.countOfBytesExpectedToSend;\n    self.downloadProgress.totalUnitCount = task.countOfBytesExpectedToReceive;\n    [self.uploadProgress setCancellable:YES];\n    [self.uploadProgress setCancellationHandler:^{\n        __typeof__(weakTask) strongTask = weakTask;\n        [strongTask cancel];\n    }];\n    [self.uploadProgress setPausable:YES];\n    [self.uploadProgress setPausingHandler:^{\n        __typeof__(weakTask) strongTask = weakTask;\n        [strongTask suspend];\n    }];\n    if ([self.uploadProgress respondsToSelector:@selector(setResumingHandler:)]) {\n        [self.uploadProgress setResumingHandler:^{\n            __typeof__(weakTask) strongTask = weakTask;\n            [strongTask resume];\n        }];\n    }\n\n    [self.downloadProgress setCancellable:YES];\n    [self.downloadProgress setCancellationHandler:^{\n        __typeof__(weakTask) strongTask = weakTask;\n        [strongTask cancel];\n    }];\n    [self.downloadProgress setPausable:YES];\n    [self.downloadProgress setPausingHandler:^{\n        __typeof__(weakTask) strongTask = weakTask;\n        [strongTask suspend];\n    }];\n\n    if ([self.downloadProgress respondsToSelector:@selector(setResumingHandler:)]) {\n        [self.downloadProgress setResumingHandler:^{\n            __typeof__(weakTask) strongTask = weakTask;\n            [strongTask resume];\n        }];\n    }\n\n    [task addObserver:self\n           forKeyPath:NSStringFromSelector(@selector(countOfBytesReceived))\n              options:NSKeyValueObservingOptionNew\n              context:NULL];\n    [task addObserver:self\n           forKeyPath:NSStringFromSelector(@selector(countOfBytesExpectedToReceive))\n              options:NSKeyValueObservingOptionNew\n              context:NULL];\n\n    [task addObserver:self\n           forKeyPath:NSStringFromSelector(@selector(countOfBytesSent))\n              options:NSKeyValueObservingOptionNew\n              context:NULL];\n    [task addObserver:self\n           forKeyPath:NSStringFromSelector(@selector(countOfBytesExpectedToSend))\n              options:NSKeyValueObservingOptionNew\n              context:NULL];\n\n    [self.downloadProgress addObserver:self\n                            forKeyPath:NSStringFromSelector(@selector(fractionCompleted))\n                               options:NSKeyValueObservingOptionNew\n                               context:NULL];\n    [self.uploadProgress addObserver:self\n                          forKeyPath:NSStringFromSelector(@selector(fractionCompleted))\n                             options:NSKeyValueObservingOptionNew\n                             context:NULL];\n}\n\n- (void)cleanUpProgressForTask:(NSURLSessionTask *)task {\n    [task removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesReceived))];\n    [task removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesExpectedToReceive))];\n    [task removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesSent))];\n    [task removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesExpectedToSend))];\n    [self.downloadProgress removeObserver:self forKeyPath:NSStringFromSelector(@selector(fractionCompleted))];\n    [self.uploadProgress removeObserver:self forKeyPath:NSStringFromSelector(@selector(fractionCompleted))];\n}\n\n- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSString *,id> *)change context:(void *)context {\n    if ([object isKindOfClass:[NSURLSessionTask class]]) {\n        if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesReceived))]) {\n            self.downloadProgress.completedUnitCount = [change[@\"new\"] longLongValue];\n        } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesExpectedToReceive))]) {\n            self.downloadProgress.totalUnitCount = [change[@\"new\"] longLongValue];\n        } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesSent))]) {\n            self.uploadProgress.completedUnitCount = [change[@\"new\"] longLongValue];\n        } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesExpectedToSend))]) {\n            self.uploadProgress.totalUnitCount = [change[@\"new\"] longLongValue];\n        }\n    }\n    else if ([object isEqual:self.downloadProgress]) {\n        if (self.downloadProgressBlock) {\n            self.downloadProgressBlock(object);\n        }\n    }\n    else if ([object isEqual:self.uploadProgress]) {\n        if (self.uploadProgressBlock) {\n            self.uploadProgressBlock(object);\n        }\n    }\n}\n\n#pragma mark - NSURLSessionTaskDelegate\n\n- (void)URLSession:(__unused NSURLSession *)session\n              task:(NSURLSessionTask *)task\ndidCompleteWithError:(NSError *)error\n{\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n    __strong AFURLSessionManager *manager = self.manager;\n\n    __block id responseObject = nil;\n\n    __block NSMutableDictionary *userInfo = [NSMutableDictionary dictionary];\n    userInfo[AFNetworkingTaskDidCompleteResponseSerializerKey] = manager.responseSerializer;\n\n    //Performance Improvement from #2672\n    NSData *data = nil;\n    if (self.mutableData) {\n        data = [self.mutableData copy];\n        //We no longer need the reference, so nil it out to gain back some memory.\n        self.mutableData = nil;\n    }\n\n    if (self.downloadFileURL) {\n        userInfo[AFNetworkingTaskDidCompleteAssetPathKey] = self.downloadFileURL;\n    } else if (data) {\n        userInfo[AFNetworkingTaskDidCompleteResponseDataKey] = data;\n    }\n\n    if (error) {\n        userInfo[AFNetworkingTaskDidCompleteErrorKey] = error;\n\n        dispatch_group_async(manager.completionGroup ?: url_session_manager_completion_group(), manager.completionQueue ?: dispatch_get_main_queue(), ^{\n            if (self.completionHandler) {\n                self.completionHandler(task.response, responseObject, error);\n            }\n\n            dispatch_async(dispatch_get_main_queue(), ^{\n                [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingTaskDidCompleteNotification object:task userInfo:userInfo];\n            });\n        });\n    } else {\n        dispatch_async(url_session_manager_processing_queue(), ^{\n            NSError *serializationError = nil;\n            responseObject = [manager.responseSerializer responseObjectForResponse:task.response data:data error:&serializationError];\n\n            if (self.downloadFileURL) {\n                responseObject = self.downloadFileURL;\n            }\n\n            if (responseObject) {\n                userInfo[AFNetworkingTaskDidCompleteSerializedResponseKey] = responseObject;\n            }\n\n            if (serializationError) {\n                userInfo[AFNetworkingTaskDidCompleteErrorKey] = serializationError;\n            }\n\n            dispatch_group_async(manager.completionGroup ?: url_session_manager_completion_group(), manager.completionQueue ?: dispatch_get_main_queue(), ^{\n                if (self.completionHandler) {\n                    self.completionHandler(task.response, responseObject, serializationError);\n                }\n\n                dispatch_async(dispatch_get_main_queue(), ^{\n                    [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingTaskDidCompleteNotification object:task userInfo:userInfo];\n                });\n            });\n        });\n    }\n#pragma clang diagnostic pop\n}\n\n#pragma mark - NSURLSessionDataTaskDelegate\n\n- (void)URLSession:(__unused NSURLSession *)session\n          dataTask:(__unused NSURLSessionDataTask *)dataTask\n    didReceiveData:(NSData *)data\n{\n    [self.mutableData appendData:data];\n}\n\n#pragma mark - NSURLSessionDownloadTaskDelegate\n\n- (void)URLSession:(NSURLSession *)session\n      downloadTask:(NSURLSessionDownloadTask *)downloadTask\ndidFinishDownloadingToURL:(NSURL *)location\n{\n    NSError *fileManagerError = nil;\n    self.downloadFileURL = nil;\n\n    if (self.downloadTaskDidFinishDownloading) {\n        self.downloadFileURL = self.downloadTaskDidFinishDownloading(session, downloadTask, location);\n        if (self.downloadFileURL) {\n            [[NSFileManager defaultManager] moveItemAtURL:location toURL:self.downloadFileURL error:&fileManagerError];\n\n            if (fileManagerError) {\n                [[NSNotificationCenter defaultCenter] postNotificationName:AFURLSessionDownloadTaskDidFailToMoveFileNotification object:downloadTask userInfo:fileManagerError.userInfo];\n            }\n        }\n    }\n}\n\n@end\n\n#pragma mark -\n\n/**\n *  A workaround for issues related to key-value observing the `state` of an `NSURLSessionTask`.\n *\n *  See:\n *  - https://github.com/AFNetworking/AFNetworking/issues/1477\n *  - https://github.com/AFNetworking/AFNetworking/issues/2638\n *  - https://github.com/AFNetworking/AFNetworking/pull/2702\n */\n\nstatic inline void af_swizzleSelector(Class theClass, SEL originalSelector, SEL swizzledSelector) {\n    Method originalMethod = class_getInstanceMethod(theClass, originalSelector);\n    Method swizzledMethod = class_getInstanceMethod(theClass, swizzledSelector);\n    method_exchangeImplementations(originalMethod, swizzledMethod);\n}\n\nstatic inline BOOL af_addMethod(Class theClass, SEL selector, Method method) {\n    return class_addMethod(theClass, selector,  method_getImplementation(method),  method_getTypeEncoding(method));\n}\n\nstatic NSString * const AFNSURLSessionTaskDidResumeNotification  = @\"com.alamofire.networking.nsurlsessiontask.resume\";\nstatic NSString * const AFNSURLSessionTaskDidSuspendNotification = @\"com.alamofire.networking.nsurlsessiontask.suspend\";\n\n@interface _AFURLSessionTaskSwizzling : NSObject\n\n@end\n\n@implementation _AFURLSessionTaskSwizzling\n\n+ (void)load {\n    /**\n     WARNING: Trouble Ahead\n     https://github.com/AFNetworking/AFNetworking/pull/2702\n     */\n\n    if (NSClassFromString(@\"NSURLSessionTask\")) {\n        /**\n         iOS 7 and iOS 8 differ in NSURLSessionTask implementation, which makes the next bit of code a bit tricky.\n         Many Unit Tests have been built to validate as much of this behavior has possible.\n         Here is what we know:\n            - NSURLSessionTasks are implemented with class clusters, meaning the class you request from the API isn't actually the type of class you will get back.\n            - Simply referencing `[NSURLSessionTask class]` will not work. You need to ask an `NSURLSession` to actually create an object, and grab the class from there.\n            - On iOS 7, `localDataTask` is a `__NSCFLocalDataTask`, which inherits from `__NSCFLocalSessionTask`, which inherits from `__NSCFURLSessionTask`.\n            - On iOS 8, `localDataTask` is a `__NSCFLocalDataTask`, which inherits from `__NSCFLocalSessionTask`, which inherits from `NSURLSessionTask`.\n            - On iOS 7, `__NSCFLocalSessionTask` and `__NSCFURLSessionTask` are the only two classes that have their own implementations of `resume` and `suspend`, and `__NSCFLocalSessionTask` DOES NOT CALL SUPER. This means both classes need to be swizzled.\n            - On iOS 8, `NSURLSessionTask` is the only class that implements `resume` and `suspend`. This means this is the only class that needs to be swizzled.\n            - Because `NSURLSessionTask` is not involved in the class hierarchy for every version of iOS, its easier to add the swizzled methods to a dummy class and manage them there.\n        \n         Some Assumptions:\n            - No implementations of `resume` or `suspend` call super. If this were to change in a future version of iOS, we'd need to handle it.\n            - No background task classes override `resume` or `suspend`\n         \n         The current solution:\n            1) Grab an instance of `__NSCFLocalDataTask` by asking an instance of `NSURLSession` for a data task.\n            2) Grab a pointer to the original implementation of `af_resume`\n            3) Check to see if the current class has an implementation of resume. If so, continue to step 4.\n            4) Grab the super class of the current class.\n            5) Grab a pointer for the current class to the current implementation of `resume`.\n            6) Grab a pointer for the super class to the current implementation of `resume`.\n            7) If the current class implementation of `resume` is not equal to the super class implementation of `resume` AND the current implementation of `resume` is not equal to the original implementation of `af_resume`, THEN swizzle the methods\n            8) Set the current class to the super class, and repeat steps 3-8\n         */\n        NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration ephemeralSessionConfiguration];\n        NSURLSession * session = [NSURLSession sessionWithConfiguration:configuration];\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wnonnull\"\n        NSURLSessionDataTask *localDataTask = [session dataTaskWithURL:nil];\n#pragma clang diagnostic pop\n        IMP originalAFResumeIMP = method_getImplementation(class_getInstanceMethod([self class], @selector(af_resume)));\n        Class currentClass = [localDataTask class];\n        \n        while (class_getInstanceMethod(currentClass, @selector(resume))) {\n            Class superClass = [currentClass superclass];\n            IMP classResumeIMP = method_getImplementation(class_getInstanceMethod(currentClass, @selector(resume)));\n            IMP superclassResumeIMP = method_getImplementation(class_getInstanceMethod(superClass, @selector(resume)));\n            if (classResumeIMP != superclassResumeIMP &&\n                originalAFResumeIMP != classResumeIMP) {\n                [self swizzleResumeAndSuspendMethodForClass:currentClass];\n            }\n            currentClass = [currentClass superclass];\n        }\n        \n        [localDataTask cancel];\n        [session finishTasksAndInvalidate];\n    }\n}\n\n+ (void)swizzleResumeAndSuspendMethodForClass:(Class)theClass {\n    Method afResumeMethod = class_getInstanceMethod(self, @selector(af_resume));\n    Method afSuspendMethod = class_getInstanceMethod(self, @selector(af_suspend));\n\n    if (af_addMethod(theClass, @selector(af_resume), afResumeMethod)) {\n        af_swizzleSelector(theClass, @selector(resume), @selector(af_resume));\n    }\n\n    if (af_addMethod(theClass, @selector(af_suspend), afSuspendMethod)) {\n        af_swizzleSelector(theClass, @selector(suspend), @selector(af_suspend));\n    }\n}\n\n- (NSURLSessionTaskState)state {\n    NSAssert(NO, @\"State method should never be called in the actual dummy class\");\n    return NSURLSessionTaskStateCanceling;\n}\n\n- (void)af_resume {\n    NSAssert([self respondsToSelector:@selector(state)], @\"Does not respond to state\");\n    NSURLSessionTaskState state = [self state];\n    [self af_resume];\n    \n    if (state != NSURLSessionTaskStateRunning) {\n        [[NSNotificationCenter defaultCenter] postNotificationName:AFNSURLSessionTaskDidResumeNotification object:self];\n    }\n}\n\n- (void)af_suspend {\n    NSAssert([self respondsToSelector:@selector(state)], @\"Does not respond to state\");\n    NSURLSessionTaskState state = [self state];\n    [self af_suspend];\n    \n    if (state != NSURLSessionTaskStateSuspended) {\n        [[NSNotificationCenter defaultCenter] postNotificationName:AFNSURLSessionTaskDidSuspendNotification object:self];\n    }\n}\n@end\n\n#pragma mark -\n\n@interface AFURLSessionManager ()\n@property (readwrite, nonatomic, strong) NSURLSessionConfiguration *sessionConfiguration;\n@property (readwrite, nonatomic, strong) NSOperationQueue *operationQueue;\n@property (readwrite, nonatomic, strong) NSURLSession *session;\n@property (readwrite, nonatomic, strong) NSMutableDictionary *mutableTaskDelegatesKeyedByTaskIdentifier;\n@property (readonly, nonatomic, copy) NSString *taskDescriptionForSessionTasks;\n@property (readwrite, nonatomic, strong) NSLock *lock;\n@property (readwrite, nonatomic, copy) AFURLSessionDidBecomeInvalidBlock sessionDidBecomeInvalid;\n@property (readwrite, nonatomic, copy) AFURLSessionDidReceiveAuthenticationChallengeBlock sessionDidReceiveAuthenticationChallenge;\n@property (readwrite, nonatomic, copy) AFURLSessionDidFinishEventsForBackgroundURLSessionBlock didFinishEventsForBackgroundURLSession;\n@property (readwrite, nonatomic, copy) AFURLSessionTaskWillPerformHTTPRedirectionBlock taskWillPerformHTTPRedirection;\n@property (readwrite, nonatomic, copy) AFURLSessionTaskDidReceiveAuthenticationChallengeBlock taskDidReceiveAuthenticationChallenge;\n@property (readwrite, nonatomic, copy) AFURLSessionTaskNeedNewBodyStreamBlock taskNeedNewBodyStream;\n@property (readwrite, nonatomic, copy) AFURLSessionTaskDidSendBodyDataBlock taskDidSendBodyData;\n@property (readwrite, nonatomic, copy) AFURLSessionTaskDidCompleteBlock taskDidComplete;\n@property (readwrite, nonatomic, copy) AFURLSessionDataTaskDidReceiveResponseBlock dataTaskDidReceiveResponse;\n@property (readwrite, nonatomic, copy) AFURLSessionDataTaskDidBecomeDownloadTaskBlock dataTaskDidBecomeDownloadTask;\n@property (readwrite, nonatomic, copy) AFURLSessionDataTaskDidReceiveDataBlock dataTaskDidReceiveData;\n@property (readwrite, nonatomic, copy) AFURLSessionDataTaskWillCacheResponseBlock dataTaskWillCacheResponse;\n@property (readwrite, nonatomic, copy) AFURLSessionDownloadTaskDidFinishDownloadingBlock downloadTaskDidFinishDownloading;\n@property (readwrite, nonatomic, copy) AFURLSessionDownloadTaskDidWriteDataBlock downloadTaskDidWriteData;\n@property (readwrite, nonatomic, copy) AFURLSessionDownloadTaskDidResumeBlock downloadTaskDidResume;\n@end\n\n@implementation AFURLSessionManager\n\n- (instancetype)init {\n    return [self initWithSessionConfiguration:nil];\n}\n\n- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n\n    if (!configuration) {\n        configuration = [NSURLSessionConfiguration defaultSessionConfiguration];\n    }\n\n    self.sessionConfiguration = configuration;\n\n    self.operationQueue = [[NSOperationQueue alloc] init];\n    self.operationQueue.maxConcurrentOperationCount = 1;\n\n    self.session = [NSURLSession sessionWithConfiguration:self.sessionConfiguration delegate:self delegateQueue:self.operationQueue];\n\n    self.responseSerializer = [AFJSONResponseSerializer serializer];\n\n    self.securityPolicy = [AFSecurityPolicy defaultPolicy];\n\n#if !TARGET_OS_WATCH\n    self.reachabilityManager = [AFNetworkReachabilityManager sharedManager];\n#endif\n\n    self.mutableTaskDelegatesKeyedByTaskIdentifier = [[NSMutableDictionary alloc] init];\n\n    self.lock = [[NSLock alloc] init];\n    self.lock.name = AFURLSessionManagerLockName;\n\n    [self.session getTasksWithCompletionHandler:^(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks) {\n        for (NSURLSessionDataTask *task in dataTasks) {\n            [self addDelegateForDataTask:task uploadProgress:nil downloadProgress:nil completionHandler:nil];\n        }\n\n        for (NSURLSessionUploadTask *uploadTask in uploadTasks) {\n            [self addDelegateForUploadTask:uploadTask progress:nil completionHandler:nil];\n        }\n\n        for (NSURLSessionDownloadTask *downloadTask in downloadTasks) {\n            [self addDelegateForDownloadTask:downloadTask progress:nil destination:nil completionHandler:nil];\n        }\n    }];\n\n    return self;\n}\n\n- (void)dealloc {\n    [[NSNotificationCenter defaultCenter] removeObserver:self];\n}\n\n#pragma mark -\n\n- (NSString *)taskDescriptionForSessionTasks {\n    return [NSString stringWithFormat:@\"%p\", self];\n}\n\n- (void)taskDidResume:(NSNotification *)notification {\n    NSURLSessionTask *task = notification.object;\n    if ([task respondsToSelector:@selector(taskDescription)]) {\n        if ([task.taskDescription isEqualToString:self.taskDescriptionForSessionTasks]) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingTaskDidResumeNotification object:task];\n            });\n        }\n    }\n}\n\n- (void)taskDidSuspend:(NSNotification *)notification {\n    NSURLSessionTask *task = notification.object;\n    if ([task respondsToSelector:@selector(taskDescription)]) {\n        if ([task.taskDescription isEqualToString:self.taskDescriptionForSessionTasks]) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingTaskDidSuspendNotification object:task];\n            });\n        }\n    }\n}\n\n#pragma mark -\n\n- (AFURLSessionManagerTaskDelegate *)delegateForTask:(NSURLSessionTask *)task {\n    NSParameterAssert(task);\n\n    AFURLSessionManagerTaskDelegate *delegate = nil;\n    [self.lock lock];\n    delegate = self.mutableTaskDelegatesKeyedByTaskIdentifier[@(task.taskIdentifier)];\n    [self.lock unlock];\n\n    return delegate;\n}\n\n- (void)setDelegate:(AFURLSessionManagerTaskDelegate *)delegate\n            forTask:(NSURLSessionTask *)task\n{\n    NSParameterAssert(task);\n    NSParameterAssert(delegate);\n\n    [self.lock lock];\n    self.mutableTaskDelegatesKeyedByTaskIdentifier[@(task.taskIdentifier)] = delegate;\n    [delegate setupProgressForTask:task];\n    [self addNotificationObserverForTask:task];\n    [self.lock unlock];\n}\n\n- (void)addDelegateForDataTask:(NSURLSessionDataTask *)dataTask\n                uploadProgress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n              downloadProgress:(nullable void (^)(NSProgress *downloadProgress)) downloadProgressBlock\n             completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler\n{\n    AFURLSessionManagerTaskDelegate *delegate = [[AFURLSessionManagerTaskDelegate alloc] init];\n    delegate.manager = self;\n    delegate.completionHandler = completionHandler;\n\n    dataTask.taskDescription = self.taskDescriptionForSessionTasks;\n    [self setDelegate:delegate forTask:dataTask];\n\n    delegate.uploadProgressBlock = uploadProgressBlock;\n    delegate.downloadProgressBlock = downloadProgressBlock;\n}\n\n- (void)addDelegateForUploadTask:(NSURLSessionUploadTask *)uploadTask\n                        progress:(void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n               completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler\n{\n    AFURLSessionManagerTaskDelegate *delegate = [[AFURLSessionManagerTaskDelegate alloc] init];\n    delegate.manager = self;\n    delegate.completionHandler = completionHandler;\n\n    uploadTask.taskDescription = self.taskDescriptionForSessionTasks;\n\n    [self setDelegate:delegate forTask:uploadTask];\n\n    delegate.uploadProgressBlock = uploadProgressBlock;\n}\n\n- (void)addDelegateForDownloadTask:(NSURLSessionDownloadTask *)downloadTask\n                          progress:(void (^)(NSProgress *downloadProgress)) downloadProgressBlock\n                       destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination\n                 completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler\n{\n    AFURLSessionManagerTaskDelegate *delegate = [[AFURLSessionManagerTaskDelegate alloc] init];\n    delegate.manager = self;\n    delegate.completionHandler = completionHandler;\n\n    if (destination) {\n        delegate.downloadTaskDidFinishDownloading = ^NSURL * (NSURLSession * __unused session, NSURLSessionDownloadTask *task, NSURL *location) {\n            return destination(location, task.response);\n        };\n    }\n\n    downloadTask.taskDescription = self.taskDescriptionForSessionTasks;\n\n    [self setDelegate:delegate forTask:downloadTask];\n\n    delegate.downloadProgressBlock = downloadProgressBlock;\n}\n\n- (void)removeDelegateForTask:(NSURLSessionTask *)task {\n    NSParameterAssert(task);\n\n    AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:task];\n    [self.lock lock];\n    [delegate cleanUpProgressForTask:task];\n    [self removeNotificationObserverForTask:task];\n    [self.mutableTaskDelegatesKeyedByTaskIdentifier removeObjectForKey:@(task.taskIdentifier)];\n    [self.lock unlock];\n}\n\n#pragma mark -\n\n- (NSArray *)tasksForKeyPath:(NSString *)keyPath {\n    __block NSArray *tasks = nil;\n    dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);\n    [self.session getTasksWithCompletionHandler:^(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks) {\n        if ([keyPath isEqualToString:NSStringFromSelector(@selector(dataTasks))]) {\n            tasks = dataTasks;\n        } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(uploadTasks))]) {\n            tasks = uploadTasks;\n        } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(downloadTasks))]) {\n            tasks = downloadTasks;\n        } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(tasks))]) {\n            tasks = [@[dataTasks, uploadTasks, downloadTasks] valueForKeyPath:@\"@unionOfArrays.self\"];\n        }\n\n        dispatch_semaphore_signal(semaphore);\n    }];\n\n    dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);\n\n    return tasks;\n}\n\n- (NSArray *)tasks {\n    return [self tasksForKeyPath:NSStringFromSelector(_cmd)];\n}\n\n- (NSArray *)dataTasks {\n    return [self tasksForKeyPath:NSStringFromSelector(_cmd)];\n}\n\n- (NSArray *)uploadTasks {\n    return [self tasksForKeyPath:NSStringFromSelector(_cmd)];\n}\n\n- (NSArray *)downloadTasks {\n    return [self tasksForKeyPath:NSStringFromSelector(_cmd)];\n}\n\n#pragma mark -\n\n- (void)invalidateSessionCancelingTasks:(BOOL)cancelPendingTasks {\n    dispatch_async(dispatch_get_main_queue(), ^{\n        if (cancelPendingTasks) {\n            [self.session invalidateAndCancel];\n        } else {\n            [self.session finishTasksAndInvalidate];\n        }\n    });\n}\n\n#pragma mark -\n\n- (void)setResponseSerializer:(id <AFURLResponseSerialization>)responseSerializer {\n    NSParameterAssert(responseSerializer);\n\n    _responseSerializer = responseSerializer;\n}\n\n#pragma mark -\n- (void)addNotificationObserverForTask:(NSURLSessionTask *)task {\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(taskDidResume:) name:AFNSURLSessionTaskDidResumeNotification object:task];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(taskDidSuspend:) name:AFNSURLSessionTaskDidSuspendNotification object:task];\n}\n\n- (void)removeNotificationObserverForTask:(NSURLSessionTask *)task {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:AFNSURLSessionTaskDidSuspendNotification object:task];\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:AFNSURLSessionTaskDidResumeNotification object:task];\n}\n\n#pragma mark -\n\n- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request\n                            completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler\n{\n    return [self dataTaskWithRequest:request uploadProgress:nil downloadProgress:nil completionHandler:completionHandler];\n}\n\n- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request\n                               uploadProgress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n                             downloadProgress:(nullable void (^)(NSProgress *downloadProgress)) downloadProgressBlock\n                            completionHandler:(nullable void (^)(NSURLResponse *response, id _Nullable responseObject,  NSError * _Nullable error))completionHandler {\n\n    __block NSURLSessionDataTask *dataTask = nil;\n    url_session_manager_create_task_safely(^{\n        dataTask = [self.session dataTaskWithRequest:request];\n    });\n\n    [self addDelegateForDataTask:dataTask uploadProgress:uploadProgressBlock downloadProgress:downloadProgressBlock completionHandler:completionHandler];\n\n    return dataTask;\n}\n\n#pragma mark -\n\n- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request\n                                         fromFile:(NSURL *)fileURL\n                                         progress:(void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n                                completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler\n{\n    __block NSURLSessionUploadTask *uploadTask = nil;\n    url_session_manager_create_task_safely(^{\n        uploadTask = [self.session uploadTaskWithRequest:request fromFile:fileURL];\n    });\n\n    if (!uploadTask && self.attemptsToRecreateUploadTasksForBackgroundSessions && self.session.configuration.identifier) {\n        for (NSUInteger attempts = 0; !uploadTask && attempts < AFMaximumNumberOfAttemptsToRecreateBackgroundSessionUploadTask; attempts++) {\n            uploadTask = [self.session uploadTaskWithRequest:request fromFile:fileURL];\n        }\n    }\n\n    [self addDelegateForUploadTask:uploadTask progress:uploadProgressBlock completionHandler:completionHandler];\n\n    return uploadTask;\n}\n\n- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request\n                                         fromData:(NSData *)bodyData\n                                         progress:(void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n                                completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler\n{\n    __block NSURLSessionUploadTask *uploadTask = nil;\n    url_session_manager_create_task_safely(^{\n        uploadTask = [self.session uploadTaskWithRequest:request fromData:bodyData];\n    });\n\n    [self addDelegateForUploadTask:uploadTask progress:uploadProgressBlock completionHandler:completionHandler];\n\n    return uploadTask;\n}\n\n- (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request\n                                                 progress:(void (^)(NSProgress *uploadProgress)) uploadProgressBlock\n                                        completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler\n{\n    __block NSURLSessionUploadTask *uploadTask = nil;\n    url_session_manager_create_task_safely(^{\n        uploadTask = [self.session uploadTaskWithStreamedRequest:request];\n    });\n\n    [self addDelegateForUploadTask:uploadTask progress:uploadProgressBlock completionHandler:completionHandler];\n\n    return uploadTask;\n}\n\n#pragma mark -\n\n- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request\n                                             progress:(void (^)(NSProgress *downloadProgress)) downloadProgressBlock\n                                          destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination\n                                    completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler\n{\n    __block NSURLSessionDownloadTask *downloadTask = nil;\n    url_session_manager_create_task_safely(^{\n        downloadTask = [self.session downloadTaskWithRequest:request];\n    });\n\n    [self addDelegateForDownloadTask:downloadTask progress:downloadProgressBlock destination:destination completionHandler:completionHandler];\n\n    return downloadTask;\n}\n\n- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData\n                                                progress:(void (^)(NSProgress *downloadProgress)) downloadProgressBlock\n                                             destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination\n                                       completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler\n{\n    __block NSURLSessionDownloadTask *downloadTask = nil;\n    url_session_manager_create_task_safely(^{\n        downloadTask = [self.session downloadTaskWithResumeData:resumeData];\n    });\n\n    [self addDelegateForDownloadTask:downloadTask progress:downloadProgressBlock destination:destination completionHandler:completionHandler];\n\n    return downloadTask;\n}\n\n#pragma mark -\n- (NSProgress *)uploadProgressForTask:(NSURLSessionTask *)task {\n    return [[self delegateForTask:task] uploadProgress];\n}\n\n- (NSProgress *)downloadProgressForTask:(NSURLSessionTask *)task {\n    return [[self delegateForTask:task] downloadProgress];\n}\n\n#pragma mark -\n\n- (void)setSessionDidBecomeInvalidBlock:(void (^)(NSURLSession *session, NSError *error))block {\n    self.sessionDidBecomeInvalid = block;\n}\n\n- (void)setSessionDidReceiveAuthenticationChallengeBlock:(NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential))block {\n    self.sessionDidReceiveAuthenticationChallenge = block;\n}\n\n- (void)setDidFinishEventsForBackgroundURLSessionBlock:(void (^)(NSURLSession *session))block {\n    self.didFinishEventsForBackgroundURLSession = block;\n}\n\n#pragma mark -\n\n- (void)setTaskNeedNewBodyStreamBlock:(NSInputStream * (^)(NSURLSession *session, NSURLSessionTask *task))block {\n    self.taskNeedNewBodyStream = block;\n}\n\n- (void)setTaskWillPerformHTTPRedirectionBlock:(NSURLRequest * (^)(NSURLSession *session, NSURLSessionTask *task, NSURLResponse *response, NSURLRequest *request))block {\n    self.taskWillPerformHTTPRedirection = block;\n}\n\n- (void)setTaskDidReceiveAuthenticationChallengeBlock:(NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLSessionTask *task, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential))block {\n    self.taskDidReceiveAuthenticationChallenge = block;\n}\n\n- (void)setTaskDidSendBodyDataBlock:(void (^)(NSURLSession *session, NSURLSessionTask *task, int64_t bytesSent, int64_t totalBytesSent, int64_t totalBytesExpectedToSend))block {\n    self.taskDidSendBodyData = block;\n}\n\n- (void)setTaskDidCompleteBlock:(void (^)(NSURLSession *session, NSURLSessionTask *task, NSError *error))block {\n    self.taskDidComplete = block;\n}\n\n#pragma mark -\n\n- (void)setDataTaskDidReceiveResponseBlock:(NSURLSessionResponseDisposition (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLResponse *response))block {\n    self.dataTaskDidReceiveResponse = block;\n}\n\n- (void)setDataTaskDidBecomeDownloadTaskBlock:(void (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLSessionDownloadTask *downloadTask))block {\n    self.dataTaskDidBecomeDownloadTask = block;\n}\n\n- (void)setDataTaskDidReceiveDataBlock:(void (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSData *data))block {\n    self.dataTaskDidReceiveData = block;\n}\n\n- (void)setDataTaskWillCacheResponseBlock:(NSCachedURLResponse * (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSCachedURLResponse *proposedResponse))block {\n    self.dataTaskWillCacheResponse = block;\n}\n\n#pragma mark -\n\n- (void)setDownloadTaskDidFinishDownloadingBlock:(NSURL * (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, NSURL *location))block {\n    self.downloadTaskDidFinishDownloading = block;\n}\n\n- (void)setDownloadTaskDidWriteDataBlock:(void (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite))block {\n    self.downloadTaskDidWriteData = block;\n}\n\n- (void)setDownloadTaskDidResumeBlock:(void (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t fileOffset, int64_t expectedTotalBytes))block {\n    self.downloadTaskDidResume = block;\n}\n\n#pragma mark - NSObject\n\n- (NSString *)description {\n    return [NSString stringWithFormat:@\"<%@: %p, session: %@, operationQueue: %@>\", NSStringFromClass([self class]), self, self.session, self.operationQueue];\n}\n\n- (BOOL)respondsToSelector:(SEL)selector {\n    if (selector == @selector(URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:)) {\n        return self.taskWillPerformHTTPRedirection != nil;\n    } else if (selector == @selector(URLSession:dataTask:didReceiveResponse:completionHandler:)) {\n        return self.dataTaskDidReceiveResponse != nil;\n    } else if (selector == @selector(URLSession:dataTask:willCacheResponse:completionHandler:)) {\n        return self.dataTaskWillCacheResponse != nil;\n    } else if (selector == @selector(URLSessionDidFinishEventsForBackgroundURLSession:)) {\n        return self.didFinishEventsForBackgroundURLSession != nil;\n    }\n\n    return [[self class] instancesRespondToSelector:selector];\n}\n\n#pragma mark - NSURLSessionDelegate\n\n- (void)URLSession:(NSURLSession *)session\ndidBecomeInvalidWithError:(NSError *)error\n{\n    if (self.sessionDidBecomeInvalid) {\n        self.sessionDidBecomeInvalid(session, error);\n    }\n\n    [[NSNotificationCenter defaultCenter] postNotificationName:AFURLSessionDidInvalidateNotification object:session];\n}\n\n- (void)URLSession:(NSURLSession *)session\ndidReceiveChallenge:(NSURLAuthenticationChallenge *)challenge\n completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler\n{\n    NSURLSessionAuthChallengeDisposition disposition = NSURLSessionAuthChallengePerformDefaultHandling;\n    __block NSURLCredential *credential = nil;\n\n    if (self.sessionDidReceiveAuthenticationChallenge) {\n        disposition = self.sessionDidReceiveAuthenticationChallenge(session, challenge, &credential);\n    } else {\n        if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) {\n            if ([self.securityPolicy evaluateServerTrust:challenge.protectionSpace.serverTrust forDomain:challenge.protectionSpace.host]) {\n                credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust];\n                if (credential) {\n                    disposition = NSURLSessionAuthChallengeUseCredential;\n                } else {\n                    disposition = NSURLSessionAuthChallengePerformDefaultHandling;\n                }\n            } else {\n                disposition = NSURLSessionAuthChallengeRejectProtectionSpace;\n            }\n        } else {\n            disposition = NSURLSessionAuthChallengePerformDefaultHandling;\n        }\n    }\n\n    if (completionHandler) {\n        completionHandler(disposition, credential);\n    }\n}\n\n#pragma mark - NSURLSessionTaskDelegate\n\n- (void)URLSession:(NSURLSession *)session\n              task:(NSURLSessionTask *)task\nwillPerformHTTPRedirection:(NSHTTPURLResponse *)response\n        newRequest:(NSURLRequest *)request\n completionHandler:(void (^)(NSURLRequest *))completionHandler\n{\n    NSURLRequest *redirectRequest = request;\n\n    if (self.taskWillPerformHTTPRedirection) {\n        redirectRequest = self.taskWillPerformHTTPRedirection(session, task, response, request);\n    }\n\n    if (completionHandler) {\n        completionHandler(redirectRequest);\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n              task:(NSURLSessionTask *)task\ndidReceiveChallenge:(NSURLAuthenticationChallenge *)challenge\n completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler\n{\n    NSURLSessionAuthChallengeDisposition disposition = NSURLSessionAuthChallengePerformDefaultHandling;\n    __block NSURLCredential *credential = nil;\n\n    if (self.taskDidReceiveAuthenticationChallenge) {\n        disposition = self.taskDidReceiveAuthenticationChallenge(session, task, challenge, &credential);\n    } else {\n        if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) {\n            if ([self.securityPolicy evaluateServerTrust:challenge.protectionSpace.serverTrust forDomain:challenge.protectionSpace.host]) {\n                disposition = NSURLSessionAuthChallengeUseCredential;\n                credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust];\n            } else {\n                disposition = NSURLSessionAuthChallengeRejectProtectionSpace;\n            }\n        } else {\n            disposition = NSURLSessionAuthChallengePerformDefaultHandling;\n        }\n    }\n\n    if (completionHandler) {\n        completionHandler(disposition, credential);\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n              task:(NSURLSessionTask *)task\n needNewBodyStream:(void (^)(NSInputStream *bodyStream))completionHandler\n{\n    NSInputStream *inputStream = nil;\n\n    if (self.taskNeedNewBodyStream) {\n        inputStream = self.taskNeedNewBodyStream(session, task);\n    } else if (task.originalRequest.HTTPBodyStream && [task.originalRequest.HTTPBodyStream conformsToProtocol:@protocol(NSCopying)]) {\n        inputStream = [task.originalRequest.HTTPBodyStream copy];\n    }\n\n    if (completionHandler) {\n        completionHandler(inputStream);\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n              task:(NSURLSessionTask *)task\n   didSendBodyData:(int64_t)bytesSent\n    totalBytesSent:(int64_t)totalBytesSent\ntotalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend\n{\n\n    int64_t totalUnitCount = totalBytesExpectedToSend;\n    if(totalUnitCount == NSURLSessionTransferSizeUnknown) {\n        NSString *contentLength = [task.originalRequest valueForHTTPHeaderField:@\"Content-Length\"];\n        if(contentLength) {\n            totalUnitCount = (int64_t) [contentLength longLongValue];\n        }\n    }\n\n    if (self.taskDidSendBodyData) {\n        self.taskDidSendBodyData(session, task, bytesSent, totalBytesSent, totalUnitCount);\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n              task:(NSURLSessionTask *)task\ndidCompleteWithError:(NSError *)error\n{\n    AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:task];\n\n    // delegate may be nil when completing a task in the background\n    if (delegate) {\n        [delegate URLSession:session task:task didCompleteWithError:error];\n\n        [self removeDelegateForTask:task];\n    }\n\n    if (self.taskDidComplete) {\n        self.taskDidComplete(session, task, error);\n    }\n}\n\n#pragma mark - NSURLSessionDataDelegate\n\n- (void)URLSession:(NSURLSession *)session\n          dataTask:(NSURLSessionDataTask *)dataTask\ndidReceiveResponse:(NSURLResponse *)response\n completionHandler:(void (^)(NSURLSessionResponseDisposition disposition))completionHandler\n{\n    NSURLSessionResponseDisposition disposition = NSURLSessionResponseAllow;\n\n    if (self.dataTaskDidReceiveResponse) {\n        disposition = self.dataTaskDidReceiveResponse(session, dataTask, response);\n    }\n\n    if (completionHandler) {\n        completionHandler(disposition);\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n          dataTask:(NSURLSessionDataTask *)dataTask\ndidBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask\n{\n    AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:dataTask];\n    if (delegate) {\n        [self removeDelegateForTask:dataTask];\n        [self setDelegate:delegate forTask:downloadTask];\n    }\n\n    if (self.dataTaskDidBecomeDownloadTask) {\n        self.dataTaskDidBecomeDownloadTask(session, dataTask, downloadTask);\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n          dataTask:(NSURLSessionDataTask *)dataTask\n    didReceiveData:(NSData *)data\n{\n\n    AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:dataTask];\n    [delegate URLSession:session dataTask:dataTask didReceiveData:data];\n\n    if (self.dataTaskDidReceiveData) {\n        self.dataTaskDidReceiveData(session, dataTask, data);\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n          dataTask:(NSURLSessionDataTask *)dataTask\n willCacheResponse:(NSCachedURLResponse *)proposedResponse\n completionHandler:(void (^)(NSCachedURLResponse *cachedResponse))completionHandler\n{\n    NSCachedURLResponse *cachedResponse = proposedResponse;\n\n    if (self.dataTaskWillCacheResponse) {\n        cachedResponse = self.dataTaskWillCacheResponse(session, dataTask, proposedResponse);\n    }\n\n    if (completionHandler) {\n        completionHandler(cachedResponse);\n    }\n}\n\n- (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession *)session {\n    if (self.didFinishEventsForBackgroundURLSession) {\n        dispatch_async(dispatch_get_main_queue(), ^{\n            self.didFinishEventsForBackgroundURLSession(session);\n        });\n    }\n}\n\n#pragma mark - NSURLSessionDownloadDelegate\n\n- (void)URLSession:(NSURLSession *)session\n      downloadTask:(NSURLSessionDownloadTask *)downloadTask\ndidFinishDownloadingToURL:(NSURL *)location\n{\n    AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:downloadTask];\n    if (self.downloadTaskDidFinishDownloading) {\n        NSURL *fileURL = self.downloadTaskDidFinishDownloading(session, downloadTask, location);\n        if (fileURL) {\n            delegate.downloadFileURL = fileURL;\n            NSError *error = nil;\n            [[NSFileManager defaultManager] moveItemAtURL:location toURL:fileURL error:&error];\n            if (error) {\n                [[NSNotificationCenter defaultCenter] postNotificationName:AFURLSessionDownloadTaskDidFailToMoveFileNotification object:downloadTask userInfo:error.userInfo];\n            }\n\n            return;\n        }\n    }\n\n    if (delegate) {\n        [delegate URLSession:session downloadTask:downloadTask didFinishDownloadingToURL:location];\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n      downloadTask:(NSURLSessionDownloadTask *)downloadTask\n      didWriteData:(int64_t)bytesWritten\n totalBytesWritten:(int64_t)totalBytesWritten\ntotalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite\n{\n    if (self.downloadTaskDidWriteData) {\n        self.downloadTaskDidWriteData(session, downloadTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite);\n    }\n}\n\n- (void)URLSession:(NSURLSession *)session\n      downloadTask:(NSURLSessionDownloadTask *)downloadTask\n didResumeAtOffset:(int64_t)fileOffset\nexpectedTotalBytes:(int64_t)expectedTotalBytes\n{\n    if (self.downloadTaskDidResume) {\n        self.downloadTaskDidResume(session, downloadTask, fileOffset, expectedTotalBytes);\n    }\n}\n\n#pragma mark - NSSecureCoding\n\n+ (BOOL)supportsSecureCoding {\n    return YES;\n}\n\n- (instancetype)initWithCoder:(NSCoder *)decoder {\n    NSURLSessionConfiguration *configuration = [decoder decodeObjectOfClass:[NSURLSessionConfiguration class] forKey:@\"sessionConfiguration\"];\n\n    self = [self initWithSessionConfiguration:configuration];\n    if (!self) {\n        return nil;\n    }\n\n    return self;\n}\n\n- (void)encodeWithCoder:(NSCoder *)coder {\n    [coder encodeObject:self.session.configuration forKey:@\"sessionConfiguration\"];\n}\n\n#pragma mark - NSCopying\n\n- (instancetype)copyWithZone:(NSZone *)zone {\n    return [[[self class] allocWithZone:zone] initWithSessionConfiguration:self.session.configuration];\n}\n\n@end\n"
  },
  {
    "path": "Pods/AFNetworking/LICENSE",
    "content": "Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "Pods/AFNetworking/README.md",
    "content": "<p align=\"center\" >\n  <img src=\"https://raw.github.com/AFNetworking/AFNetworking/assets/afnetworking-logo.png\" alt=\"AFNetworking\" title=\"AFNetworking\">\n</p>\n\n[![Build Status](https://travis-ci.org/AFNetworking/AFNetworking.svg)](https://travis-ci.org/AFNetworking/AFNetworking)\n[![codecov.io](https://codecov.io/github/AFNetworking/AFNetworking/coverage.svg?branch=master)](https://codecov.io/github/AFNetworking/AFNetworking?branch=master)\n[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/AFNetworking.svg)](https://img.shields.io/cocoapods/v/AFNetworking.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](https://img.shields.io/cocoapods/p/AFNetworking.svg?style=flat)](http://cocoadocs.org/docsets/AFNetworking)\n[![Twitter](https://img.shields.io/badge/twitter-@AFNetworking-blue.svg?style=flat)](http://twitter.com/AFNetworking)\n\nAFNetworking is a delightful networking library for iOS and Mac OS X. It's built on top of the [Foundation URL Loading System](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html), extending the powerful high-level networking abstractions built into Cocoa. It has a modular architecture with well-designed, feature-rich APIs that are a joy to use.\n\nPerhaps the most important feature of all, however, is the amazing community of developers who use and contribute to AFNetworking every day. AFNetworking powers some of the most popular and critically-acclaimed apps on the iPhone, iPad, and Mac.\n\nChoose AFNetworking for your next project, or migrate over your existing projects—you'll be happy you did!\n\n## How To Get Started\n\n- [Download AFNetworking](https://github.com/AFNetworking/AFNetworking/archive/master.zip) and try out the included Mac and iPhone example apps\n- Read the [\"Getting Started\" guide](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking), [FAQ](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-FAQ), or [other articles on the Wiki](https://github.com/AFNetworking/AFNetworking/wiki)\n- Check out the [documentation](http://cocoadocs.org/docsets/AFNetworking/) for a comprehensive look at all of the APIs available in AFNetworking\n- Read the [AFNetworking 3.0 Migration Guide](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-3.0-Migration-Guide) for an overview of the architectural changes from 2.0.\n\n## Communication\n\n- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking). (Tag 'afnetworking')\n- If you'd like to **ask a general question**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking).\n- If you **found a bug**, _and can provide steps to reliably reproduce it_, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\n## Installation\nAFNetworking supports multiple methods for installing the library in a project.\n\n## Installation with CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AFNetworking in your projects. See the [\"Getting Started\" guide for more information](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking). You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n> CocoaPods 0.39.0+ is required to build AFNetworking 3.0.0+.\n\n#### Podfile\n\nTo integrate AFNetworking into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\n\npod 'AFNetworking', '~> 3.0'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Installation with Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate AFNetworking into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"AFNetworking/AFNetworking\" ~> 3.0\n```\n\nRun `carthage` to build the framework and drag the built `AFNetworking.framework` into your Xcode project.\n\n## Requirements\n\n| AFNetworking Version | Minimum iOS Target  | Minimum OS X Target  | Minimum watchOS Target  | Minimum tvOS Target  |                                   Notes                                   |\n|:--------------------:|:---------------------------:|:----------------------------:|:----------------------------:|:----------------------------:|:-------------------------------------------------------------------------:|\n| 3.x | iOS 7 | OS X 10.9 | watchOS 2.0 | tvOS 9.0 | Xcode 7+ is required. `NSURLConnectionOperation` support has been removed. |\n| 2.6 -> 2.6.3 | iOS 7 | OS X 10.9 | watchOS 2.0 | n/a | Xcode 7+ is required. |\n| 2.0 -> 2.5.4 | iOS 6 | OS X 10.8 | n/a | n/a | Xcode 5+ is required. `NSURLSession` subspec requires iOS 7 or OS X 10.9. |\n| 1.x | iOS 5 | Mac OS X 10.7 | n/a | n/a |\n| 0.10.x | iOS 4 | Mac OS X 10.6 | n/a | n/a |\n\n(OS X projects must support [64-bit with modern Cocoa runtime](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtVersionsPlatforms.html)).\n\n> Programming in Swift? Try [Alamofire](https://github.com/Alamofire/Alamofire) for a more conventional set of APIs.\n\n## Architecture\n\n### NSURLSession\n\n- `AFURLSessionManager`\n- `AFHTTPSessionManager`\n\n### Serialization\n\n* `<AFURLRequestSerialization>`\n  - `AFHTTPRequestSerializer`\n  - `AFJSONRequestSerializer`\n  - `AFPropertyListRequestSerializer`\n* `<AFURLResponseSerialization>`\n  - `AFHTTPResponseSerializer`\n  - `AFJSONResponseSerializer`\n  - `AFXMLParserResponseSerializer`\n  - `AFXMLDocumentResponseSerializer` _(Mac OS X)_\n  - `AFPropertyListResponseSerializer`\n  - `AFImageResponseSerializer`\n  - `AFCompoundResponseSerializer`\n\n### Additional Functionality\n\n- `AFSecurityPolicy`\n- `AFNetworkReachabilityManager`\n\n## Usage\n\n### AFURLSessionManager\n\n`AFURLSessionManager` creates and manages an `NSURLSession` object based on a specified `NSURLSessionConfiguration` object, which conforms to `<NSURLSessionTaskDelegate>`, `<NSURLSessionDataDelegate>`, `<NSURLSessionDownloadDelegate>`, and `<NSURLSessionDelegate>`.\n\n#### Creating a Download Task\n\n```objective-c\nNSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];\nAFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];\n\nNSURL *URL = [NSURL URLWithString:@\"http://example.com/download.zip\"];\nNSURLRequest *request = [NSURLRequest requestWithURL:URL];\n\nNSURLSessionDownloadTask *downloadTask = [manager downloadTaskWithRequest:request progress:nil destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) {\n    NSURL *documentsDirectoryURL = [[NSFileManager defaultManager] URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil];\n    return [documentsDirectoryURL URLByAppendingPathComponent:[response suggestedFilename]];\n} completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) {\n    NSLog(@\"File downloaded to: %@\", filePath);\n}];\n[downloadTask resume];\n```\n\n#### Creating an Upload Task\n\n```objective-c\nNSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];\nAFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];\n\nNSURL *URL = [NSURL URLWithString:@\"http://example.com/upload\"];\nNSURLRequest *request = [NSURLRequest requestWithURL:URL];\n\nNSURL *filePath = [NSURL fileURLWithPath:@\"file://path/to/image.png\"];\nNSURLSessionUploadTask *uploadTask = [manager uploadTaskWithRequest:request fromFile:filePath progress:nil completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {\n    if (error) {\n        NSLog(@\"Error: %@\", error);\n    } else {\n        NSLog(@\"Success: %@ %@\", response, responseObject);\n    }\n}];\n[uploadTask resume];\n```\n\n#### Creating an Upload Task for a Multi-Part Request, with Progress\n\n```objective-c\nNSMutableURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@\"POST\" URLString:@\"http://example.com/upload\" parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {\n        [formData appendPartWithFileURL:[NSURL fileURLWithPath:@\"file://path/to/image.jpg\"] name:@\"file\" fileName:@\"filename.jpg\" mimeType:@\"image/jpeg\" error:nil];\n    } error:nil];\n\nAFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];\n\nNSURLSessionUploadTask *uploadTask;\nuploadTask = [manager\n              uploadTaskWithStreamedRequest:request\n              progress:^(NSProgress * _Nonnull uploadProgress) {\n                  // This is not called back on the main queue.\n                  // You are responsible for dispatching to the main queue for UI updates\n                  dispatch_async(dispatch_get_main_queue(), ^{\n                      //Update the progress view\n                      [progressView setProgress:uploadProgress.fractionCompleted];\n                  });\n              }\n              completionHandler:^(NSURLResponse * _Nonnull response, id  _Nullable responseObject, NSError * _Nullable error) {\n                  if (error) {\n                      NSLog(@\"Error: %@\", error);\n                  } else {\n                      NSLog(@\"%@ %@\", response, responseObject);\n                  }\n              }];\n\n[uploadTask resume];\n```\n\n#### Creating a Data Task\n\n```objective-c\nNSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];\nAFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];\n\nNSURL *URL = [NSURL URLWithString:@\"http://example.com/upload\"];\nNSURLRequest *request = [NSURLRequest requestWithURL:URL];\n\nNSURLSessionDataTask *dataTask = [manager dataTaskWithRequest:request completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {\n    if (error) {\n        NSLog(@\"Error: %@\", error);\n    } else {\n        NSLog(@\"%@ %@\", response, responseObject);\n    }\n}];\n[dataTask resume];\n```\n\n---\n\n### Request Serialization\n\nRequest serializers create requests from URL strings, encoding parameters as either a query string or HTTP body.\n\n```objective-c\nNSString *URLString = @\"http://example.com\";\nNSDictionary *parameters = @{@\"foo\": @\"bar\", @\"baz\": @[@1, @2, @3]};\n```\n\n#### Query String Parameter Encoding\n\n```objective-c\n[[AFHTTPRequestSerializer serializer] requestWithMethod:@\"GET\" URLString:URLString parameters:parameters error:nil];\n```\n\n    GET http://example.com?foo=bar&baz[]=1&baz[]=2&baz[]=3\n\n#### URL Form Parameter Encoding\n\n```objective-c\n[[AFHTTPRequestSerializer serializer] requestWithMethod:@\"POST\" URLString:URLString parameters:parameters];\n```\n\n    POST http://example.com/\n    Content-Type: application/x-www-form-urlencoded\n\n    foo=bar&baz[]=1&baz[]=2&baz[]=3\n\n#### JSON Parameter Encoding\n\n```objective-c\n[[AFJSONRequestSerializer serializer] requestWithMethod:@\"POST\" URLString:URLString parameters:parameters];\n```\n\n    POST http://example.com/\n    Content-Type: application/json\n\n    {\"foo\": \"bar\", \"baz\": [1,2,3]}\n\n---\n\n### Network Reachability Manager\n\n`AFNetworkReachabilityManager` monitors the reachability of domains, and addresses for both WWAN and WiFi network interfaces.\n\n* Do not use Reachability to determine if the original request should be sent.\n\t* You should try to send it.\n* You can use Reachability to determine when a request should be automatically retried.\n\t* Although it may still fail, a Reachability notification that the connectivity is available is a good time to retry something.\n* Network reachability is a useful tool for determining why a request might have failed.\n\t* After a network request has failed, telling the user they're offline is better than giving them a more technical but accurate error, such as \"request timed out.\"\n\nSee also [WWDC 2012 session 706, \"Networking Best Practices.\"](https://developer.apple.com/videos/play/wwdc2012-706/).\n\n#### Shared Network Reachability\n\n```objective-c\n[[AFNetworkReachabilityManager sharedManager] setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {\n    NSLog(@\"Reachability: %@\", AFStringFromNetworkReachabilityStatus(status));\n}];\n\n[[AFNetworkReachabilityManager sharedManager] startMonitoring];\n```\n\n---\n\n### Security Policy\n\n`AFSecurityPolicy` evaluates server trust against pinned X.509 certificates and public keys over secure connections.\n\nAdding pinned SSL certificates to your app helps prevent man-in-the-middle attacks and other vulnerabilities. Applications dealing with sensitive customer data or financial information are strongly encouraged to route all communication over an HTTPS connection with SSL pinning configured and enabled.\n\n#### Allowing Invalid SSL Certificates\n\n```objective-c\nAFHTTPSessionManager *manager = [AFHTTPSessionManager manager];\nmanager.securityPolicy.allowInvalidCertificates = YES; // not recommended for production\n```\n\n---\n\n## Unit Tests\n\nAFNetworking includes a suite of unit tests within the Tests subdirectory. These tests can be run simply be executed the test action on the platform framework you would like to test.\n\n## Credits\n\nAFNetworking is owned and maintained by the [Alamofire Software Foundation](http://alamofire.org).\n\nAFNetworking was originally created by [Scott Raymond](https://github.com/sco/) and [Mattt Thompson](https://github.com/mattt/) in the development of [Gowalla for iPhone](http://en.wikipedia.org/wiki/Gowalla).\n\nAFNetworking's logo was designed by [Alan Defibaugh](http://www.alandefibaugh.com/).\n\nAnd most of all, thanks to AFNetworking's [growing list of contributors](https://github.com/AFNetworking/AFNetworking/contributors).\n\n### Security Disclosure\n\nIf you believe you have identified a security vulnerability with AFNetworking, you should report it as soon as possible via email to security@alamofire.org. Please do not post it to a public issue tracker.\n\n## License\n\nAFNetworking is released under the MIT license. See LICENSE for details.\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.h",
    "content": "// AFAutoPurgingImageCache.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <TargetConditionals.h>\n#import <Foundation/Foundation.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n The `AFImageCache` protocol defines a set of APIs for adding, removing and fetching images from a cache synchronously.\n */\n@protocol AFImageCache <NSObject>\n\n/**\n Adds the image to the cache with the given identifier.\n\n @param image The image to cache.\n @param identifier The unique identifier for the image in the cache.\n */\n- (void)addImage:(UIImage *)image withIdentifier:(NSString *)identifier;\n\n/**\n Removes the image from the cache matching the given identifier.\n\n @param identifier The unique identifier for the image in the cache.\n\n @return A BOOL indicating whether or not the image was removed from the cache.\n */\n- (BOOL)removeImageWithIdentifier:(NSString *)identifier;\n\n/**\n Removes all images from the cache.\n\n @return A BOOL indicating whether or not all images were removed from the cache.\n */\n- (BOOL)removeAllImages;\n\n/**\n Returns the image in the cache associated with the given identifier.\n\n @param identifier The unique identifier for the image in the cache.\n\n @return An image for the matching identifier, or nil.\n */\n- (nullable UIImage *)imageWithIdentifier:(NSString *)identifier;\n@end\n\n\n/**\n The `ImageRequestCache` protocol extends the `ImageCache` protocol by adding methods for adding, removing and fetching images from a cache given an `NSURLRequest` and additional identifier.\n */\n@protocol AFImageRequestCache <AFImageCache>\n\n/**\n Adds the image to the cache using an identifier created from the request and additional identifier.\n\n @param image The image to cache.\n @param request The unique URL request identifing the image asset.\n @param identifier The additional identifier to apply to the URL request to identify the image.\n */\n- (void)addImage:(UIImage *)image forRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier;\n\n/**\n Removes the image from the cache using an identifier created from the request and additional identifier.\n\n @param request The unique URL request identifing the image asset.\n @param identifier The additional identifier to apply to the URL request to identify the image.\n \n @return A BOOL indicating whether or not all images were removed from the cache.\n */\n- (BOOL)removeImageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier;\n\n/**\n Returns the image from the cache associated with an identifier created from the request and additional identifier.\n\n @param request The unique URL request identifing the image asset.\n @param identifier The additional identifier to apply to the URL request to identify the image.\n\n @return An image for the matching request and identifier, or nil.\n */\n- (nullable UIImage *)imageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier;\n\n@end\n\n/**\n The `AutoPurgingImageCache` in an in-memory image cache used to store images up to a given memory capacity. When the memory capacity is reached, the image cache is sorted by last access date, then the oldest image is continuously purged until the preferred memory usage after purge is met. Each time an image is accessed through the cache, the internal access date of the image is updated.\n */\n@interface AFAutoPurgingImageCache : NSObject <AFImageRequestCache>\n\n/**\n The total memory capacity of the cache in bytes.\n */\n@property (nonatomic, assign) UInt64 memoryCapacity;\n\n/**\n The preferred memory usage after purge in bytes. During a purge, images will be purged until the memory capacity drops below this limit.\n */\n@property (nonatomic, assign) UInt64 preferredMemoryUsageAfterPurge;\n\n/**\n The current total memory usage in bytes of all images stored within the cache.\n */\n@property (nonatomic, assign, readonly) UInt64 memoryUsage;\n\n/**\n Initialies the `AutoPurgingImageCache` instance with default values for memory capacity and preferred memory usage after purge limit. `memoryCapcity` defaults to `100 MB`. `preferredMemoryUsageAfterPurge` defaults to `60 MB`.\n\n @return The new `AutoPurgingImageCache` instance.\n */\n- (instancetype)init;\n\n/**\n Initialies the `AutoPurgingImageCache` instance with the given memory capacity and preferred memory usage\n after purge limit.\n\n @param memoryCapacity The total memory capacity of the cache in bytes.\n @param preferredMemoryUsageAfterPurge The preferred memory usage after purge in bytes.\n\n @return The new `AutoPurgingImageCache` instance.\n */\n- (instancetype)initWithMemoryCapacity:(UInt64)memoryCapacity preferredMemoryCapacity:(UInt64)preferredMemoryCapacity;\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n#endif\n\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.m",
    "content": "// AFAutoPurgingImageCache.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV \n\n#import \"AFAutoPurgingImageCache.h\"\n\n@interface AFCachedImage : NSObject\n\n@property (nonatomic, strong) UIImage *image;\n@property (nonatomic, strong) NSString *identifier;\n@property (nonatomic, assign) UInt64 totalBytes;\n@property (nonatomic, strong) NSDate *lastAccessDate;\n@property (nonatomic, assign) UInt64 currentMemoryUsage;\n\n@end\n\n@implementation AFCachedImage\n\n-(instancetype)initWithImage:(UIImage *)image identifier:(NSString *)identifier {\n    if (self = [self init]) {\n        self.image = image;\n        self.identifier = identifier;\n\n        CGSize imageSize = CGSizeMake(image.size.width * image.scale, image.size.height * image.scale);\n        CGFloat bytesPerPixel = 4.0;\n        CGFloat bytesPerRow = imageSize.width * bytesPerPixel;\n        self.totalBytes = (UInt64)bytesPerPixel * (UInt64)bytesPerRow;\n        self.lastAccessDate = [NSDate date];\n    }\n    return self;\n}\n\n- (UIImage*)accessImage {\n    self.lastAccessDate = [NSDate date];\n    return self.image;\n}\n\n- (NSString *)description {\n    NSString *descriptionString = [NSString stringWithFormat:@\"Idenfitier: %@  lastAccessDate: %@ \", self.identifier, self.lastAccessDate];\n    return descriptionString;\n\n}\n\n@end\n\n@interface AFAutoPurgingImageCache ()\n@property (nonatomic, strong) NSMutableDictionary <NSString* , AFCachedImage*> *cachedImages;\n@property (nonatomic, assign) UInt64 currentMemoryUsage;\n@property (nonatomic, strong) dispatch_queue_t synchronizationQueue;\n@end\n\n@implementation AFAutoPurgingImageCache\n\n- (instancetype)init {\n    return [self initWithMemoryCapacity:100 * 1024 * 1024 preferredMemoryCapacity:60 * 1024 * 1024];\n}\n\n- (instancetype)initWithMemoryCapacity:(UInt64)memoryCapacity preferredMemoryCapacity:(UInt64)preferredMemoryCapacity {\n    if (self = [super init]) {\n        self.memoryCapacity = memoryCapacity;\n        self.preferredMemoryUsageAfterPurge = preferredMemoryCapacity;\n        self.cachedImages = [[NSMutableDictionary alloc] init];\n\n        NSString *queueName = [NSString stringWithFormat:@\"com.alamofire.autopurgingimagecache-%@\", [[NSUUID UUID] UUIDString]];\n        self.synchronizationQueue = dispatch_queue_create([queueName cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_CONCURRENT);\n\n        [[NSNotificationCenter defaultCenter]\n         addObserver:self\n         selector:@selector(removeAllImages)\n         name:UIApplicationDidReceiveMemoryWarningNotification\n         object:nil];\n\n    }\n    return self;\n}\n\n- (void)dealloc {\n    [[NSNotificationCenter defaultCenter] removeObserver:self];\n}\n\n- (UInt64)memoryUsage {\n    __block UInt64 result = 0;\n    dispatch_sync(self.synchronizationQueue, ^{\n        result = self.currentMemoryUsage;\n    });\n    return result;\n}\n\n- (void)addImage:(UIImage *)image withIdentifier:(NSString *)identifier {\n    dispatch_barrier_async(self.synchronizationQueue, ^{\n        AFCachedImage *cacheImage = [[AFCachedImage alloc] initWithImage:image identifier:identifier];\n\n        AFCachedImage *previousCachedImage = self.cachedImages[identifier];\n        if (previousCachedImage != nil) {\n            self.currentMemoryUsage -= previousCachedImage.totalBytes;\n        }\n\n        self.cachedImages[identifier] = cacheImage;\n        self.currentMemoryUsage += cacheImage.totalBytes;\n    });\n\n    dispatch_barrier_async(self.synchronizationQueue, ^{\n        if (self.currentMemoryUsage > self.memoryCapacity) {\n            UInt64 bytesToPurge = self.currentMemoryUsage - self.preferredMemoryUsageAfterPurge;\n            NSMutableArray <AFCachedImage*> *sortedImages = [NSMutableArray arrayWithArray:self.cachedImages.allValues];\n            NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@\"lastAccessDate\"\n                                                                           ascending:YES];\n            [sortedImages sortUsingDescriptors:@[sortDescriptor]];\n\n            UInt64 bytesPurged = 0;\n\n            for (AFCachedImage *cachedImage in sortedImages) {\n                [self.cachedImages removeObjectForKey:cachedImage.identifier];\n                bytesPurged += cachedImage.totalBytes;\n                if (bytesPurged >= bytesToPurge) {\n                    break ;\n                }\n            }\n            self.currentMemoryUsage -= bytesPurged;\n        }\n    });\n}\n\n- (BOOL)removeImageWithIdentifier:(NSString *)identifier {\n    __block BOOL removed = NO;\n    dispatch_barrier_sync(self.synchronizationQueue, ^{\n        AFCachedImage *cachedImage = self.cachedImages[identifier];\n        if (cachedImage != nil) {\n            [self.cachedImages removeObjectForKey:identifier];\n            self.currentMemoryUsage -= cachedImage.totalBytes;\n            removed = YES;\n        }\n    });\n    return removed;\n}\n\n- (BOOL)removeAllImages {\n    __block BOOL removed = NO;\n    dispatch_barrier_sync(self.synchronizationQueue, ^{\n        if (self.cachedImages.count > 0) {\n            [self.cachedImages removeAllObjects];\n            self.currentMemoryUsage = 0;\n            removed = YES;\n        }\n    });\n    return removed;\n}\n\n- (nullable UIImage *)imageWithIdentifier:(NSString *)identifier {\n    __block UIImage *image = nil;\n    dispatch_sync(self.synchronizationQueue, ^{\n        AFCachedImage *cachedImage = self.cachedImages[identifier];\n        image = [cachedImage accessImage];\n    });\n    return image;\n}\n\n- (void)addImage:(UIImage *)image forRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier {\n    [self addImage:image withIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]];\n}\n\n- (BOOL)removeImageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier {\n    return [self removeImageWithIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]];\n}\n\n- (nullable UIImage *)imageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier {\n    return [self imageWithIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]];\n}\n\n- (NSString *)imageCacheKeyFromURLRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)additionalIdentifier {\n    NSString *key = request.URL.absoluteString;\n    if (additionalIdentifier != nil) {\n        key = [key stringByAppendingString:additionalIdentifier];\n    }\n    return key;\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.h",
    "content": "// AFImageDownloader.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV \n\n#import <Foundation/Foundation.h>\n#import \"AFAutoPurgingImageCache.h\"\n#import \"AFHTTPSessionManager.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NS_ENUM(NSInteger, AFImageDownloadPrioritization) {\n    AFImageDownloadPrioritizationFIFO,\n    AFImageDownloadPrioritizationLIFO\n};\n\n/**\n The `AFImageDownloadReceipt` is an object vended by the `AFImageDownloader` when starting a data task. It can be used to cancel active tasks running on the `AFImageDownloader` session. As a general rule, image data tasks should be cancelled using the `AFImageDownloadReceipt` instead of calling `cancel` directly on the `task` itself. The `AFImageDownloader` is optimized to handle duplicate task scenarios as well as pending versus active downloads.\n */\n@interface AFImageDownloadReceipt : NSObject\n\n/**\n The data task created by the `AFImageDownloader`.\n*/\n@property (nonatomic, strong) NSURLSessionDataTask *task;\n\n/**\n The unique identifier for the success and failure blocks when duplicate requests are made.\n */\n@property (nonatomic, strong) NSUUID *receiptID;\n@end\n\n/** The `AFImageDownloader` class is responsible for downloading images in parallel on a prioritized queue. Incoming downloads are added to the front or back of the queue depending on the download prioritization. Each downloaded image is cached in the underlying `NSURLCache` as well as the in-memory image cache. By default, any download request with a cached image equivalent in the image cache will automatically be served the cached image representation.\n */\n@interface AFImageDownloader : NSObject\n\n/**\n The image cache used to store all downloaded images in. `AFAutoPurgingImageCache` by default.\n */\n@property (nonatomic, strong, nullable) id <AFImageRequestCache> imageCache;\n\n/**\n The `AFHTTPSessionManager` used to download images. By default, this is configured with an `AFImageResponseSerializer`, and a shared `NSURLCache` for all image downloads.\n */\n@property (nonatomic, strong) AFHTTPSessionManager *sessionManager;\n\n/**\n Defines the order prioritization of incoming download requests being inserted into the queue. `AFImageDownloadPrioritizationFIFO` by default.\n */\n@property (nonatomic, assign) AFImageDownloadPrioritization downloadPrioritizaton;\n\n/**\n The shared default instance of `AFImageDownloader` initialized with default values.\n */\n+ (instancetype)defaultInstance;\n\n/**\n Creates a default `NSURLCache` with common usage parameter values.\n\n @returns The default `NSURLCache` instance.\n */\n+ (NSURLCache *)defaultURLCache;\n\n/**\n Default initializer\n\n @return An instance of `AFImageDownloader` initialized with default values.\n */\n- (instancetype)init;\n\n/**\n Initializes the `AFImageDownloader` instance with the given session manager, download prioritization, maximum active download count and image cache.\n\n @param sessionManager The session manager to use to download images.\n @param downloadPrioritization The download prioritization of the download queue.\n @param maximumActiveDownloads  The maximum number of active downloads allowed at any given time. Recommend `4`.\n @param imageCache The image cache used to store all downloaded images in.\n\n @return The new `AFImageDownloader` instance.\n */\n- (instancetype)initWithSessionManager:(AFHTTPSessionManager *)sessionManager\n                downloadPrioritization:(AFImageDownloadPrioritization)downloadPrioritization\n                maximumActiveDownloads:(NSInteger)maximumActiveDownloads\n                            imageCache:(nullable id <AFImageRequestCache>)imageCache;\n\n/**\n Creates a data task using the `sessionManager` instance for the specified URL request.\n\n If the same data task is already in the queue or currently being downloaded, the success and failure blocks are\n appended to the already existing task. Once the task completes, all success or failure blocks attached to the\n task are executed in the order they were added.\n\n @param request The URL request.\n @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.\n @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.\n\n @return The image download receipt for the data task if available. `nil` if the image is stored in the cache.\n cache and the URL request cache policy allows the cache to be used.\n */\n- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request\n                                                        success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse  * _Nullable response, UIImage *responseObject))success\n                                                        failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;\n\n/**\n Creates a data task using the `sessionManager` instance for the specified URL request.\n\n If the same data task is already in the queue or currently being downloaded, the success and failure blocks are\n appended to the already existing task. Once the task completes, all success or failure blocks attached to the\n task are executed in the order they were added.\n\n @param request The URL request.\n @param request The identifier to use for the download receipt that will be created for this request. This must be a unique identifier that does not represent any other request.\n @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.\n @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.\n\n @return The image download receipt for the data task if available. `nil` if the image is stored in the cache.\n cache and the URL request cache policy allows the cache to be used.\n */\n- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request\n                                                 withReceiptID:(NSUUID *)receiptID\n                                                        success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse  * _Nullable response, UIImage *responseObject))success\n                                                        failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;\n\n/**\n Cancels the data task in the receipt by removing the corresponding success and failure blocks and cancelling the data task if necessary.\n\n If the data task is pending in the queue, it will be cancelled if no other success and failure blocks are registered with the data task. If the data task is currently executing or is already completed, the success and failure blocks are removed and will not be called when the task finishes.\n\n @param imageDownloadReceipt The image download receipt to cancel.\n */\n- (void)cancelTaskForImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt;\n\n@end\n\n#endif\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.m",
    "content": "// AFImageDownloader.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import \"AFImageDownloader.h\"\n#import \"AFHTTPSessionManager.h\"\n\n@interface AFImageDownloaderResponseHandler : NSObject\n@property (nonatomic, strong) NSUUID *uuid;\n@property (nonatomic, copy) void (^successBlock)(NSURLRequest*, NSHTTPURLResponse*, UIImage*);\n@property (nonatomic, copy) void (^failureBlock)(NSURLRequest*, NSHTTPURLResponse*, NSError*);\n@end\n\n@implementation AFImageDownloaderResponseHandler\n\n- (instancetype)initWithUUID:(NSUUID *)uuid\n                     success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *responseObject))success\n                     failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure {\n    if (self = [self init]) {\n        self.uuid = uuid;\n        self.successBlock = success;\n        self.failureBlock = failure;\n    }\n    return self;\n}\n\n- (NSString *)description {\n    return [NSString stringWithFormat: @\"<AFImageDownloaderResponseHandler>UUID: %@\", [self.uuid UUIDString]];\n}\n\n@end\n\n@interface AFImageDownloaderMergedTask : NSObject\n@property (nonatomic, strong) NSString *identifier;\n@property (nonatomic, strong) NSURLSessionDataTask *task;\n@property (nonatomic, strong) NSMutableArray <AFImageDownloaderResponseHandler*> *responseHandlers;\n\n@end\n\n@implementation AFImageDownloaderMergedTask\n\n- (instancetype)initWithIdentifier:(NSString *)identifier task:(NSURLSessionDataTask *)task {\n    if (self = [self init]) {\n        self.identifier = identifier;\n        self.task = task;\n        self.responseHandlers = [[NSMutableArray alloc] init];\n    }\n    return self;\n}\n\n- (void)addResponseHandler:(AFImageDownloaderResponseHandler*)handler {\n    [self.responseHandlers addObject:handler];\n}\n\n- (void)removeResponseHandler:(AFImageDownloaderResponseHandler*)handler {\n    [self.responseHandlers removeObject:handler];\n}\n\n@end\n\n@implementation AFImageDownloadReceipt\n\n- (instancetype)initWithReceiptID:(NSUUID *)receiptID task:(NSURLSessionDataTask *)task {\n    if (self = [self init]) {\n        self.receiptID = receiptID;\n        self.task = task;\n    }\n    return self;\n}\n\n@end\n\n@interface AFImageDownloader ()\n\n@property (nonatomic, strong) dispatch_queue_t synchronizationQueue;\n@property (nonatomic, strong) dispatch_queue_t responseQueue;\n\n@property (nonatomic, assign) NSInteger maximumActiveDownloads;\n@property (nonatomic, assign) NSInteger activeRequestCount;\n\n@property (nonatomic, strong) NSMutableArray *queuedMergedTasks;\n@property (nonatomic, strong) NSMutableDictionary *mergedTasks;\n\n@end\n\n\n@implementation AFImageDownloader\n\n+ (NSURLCache *)defaultURLCache {\n    return [[NSURLCache alloc] initWithMemoryCapacity:20 * 1024 * 1024\n                                         diskCapacity:150 * 1024 * 1024\n                                             diskPath:@\"com.alamofire.imagedownloader\"];\n}\n\n+ (NSURLSessionConfiguration *)defaultURLSessionConfiguration {\n    NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];\n\n    //TODO set the default HTTP headers\n\n    configuration.HTTPShouldSetCookies = YES;\n    configuration.HTTPShouldUsePipelining = NO;\n\n    configuration.requestCachePolicy = NSURLRequestUseProtocolCachePolicy;\n    configuration.allowsCellularAccess = YES;\n    configuration.timeoutIntervalForRequest = 60.0;\n    configuration.URLCache = [AFImageDownloader defaultURLCache];\n\n    return configuration;\n}\n\n- (instancetype)init {\n    NSURLSessionConfiguration *defaultConfiguration = [self.class defaultURLSessionConfiguration];\n    AFHTTPSessionManager *sessionManager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:defaultConfiguration];\n    sessionManager.responseSerializer = [AFImageResponseSerializer serializer];\n\n    return [self initWithSessionManager:sessionManager\n                 downloadPrioritization:AFImageDownloadPrioritizationFIFO\n                 maximumActiveDownloads:4\n                             imageCache:[[AFAutoPurgingImageCache alloc] init]];\n}\n\n- (instancetype)initWithSessionManager:(AFHTTPSessionManager *)sessionManager\n                downloadPrioritization:(AFImageDownloadPrioritization)downloadPrioritization\n                maximumActiveDownloads:(NSInteger)maximumActiveDownloads\n                            imageCache:(id <AFImageRequestCache>)imageCache {\n    if (self = [super init]) {\n        self.sessionManager = sessionManager;\n\n        self.downloadPrioritizaton = downloadPrioritization;\n        self.maximumActiveDownloads = maximumActiveDownloads;\n        self.imageCache = imageCache;\n\n        self.queuedMergedTasks = [[NSMutableArray alloc] init];\n        self.mergedTasks = [[NSMutableDictionary alloc] init];\n        self.activeRequestCount = 0;\n\n        NSString *name = [NSString stringWithFormat:@\"com.alamofire.imagedownloader.synchronizationqueue-%@\", [[NSUUID UUID] UUIDString]];\n        self.synchronizationQueue = dispatch_queue_create([name cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_SERIAL);\n\n        name = [NSString stringWithFormat:@\"com.alamofire.imagedownloader.responsequeue-%@\", [[NSUUID UUID] UUIDString]];\n        self.responseQueue = dispatch_queue_create([name cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_CONCURRENT);\n    }\n\n    return self;\n}\n\n+ (instancetype)defaultInstance {\n    static AFImageDownloader *sharedInstance = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        sharedInstance = [[self alloc] init];\n    });\n    return sharedInstance;\n}\n\n- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request\n                                                        success:(void (^)(NSURLRequest * _Nonnull, NSHTTPURLResponse * _Nullable, UIImage * _Nonnull))success\n                                                        failure:(void (^)(NSURLRequest * _Nonnull, NSHTTPURLResponse * _Nullable, NSError * _Nonnull))failure {\n    return [self downloadImageForURLRequest:request withReceiptID:[NSUUID UUID] success:success failure:failure];\n}\n\n- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request\n                                                 withReceiptID:(nonnull NSUUID *)receiptID\n                                                        success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse  * _Nullable response, UIImage *responseObject))success\n                                                        failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure {\n    __block NSURLSessionDataTask *task = nil;\n    dispatch_sync(self.synchronizationQueue, ^{\n        NSString *identifier = request.URL.absoluteString;\n\n        // 1) Append the success and failure blocks to a pre-existing request if it already exists\n        AFImageDownloaderMergedTask *existingMergedTask = self.mergedTasks[identifier];\n        if (existingMergedTask != nil) {\n            AFImageDownloaderResponseHandler *handler = [[AFImageDownloaderResponseHandler alloc] initWithUUID:receiptID success:success failure:failure];\n            [existingMergedTask addResponseHandler:handler];\n            task = existingMergedTask.task;\n            return;\n        }\n\n        // 2) Attempt to load the image from the image cache if the cache policy allows it\n        switch (request.cachePolicy) {\n            case NSURLRequestUseProtocolCachePolicy:\n            case NSURLRequestReturnCacheDataElseLoad:\n            case NSURLRequestReturnCacheDataDontLoad: {\n                UIImage *cachedImage = [self.imageCache imageforRequest:request withAdditionalIdentifier:nil];\n                if (cachedImage != nil) {\n                    if (success) {\n                        dispatch_async(dispatch_get_main_queue(), ^{\n                            success(request, nil, cachedImage);\n                        });\n                    }\n                    return;\n                }\n                break;\n            }\n            default:\n                break;\n        }\n\n        // 3) Create the request and set up authentication, validation and response serialization\n        NSURLSessionDataTask *createdTask;\n        __weak __typeof__(self) weakSelf = self;\n\n        createdTask = [self.sessionManager\n                       dataTaskWithRequest:request\n                       completionHandler:^(NSURLResponse * _Nonnull response, id  _Nullable responseObject, NSError * _Nullable error) {\n                           dispatch_async(self.responseQueue, ^{\n                               __strong __typeof__(weakSelf) strongSelf = weakSelf;\n                               AFImageDownloaderMergedTask *mergedTask = [strongSelf safelyRemoveMergedTaskWithIdentifier:identifier];\n                               if (error) {\n                                   for (AFImageDownloaderResponseHandler *handler in mergedTask.responseHandlers) {\n                                       if (handler.failureBlock) {\n                                           dispatch_async(dispatch_get_main_queue(), ^{\n                                               handler.failureBlock(request, (NSHTTPURLResponse*)response, error);\n                                           });\n                                       }\n                                   }\n                               } else {\n                                   [strongSelf.imageCache addImage:responseObject forRequest:request withAdditionalIdentifier:nil];\n\n                                   for (AFImageDownloaderResponseHandler *handler in mergedTask.responseHandlers) {\n                                       if (handler.successBlock) {\n                                           dispatch_async(dispatch_get_main_queue(), ^{\n                                               handler.successBlock(request, (NSHTTPURLResponse*)response, responseObject);\n                                           });\n                                       }\n                                   }\n\n                               }\n                               [strongSelf safelyDecrementActiveTaskCount];\n                               [strongSelf safelyStartNextTaskIfNecessary];\n                           });\n                       }];\n\n        // 4) Store the response handler for use when the request completes\n        AFImageDownloaderResponseHandler *handler = [[AFImageDownloaderResponseHandler alloc] initWithUUID:receiptID\n                                                                                                   success:success\n                                                                                                   failure:failure];\n        AFImageDownloaderMergedTask *mergedTask = [[AFImageDownloaderMergedTask alloc]\n                                                   initWithIdentifier:identifier\n                                                   task:createdTask];\n        [mergedTask addResponseHandler:handler];\n        self.mergedTasks[identifier] = mergedTask;\n\n        // 5) Either start the request or enqueue it depending on the current active request count\n        if ([self isActiveRequestCountBelowMaximumLimit]) {\n            [self startMergedTask:mergedTask];\n        } else {\n            [self enqueueMergedTask:mergedTask];\n        }\n\n        task = mergedTask.task;\n    });\n    if (task) {\n        return [[AFImageDownloadReceipt alloc] initWithReceiptID:receiptID task:task];\n    } else {\n        return nil;\n    }\n}\n\n- (void)cancelTaskForImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt {\n    dispatch_sync(self.synchronizationQueue, ^{\n        NSString *identifier = imageDownloadReceipt.task.originalRequest.URL.absoluteString;\n        AFImageDownloaderMergedTask *mergedTask = self.mergedTasks[identifier];\n        NSUInteger index = [mergedTask.responseHandlers indexOfObjectPassingTest:^BOOL(AFImageDownloaderResponseHandler * _Nonnull handler, __unused NSUInteger idx, __unused BOOL * _Nonnull stop) {\n            return handler.uuid == imageDownloadReceipt.receiptID;\n        }];\n\n        if (index != NSNotFound) {\n            AFImageDownloaderResponseHandler *handler = mergedTask.responseHandlers[index];\n            [mergedTask removeResponseHandler:handler];\n            NSString *failureReason = [NSString stringWithFormat:@\"ImageDownloader cancelled URL request: %@\",imageDownloadReceipt.task.originalRequest.URL.absoluteString];\n            NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey:failureReason};\n            NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorCancelled userInfo:userInfo];\n            if (handler.failureBlock) {\n                dispatch_async(dispatch_get_main_queue(), ^{\n                    handler.failureBlock(imageDownloadReceipt.task.originalRequest, nil, error);\n                });\n            }\n        }\n\n        if (mergedTask.responseHandlers.count == 0 && mergedTask.task.state == NSURLSessionTaskStateSuspended) {\n            [mergedTask.task cancel];\n        }\n    });\n}\n\n- (AFImageDownloaderMergedTask*)safelyRemoveMergedTaskWithIdentifier:(NSString *)identifier {\n    __block AFImageDownloaderMergedTask *mergedTask = nil;\n    dispatch_sync(self.synchronizationQueue, ^{\n        mergedTask = self.mergedTasks[identifier];\n        [self.mergedTasks removeObjectForKey:identifier];\n\n    });\n    return mergedTask;\n}\n\n- (void)safelyDecrementActiveTaskCount {\n    dispatch_sync(self.synchronizationQueue, ^{\n        if (self.activeRequestCount > 0) {\n            self.activeRequestCount -= 1;\n        }\n    });\n}\n\n- (void)safelyStartNextTaskIfNecessary {\n    dispatch_sync(self.synchronizationQueue, ^{\n        if ([self isActiveRequestCountBelowMaximumLimit]) {\n            while (self.queuedMergedTasks.count > 0) {\n                AFImageDownloaderMergedTask *mergedTask = [self dequeueMergedTask];\n                if (mergedTask.task.state == NSURLSessionTaskStateSuspended) {\n                    [self startMergedTask:mergedTask];\n                    break;\n                }\n            }\n        }\n    });\n}\n\n- (void)startMergedTask:(AFImageDownloaderMergedTask *)mergedTask {\n    [mergedTask.task resume];\n    ++self.activeRequestCount;\n}\n\n- (void)enqueueMergedTask:(AFImageDownloaderMergedTask *)mergedTask {\n    switch (self.downloadPrioritizaton) {\n        case AFImageDownloadPrioritizationFIFO:\n            [self.queuedMergedTasks addObject:mergedTask];\n            break;\n        case AFImageDownloadPrioritizationLIFO:\n            [self.queuedMergedTasks insertObject:mergedTask atIndex:0];\n            break;\n    }\n}\n\n- (AFImageDownloaderMergedTask *)dequeueMergedTask {\n    AFImageDownloaderMergedTask *mergedTask = nil;\n    mergedTask = [self.queuedMergedTasks firstObject];\n    [self.queuedMergedTasks removeObject:mergedTask];\n    return mergedTask;\n}\n\n- (BOOL)isActiveRequestCountBelowMaximumLimit {\n    return self.activeRequestCount < self.maximumActiveDownloads;\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h",
    "content": "// AFNetworkActivityIndicatorManager.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n `AFNetworkActivityIndicatorManager` manages the state of the network activity indicator in the status bar. When enabled, it will listen for notifications indicating that a session task has started or finished, and start or stop animating the indicator accordingly. The number of active requests is incremented and decremented much like a stack or a semaphore, and the activity indicator will animate so long as that number is greater than zero.\n\n You should enable the shared instance of `AFNetworkActivityIndicatorManager` when your application finishes launching. In `AppDelegate application:didFinishLaunchingWithOptions:` you can do so with the following code:\n\n    [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];\n\n By setting `enabled` to `YES` for `sharedManager`, the network activity indicator will show and hide automatically as requests start and finish. You should not ever need to call `incrementActivityCount` or `decrementActivityCount` yourself.\n\n See the Apple Human Interface Guidelines section about the Network Activity Indicator for more information:\n http://developer.apple.com/library/iOS/#documentation/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/UIElementGuidelines.html#//apple_ref/doc/uid/TP40006556-CH13-SW44\n */\nNS_EXTENSION_UNAVAILABLE_IOS(\"Use view controller based solutions where appropriate instead.\")\n@interface AFNetworkActivityIndicatorManager : NSObject\n\n/**\n A Boolean value indicating whether the manager is enabled.\n\n If YES, the manager will change status bar network activity indicator according to network operation notifications it receives. The default value is NO.\n */\n@property (nonatomic, assign, getter = isEnabled) BOOL enabled;\n\n/**\n A Boolean value indicating whether the network activity indicator manager is currently active.\n*/\n@property (readonly, nonatomic, assign, getter=isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible;\n\n/**\n A time interval indicating the minimum duration of networking activity that should occur before the activity indicator is displayed. The default value 1 second. If the network activity indicator should be displayed immediately when network activity occurs, this value should be set to 0 seconds.\n \n Apple's HIG describes the following:\n\n > Display the network activity indicator to provide feedback when your app accesses the network for more than a couple of seconds. If the operation finishes sooner than that, you don’t have to show the network activity indicator, because the indicator is likely to disappear before users notice its presence.\n\n */\n@property (nonatomic, assign) NSTimeInterval activationDelay;\n\n/**\n A time interval indicating the duration of time of no networking activity required before the activity indicator is disabled. This allows for continuous display of the network activity indicator across multiple requests. The default value is 0.17 seconds.\n */\n\n@property (nonatomic, assign) NSTimeInterval completionDelay;\n\n/**\n Returns the shared network activity indicator manager object for the system.\n\n @return The systemwide network activity indicator manager.\n */\n+ (instancetype)sharedManager;\n\n/**\n Increments the number of active network requests. If this number was zero before incrementing, this will start animating the status bar network activity indicator.\n */\n- (void)incrementActivityCount;\n\n/**\n Decrements the number of active network requests. If this number becomes zero after decrementing, this will stop animating the status bar network activity indicator.\n */\n- (void)decrementActivityCount;\n\n/**\n Set the a custom method to be executed when the network activity indicator manager should be hidden/shown. By default, this is null, and the UIApplication Network Activity Indicator will be managed automatically. If this block is set, it is the responsiblity of the caller to manager the network activity indicator going forward.\n\n @param block A block to be executed when the network activity indicator status changes.\n */\n- (void)setNetworkingActivityActionWithBlock:(nullable void (^)(BOOL networkActivityIndicatorVisible))block;\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m",
    "content": "// AFNetworkActivityIndicatorManager.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"AFNetworkActivityIndicatorManager.h\"\n\n#if TARGET_OS_IOS\n#import \"AFURLSessionManager.h\"\n\ntypedef NS_ENUM(NSInteger, AFNetworkActivityManagerState) {\n    AFNetworkActivityManagerStateNotActive,\n    AFNetworkActivityManagerStateDelayingStart,\n    AFNetworkActivityManagerStateActive,\n    AFNetworkActivityManagerStateDelayingEnd\n};\n\nstatic NSTimeInterval const kDefaultAFNetworkActivityManagerActivationDelay = 1.0;\nstatic NSTimeInterval const kDefaultAFNetworkActivityManagerCompletionDelay = 0.17;\n\nstatic NSURLRequest * AFNetworkRequestFromNotification(NSNotification *notification) {\n    if ([[notification object] respondsToSelector:@selector(originalRequest)]) {\n        return [(NSURLSessionTask *)[notification object] originalRequest];\n    } else {\n        return nil;\n    }\n}\n\ntypedef void (^AFNetworkActivityActionBlock)(BOOL networkActivityIndicatorVisible);\n\n@interface AFNetworkActivityIndicatorManager ()\n@property (readwrite, nonatomic, assign) NSInteger activityCount;\n@property (readwrite, nonatomic, strong) NSTimer *activationDelayTimer;\n@property (readwrite, nonatomic, strong) NSTimer *completionDelayTimer;\n@property (readonly, nonatomic, getter = isNetworkActivityOccurring) BOOL networkActivityOccurring;\n@property (nonatomic, copy) AFNetworkActivityActionBlock networkActivityActionBlock;\n@property (nonatomic, assign) AFNetworkActivityManagerState currentState;\n@property (nonatomic, assign, getter=isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible;\n\n- (void)updateCurrentStateForNetworkActivityChange;\n@end\n\n@implementation AFNetworkActivityIndicatorManager\n\n+ (instancetype)sharedManager {\n    static AFNetworkActivityIndicatorManager *_sharedManager = nil;\n    static dispatch_once_t oncePredicate;\n    dispatch_once(&oncePredicate, ^{\n        _sharedManager = [[self alloc] init];\n    });\n\n    return _sharedManager;\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (!self) {\n        return nil;\n    }\n    self.currentState = AFNetworkActivityManagerStateNotActive;\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidStart:) name:AFNetworkingTaskDidResumeNotification object:nil];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidSuspendNotification object:nil];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidCompleteNotification object:nil];\n    self.activationDelay = kDefaultAFNetworkActivityManagerActivationDelay;\n    self.completionDelay = kDefaultAFNetworkActivityManagerCompletionDelay;\n\n    return self;\n}\n\n- (void)dealloc {\n    [[NSNotificationCenter defaultCenter] removeObserver:self];\n\n    [_activationDelayTimer invalidate];\n    [_completionDelayTimer invalidate];\n}\n\n- (void)setEnabled:(BOOL)enabled {\n    _enabled = enabled;\n    if (enabled == NO) {\n        [self setCurrentState:AFNetworkActivityManagerStateNotActive];\n    }\n}\n\n- (void)setNetworkingActivityActionWithBlock:(void (^)(BOOL networkActivityIndicatorVisible))block {\n    self.networkActivityActionBlock = block;\n}\n\n- (BOOL)isNetworkActivityOccurring {\n    @synchronized(self) {\n        return self.activityCount > 0;\n    }\n}\n\n- (void)setNetworkActivityIndicatorVisible:(BOOL)networkActivityIndicatorVisible {\n    if (_networkActivityIndicatorVisible != networkActivityIndicatorVisible) {\n        [self willChangeValueForKey:@\"networkActivityIndicatorVisible\"];\n        @synchronized(self) {\n             _networkActivityIndicatorVisible = networkActivityIndicatorVisible;\n        }\n        [self didChangeValueForKey:@\"networkActivityIndicatorVisible\"];\n        if (self.networkActivityActionBlock) {\n            self.networkActivityActionBlock(networkActivityIndicatorVisible);\n        } else {\n            [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:networkActivityIndicatorVisible];\n        }\n    }\n}\n\n- (void)setActivityCount:(NSInteger)activityCount {\n\t@synchronized(self) {\n\t\t_activityCount = activityCount;\n\t}\n\n    dispatch_async(dispatch_get_main_queue(), ^{\n        [self updateCurrentStateForNetworkActivityChange];\n    });\n}\n\n- (void)incrementActivityCount {\n    [self willChangeValueForKey:@\"activityCount\"];\n\t@synchronized(self) {\n\t\t_activityCount++;\n\t}\n    [self didChangeValueForKey:@\"activityCount\"];\n\n    dispatch_async(dispatch_get_main_queue(), ^{\n        [self updateCurrentStateForNetworkActivityChange];\n    });\n}\n\n- (void)decrementActivityCount {\n    [self willChangeValueForKey:@\"activityCount\"];\n\t@synchronized(self) {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n\t\t_activityCount = MAX(_activityCount - 1, 0);\n#pragma clang diagnostic pop\n\t}\n    [self didChangeValueForKey:@\"activityCount\"];\n\n    dispatch_async(dispatch_get_main_queue(), ^{\n        [self updateCurrentStateForNetworkActivityChange];\n    });\n}\n\n- (void)networkRequestDidStart:(NSNotification *)notification {\n    if ([AFNetworkRequestFromNotification(notification) URL]) {\n        [self incrementActivityCount];\n    }\n}\n\n- (void)networkRequestDidFinish:(NSNotification *)notification {\n    if ([AFNetworkRequestFromNotification(notification) URL]) {\n        [self decrementActivityCount];\n    }\n}\n\n#pragma mark - Internal State Management\n- (void)setCurrentState:(AFNetworkActivityManagerState)currentState {\n    @synchronized(self) {\n        if (_currentState != currentState) {\n            [self willChangeValueForKey:@\"currentState\"];\n            _currentState = currentState;\n            switch (currentState) {\n                case AFNetworkActivityManagerStateNotActive:\n                    [self cancelActivationDelayTimer];\n                    [self cancelCompletionDelayTimer];\n                    [self setNetworkActivityIndicatorVisible:NO];\n                    break;\n                case AFNetworkActivityManagerStateDelayingStart:\n                    [self startActivationDelayTimer];\n                    break;\n                case AFNetworkActivityManagerStateActive:\n                    [self cancelCompletionDelayTimer];\n                    [self setNetworkActivityIndicatorVisible:YES];\n                    break;\n                case AFNetworkActivityManagerStateDelayingEnd:\n                    [self startCompletionDelayTimer];\n                    break;\n            }\n        }\n        [self didChangeValueForKey:@\"currentState\"];\n    }\n}\n\n- (void)updateCurrentStateForNetworkActivityChange {\n    if (self.enabled) {\n        switch (self.currentState) {\n            case AFNetworkActivityManagerStateNotActive:\n                if (self.isNetworkActivityOccurring) {\n                    [self setCurrentState:AFNetworkActivityManagerStateDelayingStart];\n                }\n                break;\n            case AFNetworkActivityManagerStateDelayingStart:\n                //No op. Let the delay timer finish out.\n                break;\n            case AFNetworkActivityManagerStateActive:\n                if (!self.isNetworkActivityOccurring) {\n                    [self setCurrentState:AFNetworkActivityManagerStateDelayingEnd];\n                }\n                break;\n            case AFNetworkActivityManagerStateDelayingEnd:\n                if (self.isNetworkActivityOccurring) {\n                    [self setCurrentState:AFNetworkActivityManagerStateActive];\n                }\n                break;\n        }\n    }\n}\n\n- (void)startActivationDelayTimer {\n    self.activationDelayTimer = [NSTimer\n                                 timerWithTimeInterval:self.activationDelay target:self selector:@selector(activationDelayTimerFired) userInfo:nil repeats:NO];\n    [[NSRunLoop mainRunLoop] addTimer:self.activationDelayTimer forMode:NSRunLoopCommonModes];\n}\n\n- (void)activationDelayTimerFired {\n    if (self.networkActivityOccurring) {\n        [self setCurrentState:AFNetworkActivityManagerStateActive];\n    } else {\n        [self setCurrentState:AFNetworkActivityManagerStateNotActive];\n    }\n}\n\n- (void)startCompletionDelayTimer {\n    [self.completionDelayTimer invalidate];\n    self.completionDelayTimer = [NSTimer timerWithTimeInterval:self.completionDelay target:self selector:@selector(completionDelayTimerFired) userInfo:nil repeats:NO];\n    [[NSRunLoop mainRunLoop] addTimer:self.completionDelayTimer forMode:NSRunLoopCommonModes];\n}\n\n- (void)completionDelayTimerFired {\n    [self setCurrentState:AFNetworkActivityManagerStateNotActive];\n}\n\n- (void)cancelActivationDelayTimer {\n    [self.activationDelayTimer invalidate];\n}\n\n- (void)cancelCompletionDelayTimer {\n    [self.completionDelayTimer invalidate];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h",
    "content": "// UIActivityIndicatorView+AFNetworking.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import <UIKit/UIKit.h>\n\n/**\n This category adds methods to the UIKit framework's `UIActivityIndicatorView` class. The methods in this category provide support for automatically starting and stopping animation depending on the loading state of a session task.\n */\n@interface UIActivityIndicatorView (AFNetworking)\n\n///----------------------------------\n/// @name Animating for Session Tasks\n///----------------------------------\n\n/**\n Binds the animating state to the state of the specified task.\n\n @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled.\n */\n- (void)setAnimatingWithStateOfTask:(nullable NSURLSessionTask *)task;\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m",
    "content": "// UIActivityIndicatorView+AFNetworking.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"UIActivityIndicatorView+AFNetworking.h\"\n#import <objc/runtime.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import \"AFURLSessionManager.h\"\n\n@interface AFActivityIndicatorViewNotificationObserver : NSObject\n@property (readonly, nonatomic, weak) UIActivityIndicatorView *activityIndicatorView;\n- (instancetype)initWithActivityIndicatorView:(UIActivityIndicatorView *)activityIndicatorView;\n\n- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task;\n\n@end\n\n@implementation UIActivityIndicatorView (AFNetworking)\n\n- (AFActivityIndicatorViewNotificationObserver *)af_notificationObserver {\n    AFActivityIndicatorViewNotificationObserver *notificationObserver = objc_getAssociatedObject(self, @selector(af_notificationObserver));\n    if (notificationObserver == nil) {\n        notificationObserver = [[AFActivityIndicatorViewNotificationObserver alloc] initWithActivityIndicatorView:self];\n        objc_setAssociatedObject(self, @selector(af_notificationObserver), notificationObserver, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n    return notificationObserver;\n}\n\n- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task {\n    [[self af_notificationObserver] setAnimatingWithStateOfTask:task];\n}\n\n@end\n\n@implementation AFActivityIndicatorViewNotificationObserver\n\n- (instancetype)initWithActivityIndicatorView:(UIActivityIndicatorView *)activityIndicatorView\n{\n    self = [super init];\n    if (self) {\n        _activityIndicatorView = activityIndicatorView;\n    }\n    return self;\n}\n\n- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task {\n    NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];\n\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil];\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];\n    \n    if (task) {\n        if (task.state != NSURLSessionTaskStateCompleted) {\n            \n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wreceiver-is-weak\"\n#pragma clang diagnostic ignored \"-Warc-repeated-use-of-weak\"\n            if (task.state == NSURLSessionTaskStateRunning) {\n                [self.activityIndicatorView startAnimating];\n            } else {\n                [self.activityIndicatorView stopAnimating];\n            }\n#pragma clang diagnostic pop\n\n            [notificationCenter addObserver:self selector:@selector(af_startAnimating) name:AFNetworkingTaskDidResumeNotification object:task];\n            [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingTaskDidCompleteNotification object:task];\n            [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingTaskDidSuspendNotification object:task];\n        }\n    }\n}\n\n#pragma mark -\n\n- (void)af_startAnimating {\n    dispatch_async(dispatch_get_main_queue(), ^{\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wreceiver-is-weak\"\n        [self.activityIndicatorView startAnimating];\n#pragma clang diagnostic pop\n    });\n}\n\n- (void)af_stopAnimating {\n    dispatch_async(dispatch_get_main_queue(), ^{\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wreceiver-is-weak\"\n        [self.activityIndicatorView stopAnimating];\n#pragma clang diagnostic pop\n    });\n}\n\n#pragma mark -\n\n- (void)dealloc {\n    NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];\n    \n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h",
    "content": "// UIButton+AFNetworking.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class AFImageDownloader;\n\n/**\n This category adds methods to the UIKit framework's `UIButton` class. The methods in this category provide support for loading remote images and background images asynchronously from a URL.\n\n @warning Compound values for control `state` (such as `UIControlStateHighlighted | UIControlStateDisabled`) are unsupported.\n */\n@interface UIButton (AFNetworking)\n\n///------------------------------------\n/// @name Accessing the Image Downloader\n///------------------------------------\n\n/**\n Set the shared image downloader used to download images.\n\n @param imageDownloader The shared image downloader used to download images.\n*/\n+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader;\n\n/**\n The shared image downloader used to download images.\n */\n+ (AFImageDownloader *)sharedImageDownloader;\n\n///--------------------\n/// @name Setting Image\n///--------------------\n\n/**\n Asynchronously downloads an image from the specified URL, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.\n\n  If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.\n\n @param state The control state.\n @param url The URL used for the image request.\n */\n- (void)setImageForState:(UIControlState)state\n                 withURL:(NSURL *)url;\n\n/**\n Asynchronously downloads an image from the specified URL, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.\n\n If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.\n\n @param state The control state.\n @param url The URL used for the image request.\n @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes.\n */\n- (void)setImageForState:(UIControlState)state\n                 withURL:(NSURL *)url\n        placeholderImage:(nullable UIImage *)placeholderImage;\n\n/**\n Asynchronously downloads an image from the specified URL request, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.\n\n If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.\n\n If a success block is specified, it is the responsibility of the block to set the image of the button before returning. If no success block is specified, the default behavior of setting the image with `setImage:forState:` is applied.\n\n @param state The control state.\n @param urlRequest The URL request used for the image request.\n @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes.\n @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.\n @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.\n */\n- (void)setImageForState:(UIControlState)state\n          withURLRequest:(NSURLRequest *)urlRequest\n        placeholderImage:(nullable UIImage *)placeholderImage\n                 success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success\n                 failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;\n\n\n///-------------------------------\n/// @name Setting Background Image\n///-------------------------------\n\n/**\n Asynchronously downloads an image from the specified URL, and sets it as the background image for the specified state once the request is finished. Any previous background image request for the receiver will be cancelled.\n\n If the background image is cached locally, the background image is set immediately, otherwise the specified placeholder background image will be set immediately, and then the remote background image will be set once the request is finished.\n\n @param state The control state.\n @param url The URL used for the background image request.\n */\n- (void)setBackgroundImageForState:(UIControlState)state\n                           withURL:(NSURL *)url;\n\n/**\n Asynchronously downloads an image from the specified URL, and sets it as the background image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.\n\n If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.\n\n @param state The control state.\n @param url The URL used for the background image request.\n @param placeholderImage The background image to be set initially, until the background image request finishes. If `nil`, the button will not change its background image until the background image request finishes.\n */\n- (void)setBackgroundImageForState:(UIControlState)state\n                           withURL:(NSURL *)url\n                  placeholderImage:(nullable UIImage *)placeholderImage;\n\n/**\n Asynchronously downloads an image from the specified URL request, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.\n\n If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.\n\n If a success block is specified, it is the responsibility of the block to set the image of the button before returning. If no success block is specified, the default behavior of setting the image with `setBackgroundImage:forState:` is applied.\n\n @param state The control state.\n @param urlRequest The URL request used for the image request.\n @param placeholderImage The background image to be set initially, until the background image request finishes. If `nil`, the button will not change its background image until the background image request finishes.\n @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.\n @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.\n */\n- (void)setBackgroundImageForState:(UIControlState)state\n                    withURLRequest:(NSURLRequest *)urlRequest\n                  placeholderImage:(nullable UIImage *)placeholderImage\n                           success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success\n                           failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;\n\n\n///------------------------------\n/// @name Canceling Image Loading\n///------------------------------\n\n/**\n Cancels any executing image task for the specified control state of the receiver, if one exists.\n\n @param state The control state.\n */\n- (void)cancelImageDownloadTaskForState:(UIControlState)state;\n\n/**\n Cancels any executing background image task for the specified control state of the receiver, if one exists.\n\n @param state The control state.\n */\n- (void)cancelBackgroundImageDownloadTaskForState:(UIControlState)state;\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m",
    "content": "// UIButton+AFNetworking.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"UIButton+AFNetworking.h\"\n\n#import <objc/runtime.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import \"UIImageView+AFNetworking.h\"\n#import \"AFImageDownloader.h\"\n\n@interface UIButton (_AFNetworking)\n@end\n\n@implementation UIButton (_AFNetworking)\n\n#pragma mark -\n\nstatic char AFImageDownloadReceiptNormal;\nstatic char AFImageDownloadReceiptHighlighted;\nstatic char AFImageDownloadReceiptSelected;\nstatic char AFImageDownloadReceiptDisabled;\n\nstatic const char * af_imageDownloadReceiptKeyForState(UIControlState state) {\n    switch (state) {\n        case UIControlStateHighlighted:\n            return &AFImageDownloadReceiptHighlighted;\n        case UIControlStateSelected:\n            return &AFImageDownloadReceiptSelected;\n        case UIControlStateDisabled:\n            return &AFImageDownloadReceiptDisabled;\n        case UIControlStateNormal:\n        default:\n            return &AFImageDownloadReceiptNormal;\n    }\n}\n\n- (AFImageDownloadReceipt *)af_imageDownloadReceiptForState:(UIControlState)state {\n    return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, af_imageDownloadReceiptKeyForState(state));\n}\n\n- (void)af_setImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt\n                           forState:(UIControlState)state\n{\n    objc_setAssociatedObject(self, af_imageDownloadReceiptKeyForState(state), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n#pragma mark -\n\nstatic char AFBackgroundImageDownloadReceiptNormal;\nstatic char AFBackgroundImageDownloadReceiptHighlighted;\nstatic char AFBackgroundImageDownloadReceiptSelected;\nstatic char AFBackgroundImageDownloadReceiptDisabled;\n\nstatic const char * af_backgroundImageDownloadReceiptKeyForState(UIControlState state) {\n    switch (state) {\n        case UIControlStateHighlighted:\n            return &AFBackgroundImageDownloadReceiptHighlighted;\n        case UIControlStateSelected:\n            return &AFBackgroundImageDownloadReceiptSelected;\n        case UIControlStateDisabled:\n            return &AFBackgroundImageDownloadReceiptDisabled;\n        case UIControlStateNormal:\n        default:\n            return &AFBackgroundImageDownloadReceiptNormal;\n    }\n}\n\n- (AFImageDownloadReceipt *)af_backgroundImageDownloadReceiptForState:(UIControlState)state {\n    return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, af_backgroundImageDownloadReceiptKeyForState(state));\n}\n\n- (void)af_setBackgroundImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt\n                                     forState:(UIControlState)state\n{\n    objc_setAssociatedObject(self, af_backgroundImageDownloadReceiptKeyForState(state), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n@end\n\n#pragma mark -\n\n@implementation UIButton (AFNetworking)\n\n+ (AFImageDownloader *)sharedImageDownloader {\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n    return objc_getAssociatedObject(self, @selector(sharedImageDownloader)) ?: [AFImageDownloader defaultInstance];\n#pragma clang diagnostic pop\n}\n\n+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader {\n    objc_setAssociatedObject(self, @selector(sharedImageDownloader), imageDownloader, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n#pragma mark -\n\n- (void)setImageForState:(UIControlState)state\n                 withURL:(NSURL *)url\n{\n    [self setImageForState:state withURL:url placeholderImage:nil];\n}\n\n- (void)setImageForState:(UIControlState)state\n                 withURL:(NSURL *)url\n        placeholderImage:(UIImage *)placeholderImage\n{\n    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];\n    [request addValue:@\"image/*\" forHTTPHeaderField:@\"Accept\"];\n\n    [self setImageForState:state withURLRequest:request placeholderImage:placeholderImage success:nil failure:nil];\n}\n\n- (void)setImageForState:(UIControlState)state\n          withURLRequest:(NSURLRequest *)urlRequest\n        placeholderImage:(nullable UIImage *)placeholderImage\n                 success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success\n                 failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure\n{\n    if ([self isActiveTaskURLEqualToURLRequest:urlRequest forState:state]) {\n        return;\n    }\n\n    [self cancelImageDownloadTaskForState:state];\n\n    AFImageDownloader *downloader = [[self class] sharedImageDownloader];\n    id <AFImageRequestCache> imageCache = downloader.imageCache;\n\n    //Use the image from the image cache if it exists\n    UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil];\n    if (cachedImage) {\n        if (success) {\n            success(urlRequest, nil, cachedImage);\n        } else {\n            [self setImage:cachedImage forState:state];\n        }\n        [self af_setImageDownloadReceipt:nil forState:state];\n    } else {\n        if (placeholderImage) {\n            [self setImage:placeholderImage forState:state];\n        }\n\n        __weak __typeof(self)weakSelf = self;\n        NSUUID *downloadID = [NSUUID UUID];\n        AFImageDownloadReceipt *receipt;\n        receipt = [downloader\n                   downloadImageForURLRequest:urlRequest\n                   withReceiptID:downloadID\n                   success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) {\n                       __strong __typeof(weakSelf)strongSelf = weakSelf;\n                       if ([[strongSelf af_imageDownloadReceiptForState:state].receiptID isEqual:downloadID]) {\n                           if (success) {\n                               success(request, response, responseObject);\n                           } else if(responseObject) {\n                               [strongSelf setImage:responseObject forState:state];\n                           }\n                           [strongSelf af_setImageDownloadReceipt:nil forState:state];\n                       }\n\n                   }\n                   failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) {\n                       __strong __typeof(weakSelf)strongSelf = weakSelf;\n                       if ([[strongSelf af_imageDownloadReceiptForState:state].receiptID isEqual:downloadID]) {\n                           if (failure) {\n                               failure(request, response, error);\n                           }\n                           [strongSelf  af_setImageDownloadReceipt:nil forState:state];\n                       }\n                   }];\n\n        [self af_setImageDownloadReceipt:receipt forState:state];\n    }\n}\n\n#pragma mark -\n\n- (void)setBackgroundImageForState:(UIControlState)state\n                           withURL:(NSURL *)url\n{\n    [self setBackgroundImageForState:state withURL:url placeholderImage:nil];\n}\n\n- (void)setBackgroundImageForState:(UIControlState)state\n                           withURL:(NSURL *)url\n                  placeholderImage:(nullable UIImage *)placeholderImage\n{\n    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];\n    [request addValue:@\"image/*\" forHTTPHeaderField:@\"Accept\"];\n\n    [self setBackgroundImageForState:state withURLRequest:request placeholderImage:placeholderImage success:nil failure:nil];\n}\n\n- (void)setBackgroundImageForState:(UIControlState)state\n                    withURLRequest:(NSURLRequest *)urlRequest\n                  placeholderImage:(nullable UIImage *)placeholderImage\n                           success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success\n                           failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure\n{\n    if ([self isActiveBackgroundTaskURLEqualToURLRequest:urlRequest forState:state]) {\n        return;\n    }\n\n    [self cancelImageDownloadTaskForState:state];\n\n    AFImageDownloader *downloader = [[self class] sharedImageDownloader];\n    id <AFImageRequestCache> imageCache = downloader.imageCache;\n\n    //Use the image from the image cache if it exists\n    UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil];\n    if (cachedImage) {\n        if (success) {\n            success(urlRequest, nil, cachedImage);\n        } else {\n            [self setBackgroundImage:cachedImage forState:state];\n        }\n        [self af_setBackgroundImageDownloadReceipt:nil forState:state];\n    } else {\n        if (placeholderImage) {\n            [self setBackgroundImage:placeholderImage forState:state];\n        }\n\n        __weak __typeof(self)weakSelf = self;\n        NSUUID *downloadID = [NSUUID UUID];\n        AFImageDownloadReceipt *receipt;\n        receipt = [downloader\n                   downloadImageForURLRequest:urlRequest\n                   withReceiptID:downloadID\n                   success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) {\n                       __strong __typeof(weakSelf)strongSelf = weakSelf;\n                       if ([[strongSelf af_backgroundImageDownloadReceiptForState:state].receiptID isEqual:downloadID]) {\n                           if (success) {\n                               success(request, response, responseObject);\n                           } else if(responseObject) {\n                               [strongSelf setBackgroundImage:responseObject forState:state];\n                           }\n                           [strongSelf af_setImageDownloadReceipt:nil forState:state];\n                       }\n\n                   }\n                   failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) {\n                       __strong __typeof(weakSelf)strongSelf = weakSelf;\n                       if ([[strongSelf af_backgroundImageDownloadReceiptForState:state].receiptID isEqual:downloadID]) {\n                           if (failure) {\n                               failure(request, response, error);\n                           }\n                           [strongSelf  af_setBackgroundImageDownloadReceipt:nil forState:state];\n                       }\n                   }];\n\n        [self af_setBackgroundImageDownloadReceipt:receipt forState:state];\n    }\n}\n\n#pragma mark -\n\n- (void)cancelImageDownloadTaskForState:(UIControlState)state {\n    AFImageDownloadReceipt *receipt = [self af_imageDownloadReceiptForState:state];\n    if (receipt != nil) {\n        [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:receipt];\n        [self af_setImageDownloadReceipt:nil forState:state];\n    }\n}\n\n- (void)cancelBackgroundImageDownloadTaskForState:(UIControlState)state {\n    AFImageDownloadReceipt *receipt = [self af_backgroundImageDownloadReceiptForState:state];\n    if (receipt != nil) {\n        [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:receipt];\n        [self af_setBackgroundImageDownloadReceipt:nil forState:state];\n    }\n}\n\n- (BOOL)isActiveTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest forState:(UIControlState)state {\n    AFImageDownloadReceipt *receipt = [self af_imageDownloadReceiptForState:state];\n    return [receipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString];\n}\n\n- (BOOL)isActiveBackgroundTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest forState:(UIControlState)state {\n    AFImageDownloadReceipt *receipt = [self af_backgroundImageDownloadReceiptForState:state];\n    return [receipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString];\n}\n\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h",
    "content": "//\n//  UIImage+AFNetworking.h\n//  \n//\n//  Created by Paulo Ferreira on 08/07/15.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (AFNetworking)\n\n+ (UIImage*) safeImageWithData:(NSData*)data;\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h",
    "content": "// UIImageView+AFNetworking.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class AFImageDownloader;\n\n/**\n This category adds methods to the UIKit framework's `UIImageView` class. The methods in this category provide support for loading remote images asynchronously from a URL.\n */\n@interface UIImageView (AFNetworking)\n\n///------------------------------------\n/// @name Accessing the Image Downloader\n///------------------------------------\n\n/**\n Set the shared image downloader used to download images.\n\n @param imageDownloader The shared image downloader used to download images.\n */\n+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader;\n\n/**\n The shared image downloader used to download images.\n */\n+ (AFImageDownloader *)sharedImageDownloader;\n\n///--------------------\n/// @name Setting Image\n///--------------------\n\n/**\n Asynchronously downloads an image from the specified URL, and sets it once the request is finished. Any previous image request for the receiver will be cancelled.\n\n If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.\n\n By default, URL requests have a `Accept` header field value of \"image / *\", a cache policy of `NSURLCacheStorageAllowed` and a timeout interval of 30 seconds, and are set not handle cookies. To configure URL requests differently, use `setImageWithURLRequest:placeholderImage:success:failure:`\n\n @param url The URL used for the image request.\n */\n- (void)setImageWithURL:(NSURL *)url;\n\n/**\n Asynchronously downloads an image from the specified URL, and sets it once the request is finished. Any previous image request for the receiver will be cancelled.\n\n If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.\n\n By default, URL requests have a `Accept` header field value of \"image / *\", a cache policy of `NSURLCacheStorageAllowed` and a timeout interval of 30 seconds, and are set not handle cookies. To configure URL requests differently, use `setImageWithURLRequest:placeholderImage:success:failure:`\n\n @param url The URL used for the image request.\n @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the image view will not change its image until the image request finishes.\n */\n- (void)setImageWithURL:(NSURL *)url\n       placeholderImage:(nullable UIImage *)placeholderImage;\n\n/**\n Asynchronously downloads an image from the specified URL request, and sets it once the request is finished. Any previous image request for the receiver will be cancelled.\n\n If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.\n\n If a success block is specified, it is the responsibility of the block to set the image of the image view before returning. If no success block is specified, the default behavior of setting the image with `self.image = image` is applied.\n\n @param urlRequest The URL request used for the image request.\n @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the image view will not change its image until the image request finishes.\n @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.\n @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.\n */\n- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest\n              placeholderImage:(nullable UIImage *)placeholderImage\n                       success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success\n                       failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;\n\n/**\n Cancels any executing image operation for the receiver, if one exists.\n */\n- (void)cancelImageDownloadTask;\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m",
    "content": "// UIImageView+AFNetworking.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"UIImageView+AFNetworking.h\"\n\n#import <objc/runtime.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import \"AFImageDownloader.h\"\n\n@interface UIImageView (_AFNetworking)\n@property (readwrite, nonatomic, strong, setter = af_setActiveImageDownloadReceipt:) AFImageDownloadReceipt *af_activeImageDownloadReceipt;\n@end\n\n@implementation UIImageView (_AFNetworking)\n\n- (AFImageDownloadReceipt *)af_activeImageDownloadReceipt {\n    return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, @selector(af_activeImageDownloadReceipt));\n}\n\n- (void)af_setActiveImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt {\n    objc_setAssociatedObject(self, @selector(af_activeImageDownloadReceipt), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n@end\n\n#pragma mark -\n\n@implementation UIImageView (AFNetworking)\n\n+ (AFImageDownloader *)sharedImageDownloader {\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n    return objc_getAssociatedObject(self, @selector(sharedImageDownloader)) ?: [AFImageDownloader defaultInstance];\n#pragma clang diagnostic pop\n}\n\n+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader {\n    objc_setAssociatedObject(self, @selector(sharedImageDownloader), imageDownloader, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n#pragma mark -\n\n- (void)setImageWithURL:(NSURL *)url {\n    [self setImageWithURL:url placeholderImage:nil];\n}\n\n- (void)setImageWithURL:(NSURL *)url\n       placeholderImage:(UIImage *)placeholderImage\n{\n    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];\n    [request addValue:@\"image/*\" forHTTPHeaderField:@\"Accept\"];\n\n    [self setImageWithURLRequest:request placeholderImage:placeholderImage success:nil failure:nil];\n}\n\n- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest\n              placeholderImage:(UIImage *)placeholderImage\n                       success:(void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success\n                       failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure\n{\n\n    if ([urlRequest URL] == nil) {\n        [self cancelImageDownloadTask];\n        self.image = placeholderImage;\n        return;\n    }\n\n    if ([self isActiveTaskURLEqualToURLRequest:urlRequest]){\n        return;\n    }\n\n    [self cancelImageDownloadTask];\n\n    AFImageDownloader *downloader = [[self class] sharedImageDownloader];\n    id <AFImageRequestCache> imageCache = downloader.imageCache;\n\n    //Use the image from the image cache if it exists\n    UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil];\n    if (cachedImage) {\n        if (success) {\n            success(urlRequest, nil, cachedImage);\n        } else {\n            self.image = cachedImage;\n        }\n        [self clearActiveDownloadInformation];\n    } else {\n        if (placeholderImage) {\n            self.image = placeholderImage;\n        }\n\n        __weak __typeof(self)weakSelf = self;\n        NSUUID *downloadID = [NSUUID UUID];\n        AFImageDownloadReceipt *receipt;\n        receipt = [downloader\n                   downloadImageForURLRequest:urlRequest\n                   withReceiptID:downloadID\n                   success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) {\n                       __strong __typeof(weakSelf)strongSelf = weakSelf;\n                       if ([strongSelf.af_activeImageDownloadReceipt.receiptID isEqual:downloadID]) {\n                           if (success) {\n                               success(request, response, responseObject);\n                           } else if(responseObject) {\n                               strongSelf.image = responseObject;\n                           }\n                           [strongSelf clearActiveDownloadInformation];\n                       }\n\n                   }\n                   failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) {\n                       __strong __typeof(weakSelf)strongSelf = weakSelf;\n                        if ([strongSelf.af_activeImageDownloadReceipt.receiptID isEqual:downloadID]) {\n                            if (failure) {\n                                failure(request, response, error);\n                            }\n                            [strongSelf clearActiveDownloadInformation];\n                        }\n                   }];\n\n        self.af_activeImageDownloadReceipt = receipt;\n    }\n}\n\n- (void)cancelImageDownloadTask {\n    if (self.af_activeImageDownloadReceipt != nil) {\n        [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:self.af_activeImageDownloadReceipt];\n        [self clearActiveDownloadInformation];\n     }\n}\n\n- (void)clearActiveDownloadInformation {\n    self.af_activeImageDownloadReceipt = nil;\n}\n\n- (BOOL)isActiveTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest {\n    return [self.af_activeImageDownloadReceipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h",
    "content": "// UIKit+AFNetworking.h\n//\n// Copyright (c) 2013 AFNetworking (http://afnetworking.com/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n#import <UIKit/UIKit.h>\n\n#ifndef _UIKIT_AFNETWORKING_\n    #define _UIKIT_AFNETWORKING_\n\n#if TARGET_OS_IOS\n    #import \"AFAutoPurgingImageCache.h\"\n    #import \"AFImageDownloader.h\"\n    #import \"AFNetworkActivityIndicatorManager.h\"\n    #import \"UIRefreshControl+AFNetworking.h\"\n    #import \"UIWebView+AFNetworking.h\"\n#endif\n\n    #import \"UIActivityIndicatorView+AFNetworking.h\"\n    #import \"UIButton+AFNetworking.h\"\n    #import \"UIImageView+AFNetworking.h\"\n    #import \"UIProgressView+AFNetworking.h\"\n#endif /* _UIKIT_AFNETWORKING_ */\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h",
    "content": "// UIProgressView+AFNetworking.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n\n/**\n This category adds methods to the UIKit framework's `UIProgressView` class. The methods in this category provide support for binding the progress to the upload and download progress of a session task.\n */\n@interface UIProgressView (AFNetworking)\n\n///------------------------------------\n/// @name Setting Session Task Progress\n///------------------------------------\n\n/**\n Binds the progress to the upload progress of the specified session task.\n\n @param task The session task.\n @param animated `YES` if the change should be animated, `NO` if the change should happen immediately.\n */\n- (void)setProgressWithUploadProgressOfTask:(NSURLSessionUploadTask *)task\n                                   animated:(BOOL)animated;\n\n/**\n Binds the progress to the download progress of the specified session task.\n\n @param task The session task.\n @param animated `YES` if the change should be animated, `NO` if the change should happen immediately.\n */\n- (void)setProgressWithDownloadProgressOfTask:(NSURLSessionDownloadTask *)task\n                                     animated:(BOOL)animated;\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m",
    "content": "// UIProgressView+AFNetworking.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"UIProgressView+AFNetworking.h\"\n\n#import <objc/runtime.h>\n\n#if TARGET_OS_IOS || TARGET_OS_TV\n\n#import \"AFURLSessionManager.h\"\n\nstatic void * AFTaskCountOfBytesSentContext = &AFTaskCountOfBytesSentContext;\nstatic void * AFTaskCountOfBytesReceivedContext = &AFTaskCountOfBytesReceivedContext;\n\n#pragma mark -\n\n@implementation UIProgressView (AFNetworking)\n\n- (BOOL)af_uploadProgressAnimated {\n    return [(NSNumber *)objc_getAssociatedObject(self, @selector(af_uploadProgressAnimated)) boolValue];\n}\n\n- (void)af_setUploadProgressAnimated:(BOOL)animated {\n    objc_setAssociatedObject(self, @selector(af_uploadProgressAnimated), @(animated), OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n- (BOOL)af_downloadProgressAnimated {\n    return [(NSNumber *)objc_getAssociatedObject(self, @selector(af_downloadProgressAnimated)) boolValue];\n}\n\n- (void)af_setDownloadProgressAnimated:(BOOL)animated {\n    objc_setAssociatedObject(self, @selector(af_downloadProgressAnimated), @(animated), OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n#pragma mark -\n\n- (void)setProgressWithUploadProgressOfTask:(NSURLSessionUploadTask *)task\n                                   animated:(BOOL)animated\n{\n    [task addObserver:self forKeyPath:@\"state\" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesSentContext];\n    [task addObserver:self forKeyPath:@\"countOfBytesSent\" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesSentContext];\n\n    [self af_setUploadProgressAnimated:animated];\n}\n\n- (void)setProgressWithDownloadProgressOfTask:(NSURLSessionDownloadTask *)task\n                                     animated:(BOOL)animated\n{\n    [task addObserver:self forKeyPath:@\"state\" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesReceivedContext];\n    [task addObserver:self forKeyPath:@\"countOfBytesReceived\" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesReceivedContext];\n\n    [self af_setDownloadProgressAnimated:animated];\n}\n\n#pragma mark - NSKeyValueObserving\n\n- (void)observeValueForKeyPath:(NSString *)keyPath\n                      ofObject:(id)object\n                        change:(__unused NSDictionary *)change\n                       context:(void *)context\n{\n    if (context == AFTaskCountOfBytesSentContext || context == AFTaskCountOfBytesReceivedContext) {\n        if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesSent))]) {\n            if ([object countOfBytesExpectedToSend] > 0) {\n                dispatch_async(dispatch_get_main_queue(), ^{\n                    [self setProgress:[object countOfBytesSent] / ([object countOfBytesExpectedToSend] * 1.0f) animated:self.af_uploadProgressAnimated];\n                });\n            }\n        }\n\n        if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesReceived))]) {\n            if ([object countOfBytesExpectedToReceive] > 0) {\n                dispatch_async(dispatch_get_main_queue(), ^{\n                    [self setProgress:[object countOfBytesReceived] / ([object countOfBytesExpectedToReceive] * 1.0f) animated:self.af_downloadProgressAnimated];\n                });\n            }\n        }\n\n        if ([keyPath isEqualToString:NSStringFromSelector(@selector(state))]) {\n            if ([(NSURLSessionTask *)object state] == NSURLSessionTaskStateCompleted) {\n                @try {\n                    [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(state))];\n\n                    if (context == AFTaskCountOfBytesSentContext) {\n                        [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesSent))];\n                    }\n\n                    if (context == AFTaskCountOfBytesReceivedContext) {\n                        [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesReceived))];\n                    }\n                }\n                @catch (NSException * __unused exception) {}\n            }\n        }\n    }\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h",
    "content": "// UIRefreshControl+AFNetworking.m\n//\n// Copyright (c) 2014 AFNetworking (http://afnetworking.com)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n This category adds methods to the UIKit framework's `UIRefreshControl` class. The methods in this category provide support for automatically beginning and ending refreshing depending on the loading state of a session task.\n */\n@interface UIRefreshControl (AFNetworking)\n\n///-----------------------------------\n/// @name Refreshing for Session Tasks\n///-----------------------------------\n\n/**\n Binds the refreshing state to the state of the specified task.\n \n @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled.\n */\n- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task;\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m",
    "content": "// UIRefreshControl+AFNetworking.m\n//\n// Copyright (c) 2014 AFNetworking (http://afnetworking.com)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"UIRefreshControl+AFNetworking.h\"\n#import <objc/runtime.h>\n\n#if TARGET_OS_IOS\n\n#import \"AFURLSessionManager.h\"\n\n@interface AFRefreshControlNotificationObserver : NSObject\n@property (readonly, nonatomic, weak) UIRefreshControl *refreshControl;\n- (instancetype)initWithActivityRefreshControl:(UIRefreshControl *)refreshControl;\n\n- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task;\n\n@end\n\n@implementation UIRefreshControl (AFNetworking)\n\n- (AFRefreshControlNotificationObserver *)af_notificationObserver {\n    AFRefreshControlNotificationObserver *notificationObserver = objc_getAssociatedObject(self, @selector(af_notificationObserver));\n    if (notificationObserver == nil) {\n        notificationObserver = [[AFRefreshControlNotificationObserver alloc] initWithActivityRefreshControl:self];\n        objc_setAssociatedObject(self, @selector(af_notificationObserver), notificationObserver, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n    return notificationObserver;\n}\n\n- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task {\n    [[self af_notificationObserver] setRefreshingWithStateOfTask:task];\n}\n\n@end\n\n@implementation AFRefreshControlNotificationObserver\n\n- (instancetype)initWithActivityRefreshControl:(UIRefreshControl *)refreshControl\n{\n    self = [super init];\n    if (self) {\n        _refreshControl = refreshControl;\n    }\n    return self;\n}\n\n- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task {\n    NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];\n\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil];\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];\n\n    if (task) {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wreceiver-is-weak\"\n#pragma clang diagnostic ignored \"-Warc-repeated-use-of-weak\"\n        if (task.state == NSURLSessionTaskStateRunning) {\n            [self.refreshControl beginRefreshing];\n\n            [notificationCenter addObserver:self selector:@selector(af_beginRefreshing) name:AFNetworkingTaskDidResumeNotification object:task];\n            [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingTaskDidCompleteNotification object:task];\n            [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingTaskDidSuspendNotification object:task];\n        } else {\n            [self.refreshControl endRefreshing];\n        }\n#pragma clang diagnostic pop\n    }\n}\n\n#pragma mark -\n\n- (void)af_beginRefreshing {\n    dispatch_async(dispatch_get_main_queue(), ^{\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wreceiver-is-weak\"\n        [self.refreshControl beginRefreshing];\n#pragma clang diagnostic pop\n    });\n}\n\n- (void)af_endRefreshing {\n    dispatch_async(dispatch_get_main_queue(), ^{\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wreceiver-is-weak\"\n        [self.refreshControl endRefreshing];\n#pragma clang diagnostic pop\n    });\n}\n\n#pragma mark -\n\n- (void)dealloc {\n    NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];\n    \n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];\n    [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h",
    "content": "// UIWebView+AFNetworking.h\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <TargetConditionals.h>\n\n#if TARGET_OS_IOS\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class AFHTTPSessionManager;\n\n/**\n This category adds methods to the UIKit framework's `UIWebView` class. The methods in this category provide increased control over the request cycle, including progress monitoring and success / failure handling.\n\n @discussion When using these category methods, make sure to assign `delegate` for the web view, which implements `–webView:shouldStartLoadWithRequest:navigationType:` appropriately. This allows for tapped links to be loaded through AFNetworking, and can ensure that `canGoBack` & `canGoForward` update their values correctly.\n */\n@interface UIWebView (AFNetworking)\n\n/**\n The session manager used to download all requests.\n */\n@property (nonatomic, strong) AFHTTPSessionManager *sessionManager;\n\n/**\n Asynchronously loads the specified request.\n\n @param request A URL request identifying the location of the content to load. This must not be `nil`.\n @param progress A progress object monitoring the current download progress.\n @param success A block object to be executed when the request finishes loading successfully. This block returns the HTML string to be loaded by the web view, and takes two arguments: the response, and the response string.\n @param failure A block object to be executed when the data task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the error that occurred.\n */\n- (void)loadRequest:(NSURLRequest *)request\n           progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress\n            success:(nullable NSString * (^)(NSHTTPURLResponse *response, NSString *HTML))success\n            failure:(nullable void (^)(NSError *error))failure;\n\n/**\n Asynchronously loads the data associated with a particular request with a specified MIME type and text encoding.\n\n @param request A URL request identifying the location of the content to load. This must not be `nil`.\n @param MIMEType The MIME type of the content. Defaults to the content type of the response if not specified.\n @param textEncodingName The IANA encoding name, as in `utf-8` or `utf-16`. Defaults to the response text encoding if not specified.\n@param progress A progress object monitoring the current download progress.\n @param success A block object to be executed when the request finishes loading successfully. This block returns the data to be loaded by the web view and takes two arguments: the response, and the downloaded data.\n @param failure A block object to be executed when the data task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the error that occurred.\n */\n- (void)loadRequest:(NSURLRequest *)request\n           MIMEType:(nullable NSString *)MIMEType\n   textEncodingName:(nullable NSString *)textEncodingName\n           progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress\n            success:(nullable NSData * (^)(NSHTTPURLResponse *response, NSData *data))success\n            failure:(nullable void (^)(NSError *error))failure;\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n#endif\n"
  },
  {
    "path": "Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m",
    "content": "// UIWebView+AFNetworking.m\n// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import \"UIWebView+AFNetworking.h\"\n\n#import <objc/runtime.h>\n\n#if TARGET_OS_IOS\n\n#import \"AFHTTPSessionManager.h\"\n#import \"AFURLResponseSerialization.h\"\n#import \"AFURLRequestSerialization.h\"\n\n@interface UIWebView (_AFNetworking)\n@property (readwrite, nonatomic, strong, setter = af_setURLSessionTask:) NSURLSessionDataTask *af_URLSessionTask;\n@end\n\n@implementation UIWebView (_AFNetworking)\n\n- (NSURLSessionDataTask *)af_URLSessionTask {\n    return (NSURLSessionDataTask *)objc_getAssociatedObject(self, @selector(af_URLSessionTask));\n}\n\n- (void)af_setURLSessionTask:(NSURLSessionDataTask *)af_URLSessionTask {\n    objc_setAssociatedObject(self, @selector(af_URLSessionTask), af_URLSessionTask, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n@end\n\n#pragma mark -\n\n@implementation UIWebView (AFNetworking)\n\n- (AFHTTPSessionManager  *)sessionManager {\n    static AFHTTPSessionManager *_af_defaultHTTPSessionManager = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        _af_defaultHTTPSessionManager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];\n        _af_defaultHTTPSessionManager.requestSerializer = [AFHTTPRequestSerializer serializer];\n        _af_defaultHTTPSessionManager.responseSerializer = [AFHTTPResponseSerializer serializer];\n    });\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n    return objc_getAssociatedObject(self, @selector(sessionManager)) ?: _af_defaultHTTPSessionManager;\n#pragma clang diagnostic pop\n}\n\n- (void)setSessionManager:(AFHTTPSessionManager *)sessionManager {\n    objc_setAssociatedObject(self, @selector(sessionManager), sessionManager, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n- (AFHTTPResponseSerializer <AFURLResponseSerialization> *)responseSerializer {\n    static AFHTTPResponseSerializer <AFURLResponseSerialization> *_af_defaultResponseSerializer = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        _af_defaultResponseSerializer = [AFHTTPResponseSerializer serializer];\n    });\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wgnu\"\n    return objc_getAssociatedObject(self, @selector(responseSerializer)) ?: _af_defaultResponseSerializer;\n#pragma clang diagnostic pop\n}\n\n- (void)setResponseSerializer:(AFHTTPResponseSerializer<AFURLResponseSerialization> *)responseSerializer {\n    objc_setAssociatedObject(self, @selector(responseSerializer), responseSerializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n#pragma mark -\n\n- (void)loadRequest:(NSURLRequest *)request\n           progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress\n            success:(NSString * (^)(NSHTTPURLResponse *response, NSString *HTML))success\n            failure:(void (^)(NSError *error))failure\n{\n    [self loadRequest:request MIMEType:nil textEncodingName:nil progress:progress success:^NSData *(NSHTTPURLResponse *response, NSData *data) {\n        NSStringEncoding stringEncoding = NSUTF8StringEncoding;\n        if (response.textEncodingName) {\n            CFStringEncoding encoding = CFStringConvertIANACharSetNameToEncoding((CFStringRef)response.textEncodingName);\n            if (encoding != kCFStringEncodingInvalidId) {\n                stringEncoding = CFStringConvertEncodingToNSStringEncoding(encoding);\n            }\n        }\n\n        NSString *string = [[NSString alloc] initWithData:data encoding:stringEncoding];\n        if (success) {\n            string = success(response, string);\n        }\n\n        return [string dataUsingEncoding:stringEncoding];\n    } failure:failure];\n}\n\n- (void)loadRequest:(NSURLRequest *)request\n           MIMEType:(NSString *)MIMEType\n   textEncodingName:(NSString *)textEncodingName\n           progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress\n            success:(NSData * (^)(NSHTTPURLResponse *response, NSData *data))success\n            failure:(void (^)(NSError *error))failure\n{\n    NSParameterAssert(request);\n\n    if (self.af_URLSessionTask.state == NSURLSessionTaskStateRunning || self.af_URLSessionTask.state == NSURLSessionTaskStateSuspended) {\n        [self.af_URLSessionTask cancel];\n    }\n    self.af_URLSessionTask = nil;\n\n    __weak __typeof(self)weakSelf = self;\n    NSURLSessionDataTask *dataTask;\n    dataTask = [self.sessionManager\n            GET:request.URL.absoluteString\n            parameters:nil\n            progress:nil\n            success:^(NSURLSessionDataTask * _Nonnull task, id  _Nonnull responseObject) {\n                __strong __typeof(weakSelf) strongSelf = weakSelf;\n                if (success) {\n                    success((NSHTTPURLResponse *)task.response, responseObject);\n                }\n                [strongSelf loadData:responseObject MIMEType:MIMEType textEncodingName:textEncodingName baseURL:[task.currentRequest URL]];\n\n                if ([strongSelf.delegate respondsToSelector:@selector(webViewDidStartLoad:)]) {\n                    [strongSelf.delegate webViewDidFinishLoad:strongSelf];\n                }\n            }\n            failure:^(NSURLSessionDataTask * _Nonnull task, NSError * _Nonnull error) {\n                if (failure) {\n                    failure(error);\n                }\n            }];\n    self.af_URLSessionTask = dataTask;\n    *progress = [self.sessionManager downloadProgressForTask:dataTask];\n    [self.af_URLSessionTask resume];\n\n    if ([self.delegate respondsToSelector:@selector(webViewDidStartLoad:)]) {\n        [self.delegate webViewDidStartLoad:self];\n    }\n}\n\n@end\n\n#endif"
  },
  {
    "path": "Pods/MBProgressHUD/LICENSE",
    "content": "Copyright (c) 2009-2015 Matej Bukovinski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."
  },
  {
    "path": "Pods/MBProgressHUD/MBProgressHUD.h",
    "content": "//\n//  MBProgressHUD.h\n//  Version 0.9.2\n//  Created by Matej Bukovinski on 2.4.09.\n//\n\n// This code is distributed under the terms and conditions of the MIT license. \n\n// Copyright (c) 2009-2015 Matej Bukovinski\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import <CoreGraphics/CoreGraphics.h>\n\n@protocol MBProgressHUDDelegate;\n\n\ntypedef NS_ENUM(NSInteger, MBProgressHUDMode) {\n\t/** Progress is shown using an UIActivityIndicatorView. This is the default. */\n\tMBProgressHUDModeIndeterminate,\n\t/** Progress is shown using a round, pie-chart like, progress view. */\n\tMBProgressHUDModeDeterminate,\n\t/** Progress is shown using a horizontal progress bar */\n\tMBProgressHUDModeDeterminateHorizontalBar,\n\t/** Progress is shown using a ring-shaped progress view. */\n\tMBProgressHUDModeAnnularDeterminate,\n\t/** Shows a custom view */\n\tMBProgressHUDModeCustomView,\n\t/** Shows only labels */\n\tMBProgressHUDModeText\n};\n\ntypedef NS_ENUM(NSInteger, MBProgressHUDAnimation) {\n\t/** Opacity animation */\n\tMBProgressHUDAnimationFade,\n\t/** Opacity + scale animation */\n\tMBProgressHUDAnimationZoom,\n\tMBProgressHUDAnimationZoomOut = MBProgressHUDAnimationZoom,\n\tMBProgressHUDAnimationZoomIn\n};\n\n\n#ifndef MB_INSTANCETYPE\n#if __has_feature(objc_instancetype)\n\t#define MB_INSTANCETYPE instancetype\n#else\n\t#define MB_INSTANCETYPE id\n#endif\n#endif\n\n#ifndef MB_STRONG\n#if __has_feature(objc_arc)\n\t#define MB_STRONG strong\n#else\n\t#define MB_STRONG retain\n#endif\n#endif\n\n#ifndef MB_WEAK\n#if __has_feature(objc_arc_weak)\n\t#define MB_WEAK weak\n#elif __has_feature(objc_arc)\n\t#define MB_WEAK unsafe_unretained\n#else\n\t#define MB_WEAK assign\n#endif\n#endif\n\n#if NS_BLOCKS_AVAILABLE\ntypedef void (^MBProgressHUDCompletionBlock)();\n#endif\n\n\n/** \n * Displays a simple HUD window containing a progress indicator and two optional labels for short messages.\n *\n * This is a simple drop-in class for displaying a progress HUD view similar to Apple's private UIProgressHUD class.\n * The MBProgressHUD window spans over the entire space given to it by the initWithFrame constructor and catches all\n * user input on this region, thereby preventing the user operations on components below the view. The HUD itself is\n * drawn centered as a rounded semi-transparent view which resizes depending on the user specified content.\n *\n * This view supports four modes of operation:\n *  - MBProgressHUDModeIndeterminate - shows a UIActivityIndicatorView\n *  - MBProgressHUDModeDeterminate - shows a custom round progress indicator\n *  - MBProgressHUDModeAnnularDeterminate - shows a custom annular progress indicator\n *  - MBProgressHUDModeCustomView - shows an arbitrary, user specified view (see `customView`)\n *\n * All three modes can have optional labels assigned:\n *  - If the labelText property is set and non-empty then a label containing the provided content is placed below the\n *    indicator view.\n *  - If also the detailsLabelText property is set then another label is placed below the first label.\n */\n@interface MBProgressHUD : UIView\n\n/**\n * Creates a new HUD, adds it to provided view and shows it. The counterpart to this method is hideHUDForView:animated:.\n *\n * @note This method sets `removeFromSuperViewOnHide`. The HUD will automatically be removed from the view hierarchy when hidden.\n *\n * @param view The view that the HUD will be added to\n * @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use\n * animations while appearing.\n * @return A reference to the created HUD.\n *\n * @see hideHUDForView:animated:\n * @see animationType\n */\n+ (MB_INSTANCETYPE)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;\n\n/**\n * Finds the top-most HUD subview and hides it. The counterpart to this method is showHUDAddedTo:animated:.\n *\n * @note This method sets `removeFromSuperViewOnHide`. The HUD will automatically be removed from the view hierarchy when hidden.\n *\n * @param view The view that is going to be searched for a HUD subview.\n * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use\n * animations while disappearing.\n * @return YES if a HUD was found and removed, NO otherwise.\n *\n * @see showHUDAddedTo:animated:\n * @see animationType\n */\n+ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;\n\n/**\n * Finds all the HUD subviews and hides them. \n *\n * @note This method sets `removeFromSuperViewOnHide`. The HUDs will automatically be removed from the view hierarchy when hidden.\n *\n * @param view The view that is going to be searched for HUD subviews.\n * @param animated If set to YES the HUDs will disappear using the current animationType. If set to NO the HUDs will not use\n * animations while disappearing.\n * @return the number of HUDs found and removed.\n *\n * @see hideHUDForView:animated:\n * @see animationType\n */\n+ (NSUInteger)hideAllHUDsForView:(UIView *)view animated:(BOOL)animated;\n\n/**\n * Finds the top-most HUD subview and returns it. \n *\n * @param view The view that is going to be searched.\n * @return A reference to the last HUD subview discovered.\n */\n+ (MB_INSTANCETYPE)HUDForView:(UIView *)view;\n\n/**\n * Finds all HUD subviews and returns them.\n *\n * @param view The view that is going to be searched.\n * @return All found HUD views (array of MBProgressHUD objects).\n */\n+ (NSArray *)allHUDsForView:(UIView *)view;\n\n/**\n * A convenience constructor that initializes the HUD with the window's bounds. Calls the designated constructor with\n * window.bounds as the parameter.\n *\n * @param window The window instance that will provide the bounds for the HUD. Should be the same instance as\n * the HUD's superview (i.e., the window that the HUD will be added to).\n */\n- (id)initWithWindow:(UIWindow *)window;\n\n/**\n * A convenience constructor that initializes the HUD with the view's bounds. Calls the designated constructor with\n * view.bounds as the parameter\n *\n * @param view The view instance that will provide the bounds for the HUD. Should be the same instance as\n * the HUD's superview (i.e., the view that the HUD will be added to).\n */\n- (id)initWithView:(UIView *)view;\n\n/** \n * Display the HUD. You need to make sure that the main thread completes its run loop soon after this method call so\n * the user interface can be updated. Call this method when your task is already set-up to be executed in a new thread\n * (e.g., when using something like NSOperation or calling an asynchronous call like NSURLRequest).\n *\n * @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use\n * animations while appearing.\n *\n * @see animationType\n */\n- (void)show:(BOOL)animated;\n\n/** \n * Hide the HUD. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to\n * hide the HUD when your task completes.\n *\n * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use\n * animations while disappearing.\n *\n * @see animationType\n */\n- (void)hide:(BOOL)animated;\n\n/** \n * Hide the HUD after a delay. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to\n * hide the HUD when your task completes.\n *\n * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use\n * animations while disappearing.\n * @param delay Delay in seconds until the HUD is hidden.\n *\n * @see animationType\n */\n- (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay;\n\n/** \n * Shows the HUD while a background task is executing in a new thread, then hides the HUD.\n *\n * This method also takes care of autorelease pools so your method does not have to be concerned with setting up a\n * pool.\n *\n * @param method The method to be executed while the HUD is shown. This method will be executed in a new thread.\n * @param target The object that the target method belongs to.\n * @param object An optional object to be passed to the method.\n * @param animated If set to YES the HUD will (dis)appear using the current animationType. If set to NO the HUD will not use\n * animations while (dis)appearing.\n */\n- (void)showWhileExecuting:(SEL)method onTarget:(id)target withObject:(id)object animated:(BOOL)animated;\n\n#if NS_BLOCKS_AVAILABLE\n\n/**\n * Shows the HUD while a block is executing on a background queue, then hides the HUD.\n *\n * @see showAnimated:whileExecutingBlock:onQueue:completionBlock:\n */\n- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block;\n\n/**\n * Shows the HUD while a block is executing on a background queue, then hides the HUD.\n *\n * @see showAnimated:whileExecutingBlock:onQueue:completionBlock:\n */\n- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block completionBlock:(MBProgressHUDCompletionBlock)completion;\n\n/**\n * Shows the HUD while a block is executing on the specified dispatch queue, then hides the HUD.\n *\n * @see showAnimated:whileExecutingBlock:onQueue:completionBlock:\n */\n- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue;\n\n/** \n * Shows the HUD while a block is executing on the specified dispatch queue, executes completion block on the main queue, and then hides the HUD.\n *\n * @param animated If set to YES the HUD will (dis)appear using the current animationType. If set to NO the HUD will\n * not use animations while (dis)appearing.\n * @param block The block to be executed while the HUD is shown.\n * @param queue The dispatch queue on which the block should be executed.\n * @param completion The block to be executed on completion.\n *\n * @see completionBlock\n */\n- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue\n\t\t  completionBlock:(MBProgressHUDCompletionBlock)completion;\n\n/**\n * A block that gets called after the HUD was completely hidden.\n */\n@property (copy) MBProgressHUDCompletionBlock completionBlock;\n\n#endif\n\n/** \n * MBProgressHUD operation mode. The default is MBProgressHUDModeIndeterminate.\n *\n * @see MBProgressHUDMode\n */\n@property (assign) MBProgressHUDMode mode;\n\n/**\n * The animation type that should be used when the HUD is shown and hidden. \n *\n * @see MBProgressHUDAnimation\n */\n@property (assign) MBProgressHUDAnimation animationType;\n\n/**\n * The UIView (e.g., a UIImageView) to be shown when the HUD is in MBProgressHUDModeCustomView.\n * For best results use a 37 by 37 pixel view (so the bounds match the built in indicator bounds). \n */\n@property (MB_STRONG) UIView *customView;\n\n/** \n * The HUD delegate object. \n *\n * @see MBProgressHUDDelegate\n */\n@property (MB_WEAK) id<MBProgressHUDDelegate> delegate;\n\n/** \n * An optional short message to be displayed below the activity indicator. The HUD is automatically resized to fit\n * the entire text. If the text is too long it will get clipped by displaying \"...\" at the end. If left unchanged or\n * set to @\"\", then no message is displayed.\n */\n@property (copy) NSString *labelText;\n\n/** \n * An optional details message displayed below the labelText message. This message is displayed only if the labelText\n * property is also set and is different from an empty string (@\"\"). The details text can span multiple lines. \n */\n@property (copy) NSString *detailsLabelText;\n\n/** \n * The opacity of the HUD window. Defaults to 0.8 (80% opacity). \n */\n@property (assign) float opacity;\n\n/**\n * The color of the HUD window. Defaults to black. If this property is set, color is set using\n * this UIColor and the opacity property is not used.  using retain because performing copy on\n * UIColor base colors (like [UIColor greenColor]) cause problems with the copyZone.\n */\n@property (MB_STRONG) UIColor *color;\n\n/** \n * The x-axis offset of the HUD relative to the centre of the superview. \n */\n@property (assign) float xOffset;\n\n/** \n * The y-axis offset of the HUD relative to the centre of the superview. \n */\n@property (assign) float yOffset;\n\n/**\n * The amount of space between the HUD edge and the HUD elements (labels, indicators or custom views). \n * Defaults to 20.0\n */\n@property (assign) float margin;\n\n/**\n * The corner radius for the HUD\n * Defaults to 10.0\n */\n@property (assign) float cornerRadius;\n\n/** \n * Cover the HUD background view with a radial gradient. \n */\n@property (assign) BOOL dimBackground;\n\n/*\n * Grace period is the time (in seconds) that the invoked method may be run without \n * showing the HUD. If the task finishes before the grace time runs out, the HUD will\n * not be shown at all. \n * This may be used to prevent HUD display for very short tasks.\n * Defaults to 0 (no grace time).\n * Grace time functionality is only supported when the task status is known!\n * @see taskInProgress\n */\n@property (assign) float graceTime;\n\n/**\n * The minimum time (in seconds) that the HUD is shown. \n * This avoids the problem of the HUD being shown and than instantly hidden.\n * Defaults to 0 (no minimum show time).\n */\n@property (assign) float minShowTime;\n\n/**\n * Indicates that the executed operation is in progress. Needed for correct graceTime operation.\n * If you don't set a graceTime (different than 0.0) this does nothing.\n * This property is automatically set when using showWhileExecuting:onTarget:withObject:animated:.\n * When threading is done outside of the HUD (i.e., when the show: and hide: methods are used directly),\n * you need to set this property when your task starts and completes in order to have normal graceTime \n * functionality.\n */\n@property (assign) BOOL taskInProgress;\n\n/**\n * Removes the HUD from its parent view when hidden. \n * Defaults to NO. \n */\n@property (assign) BOOL removeFromSuperViewOnHide;\n\n/** \n * Font to be used for the main label. Set this property if the default is not adequate. \n */\n@property (MB_STRONG) UIFont* labelFont;\n\n/**\n * Color to be used for the main label. Set this property if the default is not adequate.\n */\n@property (MB_STRONG) UIColor* labelColor;\n\n/**\n * Font to be used for the details label. Set this property if the default is not adequate.\n */\n@property (MB_STRONG) UIFont* detailsLabelFont;\n\n/** \n * Color to be used for the details label. Set this property if the default is not adequate.\n */\n@property (MB_STRONG) UIColor* detailsLabelColor;\n\n/**\n * The color of the activity indicator. Defaults to [UIColor whiteColor]\n * Does nothing on pre iOS 5.\n */\n@property (MB_STRONG) UIColor *activityIndicatorColor;\n\n/** \n * The progress of the progress indicator, from 0.0 to 1.0. Defaults to 0.0. \n */\n@property (assign) float progress;\n\n/**\n * The minimum size of the HUD bezel. Defaults to CGSizeZero (no minimum size).\n */\n@property (assign) CGSize minSize;\n\n\n/**\n * The actual size of the HUD bezel.\n * You can use this to limit touch handling on the bezel area only.\n * @see https://github.com/jdg/MBProgressHUD/pull/200\n */\n@property (atomic, assign, readonly) CGSize size;\n\n\n/**\n * Force the HUD dimensions to be equal if possible. \n */\n@property (assign, getter = isSquare) BOOL square;\n\n@end\n\n\n@protocol MBProgressHUDDelegate <NSObject>\n\n@optional\n\n/** \n * Called after the HUD was fully hidden from the screen. \n */\n- (void)hudWasHidden:(MBProgressHUD *)hud;\n\n@end\n\n\n/**\n * A progress view for showing definite progress by filling up a circle (pie chart).\n */\n@interface MBRoundProgressView : UIView \n\n/**\n * Progress (0.0 to 1.0)\n */\n@property (nonatomic, assign) float progress;\n\n/**\n * Indicator progress color.\n * Defaults to white [UIColor whiteColor]\n */\n@property (nonatomic, MB_STRONG) UIColor *progressTintColor;\n\n/**\n * Indicator background (non-progress) color.\n * Defaults to translucent white (alpha 0.1)\n */\n@property (nonatomic, MB_STRONG) UIColor *backgroundTintColor;\n\n/*\n * Display mode - NO = round or YES = annular. Defaults to round.\n */\n@property (nonatomic, assign, getter = isAnnular) BOOL annular;\n\n@end\n\n\n/**\n * A flat bar progress view. \n */\n@interface MBBarProgressView : UIView\n\n/**\n * Progress (0.0 to 1.0)\n */\n@property (nonatomic, assign) float progress;\n\n/**\n * Bar border line color.\n * Defaults to white [UIColor whiteColor].\n */\n@property (nonatomic, MB_STRONG) UIColor *lineColor;\n\n/**\n * Bar background color.\n * Defaults to clear [UIColor clearColor];\n */\n@property (nonatomic, MB_STRONG) UIColor *progressRemainingColor;\n\n/**\n * Bar progress color.\n * Defaults to white [UIColor whiteColor].\n */\n@property (nonatomic, MB_STRONG) UIColor *progressColor;\n\n@end\n"
  },
  {
    "path": "Pods/MBProgressHUD/MBProgressHUD.m",
    "content": "//\n// MBProgressHUD.m\n// Version 0.9.2\n// Created by Matej Bukovinski on 2.4.09.\n//\n\n#import \"MBProgressHUD.h\"\n#import <tgmath.h>\n\n\n#if __has_feature(objc_arc)\n\t#define MB_AUTORELEASE(exp) exp\n\t#define MB_RELEASE(exp) exp\n\t#define MB_RETAIN(exp) exp\n#else\n\t#define MB_AUTORELEASE(exp) [exp autorelease]\n\t#define MB_RELEASE(exp) [exp release]\n\t#define MB_RETAIN(exp) [exp retain]\n#endif\n\n#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000\n    #define MBLabelAlignmentCenter NSTextAlignmentCenter\n#else\n    #define MBLabelAlignmentCenter UITextAlignmentCenter\n#endif\n\n#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000\n\t#define MB_TEXTSIZE(text, font) [text length] > 0 ? [text \\\n\t\tsizeWithAttributes:@{NSFontAttributeName:font}] : CGSizeZero;\n#else\n\t#define MB_TEXTSIZE(text, font) [text length] > 0 ? [text sizeWithFont:font] : CGSizeZero;\n#endif\n\n#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000\n\t#define MB_MULTILINE_TEXTSIZE(text, font, maxSize, mode) [text length] > 0 ? [text \\\n\t\tboundingRectWithSize:maxSize options:(NSStringDrawingUsesLineFragmentOrigin) \\\n\t\tattributes:@{NSFontAttributeName:font} context:nil].size : CGSizeZero;\n#else\n\t#define MB_MULTILINE_TEXTSIZE(text, font, maxSize, mode) [text length] > 0 ? [text \\\n\t\tsizeWithFont:font constrainedToSize:maxSize lineBreakMode:mode] : CGSizeZero;\n#endif\n\n#ifndef kCFCoreFoundationVersionNumber_iOS_7_0\n\t#define kCFCoreFoundationVersionNumber_iOS_7_0 847.20\n#endif\n\n#ifndef kCFCoreFoundationVersionNumber_iOS_8_0\n\t#define kCFCoreFoundationVersionNumber_iOS_8_0 1129.15\n#endif\n\n\nstatic const CGFloat kPadding = 4.f;\nstatic const CGFloat kLabelFontSize = 16.f;\nstatic const CGFloat kDetailsLabelFontSize = 12.f;\n\n\n@interface MBProgressHUD () {\n\tBOOL useAnimation;\n\tSEL methodForExecution;\n\tid targetForExecution;\n\tid objectForExecution;\n\tUILabel *label;\n\tUILabel *detailsLabel;\n\tBOOL isFinished;\n\tCGAffineTransform rotationTransform;\n}\n\n@property (atomic, MB_STRONG) UIView *indicator;\n@property (atomic, MB_STRONG) NSTimer *graceTimer;\n@property (atomic, MB_STRONG) NSTimer *minShowTimer;\n@property (atomic, MB_STRONG) NSDate *showStarted;\n\n@end\n\n\n@implementation MBProgressHUD\n\n#pragma mark - Properties\n\n@synthesize animationType;\n@synthesize delegate;\n@synthesize opacity;\n@synthesize color;\n@synthesize labelFont;\n@synthesize labelColor;\n@synthesize detailsLabelFont;\n@synthesize detailsLabelColor;\n@synthesize indicator;\n@synthesize xOffset;\n@synthesize yOffset;\n@synthesize minSize;\n@synthesize square;\n@synthesize margin;\n@synthesize dimBackground;\n@synthesize graceTime;\n@synthesize minShowTime;\n@synthesize graceTimer;\n@synthesize minShowTimer;\n@synthesize taskInProgress;\n@synthesize removeFromSuperViewOnHide;\n@synthesize customView;\n@synthesize showStarted;\n@synthesize mode;\n@synthesize labelText;\n@synthesize detailsLabelText;\n@synthesize progress;\n@synthesize size;\n@synthesize activityIndicatorColor;\n#if NS_BLOCKS_AVAILABLE\n@synthesize completionBlock;\n#endif\n\n#pragma mark - Class methods\n\n+ (MB_INSTANCETYPE)showHUDAddedTo:(UIView *)view animated:(BOOL)animated {\n\tMBProgressHUD *hud = [[self alloc] initWithView:view];\n\thud.removeFromSuperViewOnHide = YES;\n\t[view addSubview:hud];\n\t[hud show:animated];\n\treturn MB_AUTORELEASE(hud);\n}\n\n+ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated {\n\tMBProgressHUD *hud = [self HUDForView:view];\n\tif (hud != nil) {\n\t\thud.removeFromSuperViewOnHide = YES;\n\t\t[hud hide:animated];\n\t\treturn YES;\n\t}\n\treturn NO;\n}\n\n+ (NSUInteger)hideAllHUDsForView:(UIView *)view animated:(BOOL)animated {\n\tNSArray *huds = [MBProgressHUD allHUDsForView:view];\n\tfor (MBProgressHUD *hud in huds) {\n\t\thud.removeFromSuperViewOnHide = YES;\n\t\t[hud hide:animated];\n\t}\n\treturn [huds count];\n}\n\n+ (MB_INSTANCETYPE)HUDForView:(UIView *)view {\n\tNSEnumerator *subviewsEnum = [view.subviews reverseObjectEnumerator];\n\tfor (UIView *subview in subviewsEnum) {\n\t\tif ([subview isKindOfClass:self]) {\n\t\t\treturn (MBProgressHUD *)subview;\n\t\t}\n\t}\n\treturn nil;\n}\n\n+ (NSArray *)allHUDsForView:(UIView *)view {\n\tNSMutableArray *huds = [NSMutableArray array];\n\tNSArray *subviews = view.subviews;\n\tfor (UIView *aView in subviews) {\n\t\tif ([aView isKindOfClass:self]) {\n\t\t\t[huds addObject:aView];\n\t\t}\n\t}\n\treturn [NSArray arrayWithArray:huds];\n}\n\n#pragma mark - Lifecycle\n\n- (id)initWithFrame:(CGRect)frame {\n\tself = [super initWithFrame:frame];\n\tif (self) {\n\t\t// Set default values for properties\n\t\tself.animationType = MBProgressHUDAnimationFade;\n\t\tself.mode = MBProgressHUDModeIndeterminate;\n\t\tself.labelText = nil;\n\t\tself.detailsLabelText = nil;\n\t\tself.opacity = 0.8f;\n\t\tself.color = nil;\n\t\tself.labelFont = [UIFont boldSystemFontOfSize:kLabelFontSize];\n\t\tself.labelColor = [UIColor whiteColor];\n\t\tself.detailsLabelFont = [UIFont boldSystemFontOfSize:kDetailsLabelFontSize];\n\t\tself.detailsLabelColor = [UIColor whiteColor];\n\t\tself.activityIndicatorColor = [UIColor whiteColor];\n\t\tself.xOffset = 0.0f;\n\t\tself.yOffset = 0.0f;\n\t\tself.dimBackground = NO;\n\t\tself.margin = 20.0f;\n\t\tself.cornerRadius = 10.0f;\n\t\tself.graceTime = 0.0f;\n\t\tself.minShowTime = 0.0f;\n\t\tself.removeFromSuperViewOnHide = NO;\n\t\tself.minSize = CGSizeZero;\n\t\tself.square = NO;\n\t\tself.contentMode = UIViewContentModeCenter;\n\t\tself.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin\n\t\t\t\t\t\t\t\t| UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;\n\n\t\t// Transparent background\n\t\tself.opaque = NO;\n\t\tself.backgroundColor = [UIColor clearColor];\n\t\t// Make it invisible for now\n\t\tself.alpha = 0.0f;\n\t\t\n\t\ttaskInProgress = NO;\n\t\trotationTransform = CGAffineTransformIdentity;\n\t\t\n\t\t[self setupLabels];\n\t\t[self updateIndicators];\n\t\t[self registerForKVO];\n\t\t[self registerForNotifications];\n\t}\n\treturn self;\n}\n\n- (id)initWithView:(UIView *)view {\n\tNSAssert(view, @\"View must not be nil.\");\n\treturn [self initWithFrame:view.bounds];\n}\n\n- (id)initWithWindow:(UIWindow *)window {\n\treturn [self initWithView:window];\n}\n\n- (void)dealloc {\n\t[self unregisterFromNotifications];\n\t[self unregisterFromKVO];\n#if !__has_feature(objc_arc)\n\t[color release];\n\t[indicator release];\n\t[label release];\n\t[detailsLabel release];\n\t[labelText release];\n\t[detailsLabelText release];\n\t[graceTimer release];\n\t[minShowTimer release];\n\t[showStarted release];\n\t[customView release];\n\t[labelFont release];\n\t[labelColor release];\n\t[detailsLabelFont release];\n\t[detailsLabelColor release];\n#if NS_BLOCKS_AVAILABLE\n\t[completionBlock release];\n#endif\n\t[super dealloc];\n#endif\n}\n\n#pragma mark - Show & hide\n\n- (void)show:(BOOL)animated {\n    NSAssert([NSThread isMainThread], @\"MBProgressHUD needs to be accessed on the main thread.\");\n\tuseAnimation = animated;\n\t// If the grace time is set postpone the HUD display\n\tif (self.graceTime > 0.0) {\n        NSTimer *newGraceTimer = [NSTimer timerWithTimeInterval:self.graceTime target:self selector:@selector(handleGraceTimer:) userInfo:nil repeats:NO];\n        [[NSRunLoop currentRunLoop] addTimer:newGraceTimer forMode:NSRunLoopCommonModes];\n        self.graceTimer = newGraceTimer;\n\t} \n\t// ... otherwise show the HUD imediately \n\telse {\n\t\t[self showUsingAnimation:useAnimation];\n\t}\n}\n\n- (void)hide:(BOOL)animated {\n    NSAssert([NSThread isMainThread], @\"MBProgressHUD needs to be accessed on the main thread.\");\n\tuseAnimation = animated;\n\t// If the minShow time is set, calculate how long the hud was shown,\n\t// and pospone the hiding operation if necessary\n\tif (self.minShowTime > 0.0 && showStarted) {\n\t\tNSTimeInterval interv = [[NSDate date] timeIntervalSinceDate:showStarted];\n\t\tif (interv < self.minShowTime) {\n\t\t\tself.minShowTimer = [NSTimer scheduledTimerWithTimeInterval:(self.minShowTime - interv) target:self \n\t\t\t\t\t\t\t\tselector:@selector(handleMinShowTimer:) userInfo:nil repeats:NO];\n\t\t\treturn;\n\t\t} \n\t}\n\t// ... otherwise hide the HUD immediately\n\t[self hideUsingAnimation:useAnimation];\n}\n\n- (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay {\n\t[self performSelector:@selector(hideDelayed:) withObject:[NSNumber numberWithBool:animated] afterDelay:delay];\n}\n\n- (void)hideDelayed:(NSNumber *)animated {\n\t[self hide:[animated boolValue]];\n}\n\n#pragma mark - Timer callbacks\n\n- (void)handleGraceTimer:(NSTimer *)theTimer {\n\t// Show the HUD only if the task is still running\n\tif (taskInProgress) {\n\t\t[self showUsingAnimation:useAnimation];\n\t}\n}\n\n- (void)handleMinShowTimer:(NSTimer *)theTimer {\n\t[self hideUsingAnimation:useAnimation];\n}\n\n#pragma mark - View Hierrarchy\n\n- (void)didMoveToSuperview {\n    [self updateForCurrentOrientationAnimated:NO];\n}\n\n#pragma mark - Internal show & hide operations\n\n- (void)showUsingAnimation:(BOOL)animated {\n    // Cancel any scheduled hideDelayed: calls\n    [NSObject cancelPreviousPerformRequestsWithTarget:self];\n    [self setNeedsDisplay];\n\n\tif (animated && animationType == MBProgressHUDAnimationZoomIn) {\n\t\tself.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(0.5f, 0.5f));\n\t} else if (animated && animationType == MBProgressHUDAnimationZoomOut) {\n\t\tself.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(1.5f, 1.5f));\n\t}\n\tself.showStarted = [NSDate date];\n\t// Fade in\n\tif (animated) {\n\t\t[UIView beginAnimations:nil context:NULL];\n\t\t[UIView setAnimationDuration:0.30];\n\t\tself.alpha = 1.0f;\n\t\tif (animationType == MBProgressHUDAnimationZoomIn || animationType == MBProgressHUDAnimationZoomOut) {\n\t\t\tself.transform = rotationTransform;\n\t\t}\n\t\t[UIView commitAnimations];\n\t}\n\telse {\n\t\tself.alpha = 1.0f;\n\t}\n}\n\n- (void)hideUsingAnimation:(BOOL)animated {\n\t// Fade out\n\tif (animated && showStarted) {\n\t\t[UIView beginAnimations:nil context:NULL];\n\t\t[UIView setAnimationDuration:0.30];\n\t\t[UIView setAnimationDelegate:self];\n\t\t[UIView setAnimationDidStopSelector:@selector(animationFinished:finished:context:)];\n\t\t// 0.02 prevents the hud from passing through touches during the animation the hud will get completely hidden\n\t\t// in the done method\n\t\tif (animationType == MBProgressHUDAnimationZoomIn) {\n\t\t\tself.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(1.5f, 1.5f));\n\t\t} else if (animationType == MBProgressHUDAnimationZoomOut) {\n\t\t\tself.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(0.5f, 0.5f));\n\t\t}\n\n\t\tself.alpha = 0.02f;\n\t\t[UIView commitAnimations];\n\t}\n\telse {\n\t\tself.alpha = 0.0f;\n\t\t[self done];\n\t}\n\tself.showStarted = nil;\n}\n\n- (void)animationFinished:(NSString *)animationID finished:(BOOL)finished context:(void*)context {\n\t[self done];\n}\n\n- (void)done {\n\t[NSObject cancelPreviousPerformRequestsWithTarget:self];\n\tisFinished = YES;\n\tself.alpha = 0.0f;\n\tif (removeFromSuperViewOnHide) {\n\t\t[self removeFromSuperview];\n\t}\n#if NS_BLOCKS_AVAILABLE\n\tif (self.completionBlock) {\n\t\tself.completionBlock();\n\t\tself.completionBlock = NULL;\n\t}\n#endif\n\tif ([delegate respondsToSelector:@selector(hudWasHidden:)]) {\n\t\t[delegate performSelector:@selector(hudWasHidden:) withObject:self];\n\t}\n}\n\n#pragma mark - Threading\n\n- (void)showWhileExecuting:(SEL)method onTarget:(id)target withObject:(id)object animated:(BOOL)animated {\n\tmethodForExecution = method;\n\ttargetForExecution = MB_RETAIN(target);\n\tobjectForExecution = MB_RETAIN(object);\t\n\t// Launch execution in new thread\n\tself.taskInProgress = YES;\n\t[NSThread detachNewThreadSelector:@selector(launchExecution) toTarget:self withObject:nil];\n\t// Show HUD view\n\t[self show:animated];\n}\n\n#if NS_BLOCKS_AVAILABLE\n\n- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block {\n\tdispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);\n\t[self showAnimated:animated whileExecutingBlock:block onQueue:queue completionBlock:NULL];\n}\n\n- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block completionBlock:(void (^)())completion {\n\tdispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);\n\t[self showAnimated:animated whileExecutingBlock:block onQueue:queue completionBlock:completion];\n}\n\n- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue {\n\t[self showAnimated:animated whileExecutingBlock:block onQueue:queue\tcompletionBlock:NULL];\n}\n\n- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue\n\t completionBlock:(MBProgressHUDCompletionBlock)completion {\n\tself.taskInProgress = YES;\n\tself.completionBlock = completion;\n\tdispatch_async(queue, ^(void) {\n\t\tblock();\n\t\tdispatch_async(dispatch_get_main_queue(), ^(void) {\n\t\t\t[self cleanUp];\n\t\t});\n\t});\n\t[self show:animated];\n}\n\n#endif\n\n- (void)launchExecution {\n\t@autoreleasepool {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Warc-performSelector-leaks\"\n\t\t// Start executing the requested task\n\t\t[targetForExecution performSelector:methodForExecution withObject:objectForExecution];\n#pragma clang diagnostic pop\n\t\t// Task completed, update view in main thread (note: view operations should\n\t\t// be done only in the main thread)\n\t\t[self performSelectorOnMainThread:@selector(cleanUp) withObject:nil waitUntilDone:NO];\n\t}\n}\n\n- (void)cleanUp {\n\ttaskInProgress = NO;\n#if !__has_feature(objc_arc)\n\t[targetForExecution release];\n\t[objectForExecution release];\n#else\n\ttargetForExecution = nil;\n\tobjectForExecution = nil;\n#endif\n\t[self hide:useAnimation];\n}\n\n#pragma mark - UI\n\n- (void)setupLabels {\n\tlabel = [[UILabel alloc] initWithFrame:self.bounds];\n\tlabel.adjustsFontSizeToFitWidth = NO;\n\tlabel.textAlignment = MBLabelAlignmentCenter;\n\tlabel.opaque = NO;\n\tlabel.backgroundColor = [UIColor clearColor];\n\tlabel.textColor = self.labelColor;\n\tlabel.font = self.labelFont;\n\tlabel.text = self.labelText;\n\t[self addSubview:label];\n\t\n\tdetailsLabel = [[UILabel alloc] initWithFrame:self.bounds];\n\tdetailsLabel.font = self.detailsLabelFont;\n\tdetailsLabel.adjustsFontSizeToFitWidth = NO;\n\tdetailsLabel.textAlignment = MBLabelAlignmentCenter;\n\tdetailsLabel.opaque = NO;\n\tdetailsLabel.backgroundColor = [UIColor clearColor];\n\tdetailsLabel.textColor = self.detailsLabelColor;\n\tdetailsLabel.numberOfLines = 0;\n\tdetailsLabel.font = self.detailsLabelFont;\n\tdetailsLabel.text = self.detailsLabelText;\n\t[self addSubview:detailsLabel];\n}\n\n- (void)updateIndicators {\n\t\n\tBOOL isActivityIndicator = [indicator isKindOfClass:[UIActivityIndicatorView class]];\n\tBOOL isRoundIndicator = [indicator isKindOfClass:[MBRoundProgressView class]];\n\t\n\tif (mode == MBProgressHUDModeIndeterminate) {\n\t\tif (!isActivityIndicator) {\n\t\t\t// Update to indeterminate indicator\n\t\t\t[indicator removeFromSuperview];\n\t\t\tself.indicator = MB_AUTORELEASE([[UIActivityIndicatorView alloc]\n\t\t\t\t\t\t\t\t\t\t\t initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]);\n\t\t\t[(UIActivityIndicatorView *)indicator startAnimating];\n\t\t\t[self addSubview:indicator];\n\t\t}\n#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 50000\n\t\t[(UIActivityIndicatorView *)indicator setColor:self.activityIndicatorColor];\n#endif\n\t}\n\telse if (mode == MBProgressHUDModeDeterminateHorizontalBar) {\n\t\t// Update to bar determinate indicator\n\t\t[indicator removeFromSuperview];\n\t\tself.indicator = MB_AUTORELEASE([[MBBarProgressView alloc] init]);\n\t\t[self addSubview:indicator];\n\t}\n\telse if (mode == MBProgressHUDModeDeterminate || mode == MBProgressHUDModeAnnularDeterminate) {\n\t\tif (!isRoundIndicator) {\n\t\t\t// Update to determinante indicator\n\t\t\t[indicator removeFromSuperview];\n\t\t\tself.indicator = MB_AUTORELEASE([[MBRoundProgressView alloc] init]);\n\t\t\t[self addSubview:indicator];\n\t\t}\n\t\tif (mode == MBProgressHUDModeAnnularDeterminate) {\n\t\t\t[(MBRoundProgressView *)indicator setAnnular:YES];\n\t\t}\n\t\t[(MBRoundProgressView *)indicator setProgressTintColor:self.activityIndicatorColor];\n\t\t[(MBRoundProgressView *)indicator setBackgroundTintColor:[self.activityIndicatorColor colorWithAlphaComponent:0.1f]];\n\t}\n\telse if (mode == MBProgressHUDModeCustomView && customView != indicator) {\n\t\t// Update custom view indicator\n\t\t[indicator removeFromSuperview];\n\t\tself.indicator = customView;\n\t\t[self addSubview:indicator];\n\t} else if (mode == MBProgressHUDModeText) {\n\t\t[indicator removeFromSuperview];\n\t\tself.indicator = nil;\n\t}\n}\n\n#pragma mark - Layout\n\n- (void)layoutSubviews {\n\t[super layoutSubviews];\n\t\n\t// Entirely cover the parent view\n\tUIView *parent = self.superview;\n\tif (parent) {\n\t\tself.frame = parent.bounds;\n\t}\n\tCGRect bounds = self.bounds;\n\t\n\t// Determine the total width and height needed\n\tCGFloat maxWidth = bounds.size.width - 4 * margin;\n\tCGSize totalSize = CGSizeZero;\n\t\n\tCGRect indicatorF = indicator.bounds;\n\tindicatorF.size.width = MIN(indicatorF.size.width, maxWidth);\n\ttotalSize.width = MAX(totalSize.width, indicatorF.size.width);\n\ttotalSize.height += indicatorF.size.height;\n\t\n\tCGSize labelSize = MB_TEXTSIZE(label.text, label.font);\n\tlabelSize.width = MIN(labelSize.width, maxWidth);\n\ttotalSize.width = MAX(totalSize.width, labelSize.width);\n\ttotalSize.height += labelSize.height;\n\tif (labelSize.height > 0.f && indicatorF.size.height > 0.f) {\n\t\ttotalSize.height += kPadding;\n\t}\n\n\tCGFloat remainingHeight = bounds.size.height - totalSize.height - kPadding - 4 * margin; \n\tCGSize maxSize = CGSizeMake(maxWidth, remainingHeight);\n\tCGSize detailsLabelSize = MB_MULTILINE_TEXTSIZE(detailsLabel.text, detailsLabel.font, maxSize, detailsLabel.lineBreakMode);\n\ttotalSize.width = MAX(totalSize.width, detailsLabelSize.width);\n\ttotalSize.height += detailsLabelSize.height;\n\tif (detailsLabelSize.height > 0.f && (indicatorF.size.height > 0.f || labelSize.height > 0.f)) {\n\t\ttotalSize.height += kPadding;\n\t}\n\t\n\ttotalSize.width += 2 * margin;\n\ttotalSize.height += 2 * margin;\n\t\n\t// Position elements\n\tCGFloat yPos = round(((bounds.size.height - totalSize.height) / 2)) + margin + yOffset;\n\tCGFloat xPos = xOffset;\n\tindicatorF.origin.y = yPos;\n\tindicatorF.origin.x = round((bounds.size.width - indicatorF.size.width) / 2) + xPos;\n\tindicator.frame = indicatorF;\n\tyPos += indicatorF.size.height;\n\t\n\tif (labelSize.height > 0.f && indicatorF.size.height > 0.f) {\n\t\tyPos += kPadding;\n\t}\n\tCGRect labelF;\n\tlabelF.origin.y = yPos;\n\tlabelF.origin.x = round((bounds.size.width - labelSize.width) / 2) + xPos;\n\tlabelF.size = labelSize;\n\tlabel.frame = labelF;\n\tyPos += labelF.size.height;\n\t\n\tif (detailsLabelSize.height > 0.f && (indicatorF.size.height > 0.f || labelSize.height > 0.f)) {\n\t\tyPos += kPadding;\n\t}\n\tCGRect detailsLabelF;\n\tdetailsLabelF.origin.y = yPos;\n\tdetailsLabelF.origin.x = round((bounds.size.width - detailsLabelSize.width) / 2) + xPos;\n\tdetailsLabelF.size = detailsLabelSize;\n\tdetailsLabel.frame = detailsLabelF;\n\t\n\t// Enforce minsize and quare rules\n\tif (square) {\n\t\tCGFloat max = MAX(totalSize.width, totalSize.height);\n\t\tif (max <= bounds.size.width - 2 * margin) {\n\t\t\ttotalSize.width = max;\n\t\t}\n\t\tif (max <= bounds.size.height - 2 * margin) {\n\t\t\ttotalSize.height = max;\n\t\t}\n\t}\n\tif (totalSize.width < minSize.width) {\n\t\ttotalSize.width = minSize.width;\n\t} \n\tif (totalSize.height < minSize.height) {\n\t\ttotalSize.height = minSize.height;\n\t}\n\t\n\tsize = totalSize;\n}\n\n#pragma mark BG Drawing\n\n- (void)drawRect:(CGRect)rect {\n\t\n\tCGContextRef context = UIGraphicsGetCurrentContext();\n\tUIGraphicsPushContext(context);\n\n\tif (self.dimBackground) {\n\t\t//Gradient colours\n\t\tsize_t gradLocationsNum = 2;\n\t\tCGFloat gradLocations[2] = {0.0f, 1.0f};\n\t\tCGFloat gradColors[8] = {0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.75f}; \n\t\tCGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();\n\t\tCGGradientRef gradient = CGGradientCreateWithColorComponents(colorSpace, gradColors, gradLocations, gradLocationsNum);\n\t\tCGColorSpaceRelease(colorSpace);\n\t\t//Gradient center\n\t\tCGPoint gradCenter= CGPointMake(self.bounds.size.width/2, self.bounds.size.height/2);\n\t\t//Gradient radius\n\t\tfloat gradRadius = MIN(self.bounds.size.width , self.bounds.size.height) ;\n\t\t//Gradient draw\n\t\tCGContextDrawRadialGradient (context, gradient, gradCenter,\n\t\t\t\t\t\t\t\t\t 0, gradCenter, gradRadius,\n\t\t\t\t\t\t\t\t\t kCGGradientDrawsAfterEndLocation);\n\t\tCGGradientRelease(gradient);\n\t}\n\n\t// Set background rect color\n\tif (self.color) {\n\t\tCGContextSetFillColorWithColor(context, self.color.CGColor);\n\t} else {\n\t\tCGContextSetGrayFillColor(context, 0.0f, self.opacity);\n\t}\n\n\t\n\t// Center HUD\n\tCGRect allRect = self.bounds;\n\t// Draw rounded HUD backgroud rect\n\tCGRect boxRect = CGRectMake(round((allRect.size.width - size.width) / 2) + self.xOffset,\n\t\t\t\t\t\t\t\tround((allRect.size.height - size.height) / 2) + self.yOffset, size.width, size.height);\n\tfloat radius = self.cornerRadius;\n\tCGContextBeginPath(context);\n\tCGContextMoveToPoint(context, CGRectGetMinX(boxRect) + radius, CGRectGetMinY(boxRect));\n\tCGContextAddArc(context, CGRectGetMaxX(boxRect) - radius, CGRectGetMinY(boxRect) + radius, radius, 3 * (float)M_PI / 2, 0, 0);\n\tCGContextAddArc(context, CGRectGetMaxX(boxRect) - radius, CGRectGetMaxY(boxRect) - radius, radius, 0, (float)M_PI / 2, 0);\n\tCGContextAddArc(context, CGRectGetMinX(boxRect) + radius, CGRectGetMaxY(boxRect) - radius, radius, (float)M_PI / 2, (float)M_PI, 0);\n\tCGContextAddArc(context, CGRectGetMinX(boxRect) + radius, CGRectGetMinY(boxRect) + radius, radius, (float)M_PI, 3 * (float)M_PI / 2, 0);\n\tCGContextClosePath(context);\n\tCGContextFillPath(context);\n\n\tUIGraphicsPopContext();\n}\n\n#pragma mark - KVO\n\n- (void)registerForKVO {\n\tfor (NSString *keyPath in [self observableKeypaths]) {\n\t\t[self addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew context:NULL];\n\t}\n}\n\n- (void)unregisterFromKVO {\n\tfor (NSString *keyPath in [self observableKeypaths]) {\n\t\t[self removeObserver:self forKeyPath:keyPath];\n\t}\n}\n\n- (NSArray *)observableKeypaths {\n\treturn [NSArray arrayWithObjects:@\"mode\", @\"customView\", @\"labelText\", @\"labelFont\", @\"labelColor\",\n\t\t\t@\"detailsLabelText\", @\"detailsLabelFont\", @\"detailsLabelColor\", @\"progress\", @\"activityIndicatorColor\", nil];\n}\n\n- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {\n\tif (![NSThread isMainThread]) {\n\t\t[self performSelectorOnMainThread:@selector(updateUIForKeypath:) withObject:keyPath waitUntilDone:NO];\n\t} else {\n\t\t[self updateUIForKeypath:keyPath];\n\t}\n}\n\n- (void)updateUIForKeypath:(NSString *)keyPath {\n\tif ([keyPath isEqualToString:@\"mode\"] || [keyPath isEqualToString:@\"customView\"] ||\n\t\t[keyPath isEqualToString:@\"activityIndicatorColor\"]) {\n\t\t[self updateIndicators];\n\t} else if ([keyPath isEqualToString:@\"labelText\"]) {\n\t\tlabel.text = self.labelText;\n\t} else if ([keyPath isEqualToString:@\"labelFont\"]) {\n\t\tlabel.font = self.labelFont;\n\t} else if ([keyPath isEqualToString:@\"labelColor\"]) {\n\t\tlabel.textColor = self.labelColor;\n\t} else if ([keyPath isEqualToString:@\"detailsLabelText\"]) {\n\t\tdetailsLabel.text = self.detailsLabelText;\n\t} else if ([keyPath isEqualToString:@\"detailsLabelFont\"]) {\n\t\tdetailsLabel.font = self.detailsLabelFont;\n\t} else if ([keyPath isEqualToString:@\"detailsLabelColor\"]) {\n\t\tdetailsLabel.textColor = self.detailsLabelColor;\n\t} else if ([keyPath isEqualToString:@\"progress\"]) {\n\t\tif ([indicator respondsToSelector:@selector(setProgress:)]) {\n\t\t\t[(id)indicator setValue:@(progress) forKey:@\"progress\"];\n\t\t}\n\t\treturn;\n\t}\n\t[self setNeedsLayout];\n\t[self setNeedsDisplay];\n}\n\n#pragma mark - Notifications\n\n- (void)registerForNotifications {\n#if !TARGET_OS_TV\n\tNSNotificationCenter *nc = [NSNotificationCenter defaultCenter];\n\n\t[nc addObserver:self selector:@selector(statusBarOrientationDidChange:)\n               name:UIApplicationDidChangeStatusBarOrientationNotification object:nil];\n#endif\n}\n\n- (void)unregisterFromNotifications {\n#if !TARGET_OS_TV\n\tNSNotificationCenter *nc = [NSNotificationCenter defaultCenter];\n    [nc removeObserver:self name:UIApplicationDidChangeStatusBarOrientationNotification object:nil];\n#endif\n}\n\n#if !TARGET_OS_TV\n- (void)statusBarOrientationDidChange:(NSNotification *)notification {\n\tUIView *superview = self.superview;\n\tif (!superview) {\n\t\treturn;\n\t} else {\n\t\t[self updateForCurrentOrientationAnimated:YES];\n\t}\n}\n#endif\n\n- (void)updateForCurrentOrientationAnimated:(BOOL)animated {\n    // Stay in sync with the superview in any case\n    if (self.superview) {\n        self.bounds = self.superview.bounds;\n        [self setNeedsDisplay];\n    }\n\n    // Not needed on iOS 8+, compile out when the deployment target allows,\n    // to avoid sharedApplication problems on extension targets\n#if __IPHONE_OS_VERSION_MIN_REQUIRED < 80000\n    // Only needed pre iOS 7 when added to a window\n    BOOL iOS8OrLater = kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_8_0;\n    if (iOS8OrLater || ![self.superview isKindOfClass:[UIWindow class]]) return;\n\n\tUIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;\n\tCGFloat radians = 0;\n\tif (UIInterfaceOrientationIsLandscape(orientation)) {\n\t\tif (orientation == UIInterfaceOrientationLandscapeLeft) { radians = -(CGFloat)M_PI_2; } \n\t\telse { radians = (CGFloat)M_PI_2; }\n\t\t// Window coordinates differ!\n\t\tself.bounds = CGRectMake(0, 0, self.bounds.size.height, self.bounds.size.width);\n\t} else {\n\t\tif (orientation == UIInterfaceOrientationPortraitUpsideDown) { radians = (CGFloat)M_PI; } \n\t\telse { radians = 0; }\n\t}\n\trotationTransform = CGAffineTransformMakeRotation(radians);\n\t\n\tif (animated) {\n\t\t[UIView beginAnimations:nil context:nil];\n\t\t[UIView setAnimationDuration:0.3];\n\t}\n\t[self setTransform:rotationTransform];\n\tif (animated) {\n\t\t[UIView commitAnimations];\n\t}\n#endif\n}\n\n@end\n\n\n@implementation MBRoundProgressView\n\n#pragma mark - Lifecycle\n\n- (id)init {\n\treturn [self initWithFrame:CGRectMake(0.f, 0.f, 37.f, 37.f)];\n}\n\n- (id)initWithFrame:(CGRect)frame {\n\tself = [super initWithFrame:frame];\n\tif (self) {\n\t\tself.backgroundColor = [UIColor clearColor];\n\t\tself.opaque = NO;\n\t\t_progress = 0.f;\n\t\t_annular = NO;\n\t\t_progressTintColor = [[UIColor alloc] initWithWhite:1.f alpha:1.f];\n\t\t_backgroundTintColor = [[UIColor alloc] initWithWhite:1.f alpha:.1f];\n\t\t[self registerForKVO];\n\t}\n\treturn self;\n}\n\n- (void)dealloc {\n\t[self unregisterFromKVO];\n#if !__has_feature(objc_arc)\n\t[_progressTintColor release];\n\t[_backgroundTintColor release];\n\t[super dealloc];\n#endif\n}\n\n#pragma mark - Drawing\n\n- (void)drawRect:(CGRect)rect {\n\t\n\tCGRect allRect = self.bounds;\n\tCGRect circleRect = CGRectInset(allRect, 2.0f, 2.0f);\n\tCGContextRef context = UIGraphicsGetCurrentContext();\n\t\n\tif (_annular) {\n\t\t// Draw background\n\t\tBOOL isPreiOS7 = kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_iOS_7_0;\n\t\tCGFloat lineWidth = isPreiOS7 ? 5.f : 2.f;\n\t\tUIBezierPath *processBackgroundPath = [UIBezierPath bezierPath];\n\t\tprocessBackgroundPath.lineWidth = lineWidth;\n\t\tprocessBackgroundPath.lineCapStyle = kCGLineCapButt;\n\t\tCGPoint center = CGPointMake(self.bounds.size.width/2, self.bounds.size.height/2);\n\t\tCGFloat radius = (self.bounds.size.width - lineWidth)/2;\n\t\tCGFloat startAngle = - ((float)M_PI / 2); // 90 degrees\n\t\tCGFloat endAngle = (2 * (float)M_PI) + startAngle;\n\t\t[processBackgroundPath addArcWithCenter:center radius:radius startAngle:startAngle endAngle:endAngle clockwise:YES];\n\t\t[_backgroundTintColor set];\n\t\t[processBackgroundPath stroke];\n\t\t// Draw progress\n\t\tUIBezierPath *processPath = [UIBezierPath bezierPath];\n\t\tprocessPath.lineCapStyle = isPreiOS7 ? kCGLineCapRound : kCGLineCapSquare;\n\t\tprocessPath.lineWidth = lineWidth;\n\t\tendAngle = (self.progress * 2 * (float)M_PI) + startAngle;\n\t\t[processPath addArcWithCenter:center radius:radius startAngle:startAngle endAngle:endAngle clockwise:YES];\n\t\t[_progressTintColor set];\n\t\t[processPath stroke];\n\t} else {\n\t\t// Draw background\n\t\t[_progressTintColor setStroke];\n\t\t[_backgroundTintColor setFill];\n\t\tCGContextSetLineWidth(context, 2.0f);\n\t\tCGContextFillEllipseInRect(context, circleRect);\n\t\tCGContextStrokeEllipseInRect(context, circleRect);\n\t\t// Draw progress\n\t\tCGPoint center = CGPointMake(allRect.size.width / 2, allRect.size.height / 2);\n\t\tCGFloat radius = (allRect.size.width - 4) / 2;\n\t\tCGFloat startAngle = - ((float)M_PI / 2); // 90 degrees\n\t\tCGFloat endAngle = (self.progress * 2 * (float)M_PI) + startAngle;\n\t\t[_progressTintColor setFill];\n\t\tCGContextMoveToPoint(context, center.x, center.y);\n\t\tCGContextAddArc(context, center.x, center.y, radius, startAngle, endAngle, 0);\n\t\tCGContextClosePath(context);\n\t\tCGContextFillPath(context);\n\t}\n}\n\n#pragma mark - KVO\n\n- (void)registerForKVO {\n\tfor (NSString *keyPath in [self observableKeypaths]) {\n\t\t[self addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew context:NULL];\n\t}\n}\n\n- (void)unregisterFromKVO {\n\tfor (NSString *keyPath in [self observableKeypaths]) {\n\t\t[self removeObserver:self forKeyPath:keyPath];\n\t}\n}\n\n- (NSArray *)observableKeypaths {\n\treturn [NSArray arrayWithObjects:@\"progressTintColor\", @\"backgroundTintColor\", @\"progress\", @\"annular\", nil];\n}\n\n- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {\n\t[self setNeedsDisplay];\n}\n\n@end\n\n\n@implementation MBBarProgressView\n\n#pragma mark - Lifecycle\n\n- (id)init {\n\treturn [self initWithFrame:CGRectMake(.0f, .0f, 120.0f, 20.0f)];\n}\n\n- (id)initWithFrame:(CGRect)frame {\n\tself = [super initWithFrame:frame];\n\tif (self) {\n\t\t_progress = 0.f;\n\t\t_lineColor = [UIColor whiteColor];\n\t\t_progressColor = [UIColor whiteColor];\n\t\t_progressRemainingColor = [UIColor clearColor];\n\t\tself.backgroundColor = [UIColor clearColor];\n\t\tself.opaque = NO;\n\t\t[self registerForKVO];\n\t}\n\treturn self;\n}\n\n- (void)dealloc {\n\t[self unregisterFromKVO];\n#if !__has_feature(objc_arc)\n\t[_lineColor release];\n\t[_progressColor release];\n\t[_progressRemainingColor release];\n\t[super dealloc];\n#endif\n}\n\n#pragma mark - Drawing\n\n- (void)drawRect:(CGRect)rect {\n\tCGContextRef context = UIGraphicsGetCurrentContext();\n\t\n\tCGContextSetLineWidth(context, 2);\n\tCGContextSetStrokeColorWithColor(context,[_lineColor CGColor]);\n\tCGContextSetFillColorWithColor(context, [_progressRemainingColor CGColor]);\n\t\n\t// Draw background\n\tfloat radius = (rect.size.height / 2) - 2;\n\tCGContextMoveToPoint(context, 2, rect.size.height/2);\n\tCGContextAddArcToPoint(context, 2, 2, radius + 2, 2, radius);\n\tCGContextAddLineToPoint(context, rect.size.width - radius - 2, 2);\n\tCGContextAddArcToPoint(context, rect.size.width - 2, 2, rect.size.width - 2, rect.size.height / 2, radius);\n\tCGContextAddArcToPoint(context, rect.size.width - 2, rect.size.height - 2, rect.size.width - radius - 2, rect.size.height - 2, radius);\n\tCGContextAddLineToPoint(context, radius + 2, rect.size.height - 2);\n\tCGContextAddArcToPoint(context, 2, rect.size.height - 2, 2, rect.size.height/2, radius);\n\tCGContextFillPath(context);\n\t\n\t// Draw border\n\tCGContextMoveToPoint(context, 2, rect.size.height/2);\n\tCGContextAddArcToPoint(context, 2, 2, radius + 2, 2, radius);\n\tCGContextAddLineToPoint(context, rect.size.width - radius - 2, 2);\n\tCGContextAddArcToPoint(context, rect.size.width - 2, 2, rect.size.width - 2, rect.size.height / 2, radius);\n\tCGContextAddArcToPoint(context, rect.size.width - 2, rect.size.height - 2, rect.size.width - radius - 2, rect.size.height - 2, radius);\n\tCGContextAddLineToPoint(context, radius + 2, rect.size.height - 2);\n\tCGContextAddArcToPoint(context, 2, rect.size.height - 2, 2, rect.size.height/2, radius);\n\tCGContextStrokePath(context);\n\t\n\tCGContextSetFillColorWithColor(context, [_progressColor CGColor]);\n\tradius = radius - 2;\n\tfloat amount = self.progress * rect.size.width;\n\t\n\t// Progress in the middle area\n\tif (amount >= radius + 4 && amount <= (rect.size.width - radius - 4)) {\n\t\tCGContextMoveToPoint(context, 4, rect.size.height/2);\n\t\tCGContextAddArcToPoint(context, 4, 4, radius + 4, 4, radius);\n\t\tCGContextAddLineToPoint(context, amount, 4);\n\t\tCGContextAddLineToPoint(context, amount, radius + 4);\n\t\t\n\t\tCGContextMoveToPoint(context, 4, rect.size.height/2);\n\t\tCGContextAddArcToPoint(context, 4, rect.size.height - 4, radius + 4, rect.size.height - 4, radius);\n\t\tCGContextAddLineToPoint(context, amount, rect.size.height - 4);\n\t\tCGContextAddLineToPoint(context, amount, radius + 4);\n\t\t\n\t\tCGContextFillPath(context);\n\t}\n\t\n\t// Progress in the right arc\n\telse if (amount > radius + 4) {\n\t\tfloat x = amount - (rect.size.width - radius - 4);\n\n\t\tCGContextMoveToPoint(context, 4, rect.size.height/2);\n\t\tCGContextAddArcToPoint(context, 4, 4, radius + 4, 4, radius);\n\t\tCGContextAddLineToPoint(context, rect.size.width - radius - 4, 4);\n\t\tfloat angle = -acos(x/radius);\n\t\tif (isnan(angle)) angle = 0;\n\t\tCGContextAddArc(context, rect.size.width - radius - 4, rect.size.height/2, radius, M_PI, angle, 0);\n\t\tCGContextAddLineToPoint(context, amount, rect.size.height/2);\n\n\t\tCGContextMoveToPoint(context, 4, rect.size.height/2);\n\t\tCGContextAddArcToPoint(context, 4, rect.size.height - 4, radius + 4, rect.size.height - 4, radius);\n\t\tCGContextAddLineToPoint(context, rect.size.width - radius - 4, rect.size.height - 4);\n\t\tangle = acos(x/radius);\n\t\tif (isnan(angle)) angle = 0;\n\t\tCGContextAddArc(context, rect.size.width - radius - 4, rect.size.height/2, radius, -M_PI, angle, 1);\n\t\tCGContextAddLineToPoint(context, amount, rect.size.height/2);\n\t\t\n\t\tCGContextFillPath(context);\n\t}\n\t\n\t// Progress is in the left arc\n\telse if (amount < radius + 4 && amount > 0) {\n\t\tCGContextMoveToPoint(context, 4, rect.size.height/2);\n\t\tCGContextAddArcToPoint(context, 4, 4, radius + 4, 4, radius);\n\t\tCGContextAddLineToPoint(context, radius + 4, rect.size.height/2);\n\n\t\tCGContextMoveToPoint(context, 4, rect.size.height/2);\n\t\tCGContextAddArcToPoint(context, 4, rect.size.height - 4, radius + 4, rect.size.height - 4, radius);\n\t\tCGContextAddLineToPoint(context, radius + 4, rect.size.height/2);\n\t\t\n\t\tCGContextFillPath(context);\n\t}\n}\n\n#pragma mark - KVO\n\n- (void)registerForKVO {\n\tfor (NSString *keyPath in [self observableKeypaths]) {\n\t\t[self addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew context:NULL];\n\t}\n}\n\n- (void)unregisterFromKVO {\n\tfor (NSString *keyPath in [self observableKeypaths]) {\n\t\t[self removeObserver:self forKeyPath:keyPath];\n\t}\n}\n\n- (NSArray *)observableKeypaths {\n\treturn [NSArray arrayWithObjects:@\"lineColor\", @\"progressRemainingColor\", @\"progressColor\", @\"progress\", nil];\n}\n\n- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {\n\t[self setNeedsDisplay];\n}\n\n@end\n"
  },
  {
    "path": "Pods/MBProgressHUD/README.mdown",
    "content": "# MBProgressHUD [![Build Status](https://travis-ci.org/matej/MBProgressHUD.svg?branch=master)](https://travis-ci.org/matej/MBProgressHUD)\n\nMBProgressHUD is an iOS drop-in class that displays a translucent HUD with an indicator and/or labels while work is being done in a background thread. The HUD is meant as a replacement for the undocumented, private UIKit UIProgressHUD with some additional features. \n\n[![](http://dl.dropbox.com/u/378729/MBProgressHUD/1-thumb.png)](http://dl.dropbox.com/u/378729/MBProgressHUD/1.png)\n[![](http://dl.dropbox.com/u/378729/MBProgressHUD/2-thumb.png)](http://dl.dropbox.com/u/378729/MBProgressHUD/2.png)\n[![](http://dl.dropbox.com/u/378729/MBProgressHUD/3-thumb.png)](http://dl.dropbox.com/u/378729/MBProgressHUD/3.png)\n[![](http://dl.dropbox.com/u/378729/MBProgressHUD/4-thumb.png)](http://dl.dropbox.com/u/378729/MBProgressHUD/4.png)\n[![](http://dl.dropbox.com/u/378729/MBProgressHUD/5-thumb.png)](http://dl.dropbox.com/u/378729/MBProgressHUD/5.png)\n[![](http://dl.dropbox.com/u/378729/MBProgressHUD/6-thumb.png)](http://dl.dropbox.com/u/378729/MBProgressHUD/6.png)\n[![](http://dl.dropbox.com/u/378729/MBProgressHUD/7-thumb.png)](http://dl.dropbox.com/u/378729/MBProgressHUD/7.png)\n\n## Requirements\n\nMBProgressHUD works on any iOS version and is compatible with both ARC and non-ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:\n\n* Foundation.framework\n* UIKit.framework\n* CoreGraphics.framework\n\nYou will need the latest developer tools in order to build MBProgressHUD. Old Xcode versions might work, but compatibility will not be explicitly maintained.\n\n## Adding MBProgressHUD to your project\n\n### Cocoapods\n\n[CocoaPods](http://cocoapods.org) is the recommended way to add MBProgressHUD to your project.\n\n1. Add a pod entry for MBProgressHUD to your Podfile `pod 'MBProgressHUD', '~> 0.9.2'`\n2. Install the pod(s) by running `pod install`.\n3. Include MBProgressHUD wherever you need it with `#import \"MBProgressHUD.h\"`.\n\n### Source files\n\nAlternatively you can directly add the `MBProgressHUD.h` and `MBProgressHUD.m` source files to your project.\n\n1. Download the [latest code version](https://github.com/matej/MBProgressHUD/archive/master.zip) or add the repository as a git submodule to your git-tracked project. \n2. Open your project in Xcode, then drag and drop `MBProgressHUD.h` and `MBProgressHUD.m` onto your project (use the \"Product Navigator view\"). Make sure to select Copy items when asked if you extracted the code archive outside of your project. \n3. Include MBProgressHUD wherever you need it with `#import \"MBProgressHUD.h\"`.\n\n### Static library\n\nYou can also add MBProgressHUD as a static library to your project or workspace. \n\n1. Download the [latest code version](https://github.com/matej/MBProgressHUD/downloads) or add the repository as a git submodule to your git-tracked project. \n2. Open your project in Xcode, then drag and drop `MBProgressHUD.xcodeproj` onto your project or workspace (use the \"Product Navigator view\"). \n3. Select your target and go to the Build phases tab. In the Link Binary With Libraries section select the add button. On the sheet find and add `libMBProgressHUD.a`. You might also need to add `MBProgressHUD` to the Target Dependencies list. \n4. Include MBProgressHUD wherever you need it with `#import <MBProgressHUD/MBProgressHUD.h>`.\n\n## Usage\n\nThe main guideline you need to follow when dealing with MBProgressHUD while running long-running tasks is keeping the main thread work-free, so the UI can be updated promptly. The recommended way of using MBProgressHUD is therefore to set it up on the main thread and then spinning the task, that you want to perform, off onto a new thread. \n\n```objective-c\n[MBProgressHUD showHUDAddedTo:self.view animated:YES];\ndispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{\n\t// Do something...\n\tdispatch_async(dispatch_get_main_queue(), ^{\n\t\t[MBProgressHUD hideHUDForView:self.view animated:YES];\n\t});\n});\n```\n\nIf you need to configure the HUD you can do this by using the MBProgressHUD reference that showHUDAddedTo:animated: returns. \n\n```objective-c\nMBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];\nhud.mode = MBProgressHUDModeAnnularDeterminate;\nhud.labelText = @\"Loading\";\n[self doSomethingInBackgroundWithProgressCallback:^(float progress) {\n\thud.progress = progress;\n} completionCallback:^{\n\t[hud hide:YES];\n}];\n```\n\nUI updates should always be done on the main thread. Some MBProgressHUD setters are however considered \"thread safe\" and can be called from background threads. Those also include `setMode:`, `setCustomView:`, `setLabelText:`, `setLabelFont:`, `setDetailsLabelText:`, `setDetailsLabelFont:` and `setProgress:`.\n\nIf you need to run your long-running task in the main thread, you should perform it with a slight delay, so UIKit will have enough time to update the UI (i.e., draw the HUD) before you block the main thread with your task.\n\n```objective-c\n[MBProgressHUD showHUDAddedTo:self.view animated:YES];\ndispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.01 * NSEC_PER_SEC);\ndispatch_after(popTime, dispatch_get_main_queue(), ^(void){\n\t// Do something...\n\t[MBProgressHUD hideHUDForView:self.view animated:YES];\n});\n```\n\nYou should be aware that any HUD updates issued inside the above block won't be displayed until the block completes.\n\nFor more examples, including how to use MBProgressHUD with asynchronous operations such as NSURLConnection, take a look at the bundled demo project. Extensive API documentation is provided in the header file (MBProgressHUD.h).\n\n\n## License\n\nThis code is distributed under the terms and conditions of the [MIT license](LICENSE). \n\n## Change-log\n\nA brief summary of each MBProgressHUD release can be found on the [wiki](https://github.com/matej/MBProgressHUD/wiki/Change-log). \n"
  },
  {
    "path": "Pods/MJExtension/LICENSE",
    "content": "Copyright (c) 2013-2015 MJExtension (https://github.com/CoderMJLee/MJExtension)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJExtension.h",
    "content": "//\n//  MJExtension.h\n//  MJExtension\n//\n//  Created by mj on 14-1-15.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//  代码地址:https://github.com/CoderMJLee/MJExtension\n//  代码地址:http://code4app.com/ios/%E5%AD%97%E5%85%B8-JSON-%E4%B8%8E%E6%A8%A1%E5%9E%8B%E7%9A%84%E8%BD%AC%E6%8D%A2/5339992a933bf062608b4c57\n\n#import \"NSObject+MJCoding.h\"\n#import \"NSObject+MJProperty.h\"\n#import \"NSObject+MJClass.h\"\n#import \"NSObject+MJKeyValue.h\"\n#import \"NSString+MJExtension.h\"\n#import \"MJExtensionConst.h\""
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJExtensionConst.h",
    "content": "\n#ifndef __MJExtensionConst__H__\n#define __MJExtensionConst__H__\n\n#import <Foundation/Foundation.h>\n\n// 过期\n#define MJExtensionDeprecated(instead) NS_DEPRECATED(2_0, 2_0, 2_0, 2_0, instead)\n\n// 构建错误\n#define MJExtensionBuildError(clazz, msg) \\\nNSError *error = [NSError errorWithDomain:msg code:250 userInfo:nil]; \\\n[clazz setMj_error:error];\n\n// 日志输出\n#ifdef DEBUG\n#define MJExtensionLog(...) NSLog(__VA_ARGS__)\n#else\n#define MJExtensionLog(...)\n#endif\n\n/**\n * 断言\n * @param condition   条件\n * @param returnValue 返回值\n */\n#define MJExtensionAssertError(condition, returnValue, clazz, msg) \\\n[clazz setMj_error:nil]; \\\nif ((condition) == NO) { \\\n    MJExtensionBuildError(clazz, msg); \\\n    return returnValue;\\\n}\n\n#define MJExtensionAssert2(condition, returnValue) \\\nif ((condition) == NO) return returnValue;\n\n/**\n * 断言\n * @param condition   条件\n */\n#define MJExtensionAssert(condition) MJExtensionAssert2(condition, )\n\n/**\n * 断言\n * @param param         参数\n * @param returnValue   返回值\n */\n#define MJExtensionAssertParamNotNil2(param, returnValue) \\\nMJExtensionAssert2((param) != nil, returnValue)\n\n/**\n * 断言\n * @param param   参数\n */\n#define MJExtensionAssertParamNotNil(param) MJExtensionAssertParamNotNil2(param, )\n\n/**\n * 打印所有的属性\n */\n#define MJLogAllIvars \\\n-(NSString *)description \\\n{ \\\n    return [self mj_keyValues].description; \\\n}\n#define MJExtensionLogAllProperties MJLogAllIvars\n\n/**\n *  类型（属性类型）\n */\nextern NSString *const MJPropertyTypeInt;\nextern NSString *const MJPropertyTypeShort;\nextern NSString *const MJPropertyTypeFloat;\nextern NSString *const MJPropertyTypeDouble;\nextern NSString *const MJPropertyTypeLong;\nextern NSString *const MJPropertyTypeLongLong;\nextern NSString *const MJPropertyTypeChar;\nextern NSString *const MJPropertyTypeBOOL1;\nextern NSString *const MJPropertyTypeBOOL2;\nextern NSString *const MJPropertyTypePointer;\n\nextern NSString *const MJPropertyTypeIvar;\nextern NSString *const MJPropertyTypeMethod;\nextern NSString *const MJPropertyTypeBlock;\nextern NSString *const MJPropertyTypeClass;\nextern NSString *const MJPropertyTypeSEL;\nextern NSString *const MJPropertyTypeId;\n\n#endif"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJExtensionConst.m",
    "content": "#ifndef __MJExtensionConst__M__\n#define __MJExtensionConst__M__\n\n#import <Foundation/Foundation.h>\n\n/**\n *  成员变量类型（属性类型）\n */\nNSString *const MJPropertyTypeInt = @\"i\";\nNSString *const MJPropertyTypeShort = @\"s\";\nNSString *const MJPropertyTypeFloat = @\"f\";\nNSString *const MJPropertyTypeDouble = @\"d\";\nNSString *const MJPropertyTypeLong = @\"l\";\nNSString *const MJPropertyTypeLongLong = @\"q\";\nNSString *const MJPropertyTypeChar = @\"c\";\nNSString *const MJPropertyTypeBOOL1 = @\"c\";\nNSString *const MJPropertyTypeBOOL2 = @\"b\";\nNSString *const MJPropertyTypePointer = @\"*\";\n\nNSString *const MJPropertyTypeIvar = @\"^{objc_ivar=}\";\nNSString *const MJPropertyTypeMethod = @\"^{objc_method=}\";\nNSString *const MJPropertyTypeBlock = @\"@?\";\nNSString *const MJPropertyTypeClass = @\"#\";\nNSString *const MJPropertyTypeSEL = @\":\";\nNSString *const MJPropertyTypeId = @\"@\";\n\n#endif"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJFoundation.h",
    "content": "//\n//  MJFoundation.h\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 14/7/16.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface MJFoundation : NSObject\n+ (BOOL)isClassFromFoundation:(Class)c;\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJFoundation.m",
    "content": "//\n//  MJFoundation.m\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 14/7/16.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import \"MJFoundation.h\"\n#import \"MJExtensionConst.h\"\n#import <CoreData/CoreData.h>\n\nstatic NSSet *foundationClasses_;\n\n@implementation MJFoundation\n\n+ (NSSet *)foundationClasses\n{\n    if (foundationClasses_ == nil) {\n        // 集合中没有NSObject，因为几乎所有的类都是继承自NSObject，具体是不是NSObject需要特殊判断\n        foundationClasses_ = [NSSet setWithObjects:\n                              [NSURL class],\n                              [NSDate class],\n                              [NSValue class],\n                              [NSData class],\n                              [NSError class],\n                              [NSArray class],\n                              [NSDictionary class],\n                              [NSString class],\n                              [NSAttributedString class], nil];\n    }\n    return foundationClasses_;\n}\n\n+ (BOOL)isClassFromFoundation:(Class)c\n{\n    if (c == [NSObject class] || c == [NSManagedObject class]) return YES;\n    \n    __block BOOL result = NO;\n    [[self foundationClasses] enumerateObjectsUsingBlock:^(Class foundationClass, BOOL *stop) {\n        if ([c isSubclassOfClass:foundationClass]) {\n            result = YES;\n            *stop = YES;\n        }\n    }];\n    return result;\n}\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJProperty.h",
    "content": "//\n//  MJProperty.h\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/4/17.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//  包装一个成员属性\n\n#import <Foundation/Foundation.h>\n#import <objc/runtime.h>\n#import \"MJPropertyType.h\"\n#import \"MJPropertyKey.h\"\n\n/**\n *  包装一个成员\n */\n@interface MJProperty : NSObject\n/** 成员属性 */\n@property (nonatomic, assign) objc_property_t property;\n/** 成员属性的名字 */\n@property (nonatomic, readonly) NSString *name;\n\n/** 成员属性的类型 */\n@property (nonatomic, readonly) MJPropertyType *type;\n/** 成员属性来源于哪个类（可能是父类） */\n@property (nonatomic, assign) Class srcClass;\n\n/**** 同一个成员属性 - 父类和子类的行为可能不一致（originKey、propertyKeys、objectClassInArray） ****/\n/** 设置最原始的key */\n- (void)setOriginKey:(id)originKey forClass:(Class)c;\n/** 对应着字典中的多级key（里面存放的数组，数组里面都是MJPropertyKey对象） */\n- (NSArray *)propertyKeysForClass:(Class)c;\n\n/** 模型数组中的模型类型 */\n- (void)setObjectClassInArray:(Class)objectClass forClass:(Class)c;\n- (Class)objectClassInArrayForClass:(Class)c;\n/**** 同一个成员变量 - 父类和子类的行为可能不一致（key、keys、objectClassInArray） ****/\n\n/**\n * 设置object的成员变量值\n */\n- (void)setValue:(id)value forObject:(id)object;\n/**\n * 得到object的成员属性值\n */\n- (id)valueForObject:(id)object;\n\n/**\n *  初始化\n */\n+ (instancetype)cachedPropertyWithProperty:(objc_property_t)property;\n\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJProperty.m",
    "content": "//\n//  MJProperty.m\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/4/17.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJProperty.h\"\n#import \"MJFoundation.h\"\n#import \"MJExtensionConst.h\"\n#import <objc/message.h>\n\n@interface MJProperty()\n@property (strong, nonatomic) NSMutableDictionary *propertyKeysDict;\n@property (strong, nonatomic) NSMutableDictionary *objectClassInArrayDict;\n@end\n\n@implementation MJProperty\n\n#pragma mark - 懒加载\n- (NSMutableDictionary *)propertyKeysDict\n{\n    if (!_propertyKeysDict) {\n        _propertyKeysDict = [NSMutableDictionary dictionary];\n    }\n    return _propertyKeysDict;\n}\n\n- (NSMutableDictionary *)objectClassInArrayDict\n{\n    if (!_objectClassInArrayDict) {\n        _objectClassInArrayDict = [NSMutableDictionary dictionary];\n    }\n    return _objectClassInArrayDict;\n}\n\n#pragma mark - 缓存\n+ (instancetype)cachedPropertyWithProperty:(objc_property_t)property\n{\n    MJProperty *propertyObj = objc_getAssociatedObject(self, property);\n    if (propertyObj == nil) {\n        propertyObj = [[self alloc] init];\n        propertyObj.property = property;\n        objc_setAssociatedObject(self, property, propertyObj, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n    return propertyObj;\n}\n\n#pragma mark - 公共方法\n- (void)setProperty:(objc_property_t)property\n{\n    _property = property;\n    \n    MJExtensionAssertParamNotNil(property);\n    \n    // 1.属性名\n    _name = @(property_getName(property));\n    \n    // 2.成员类型\n    NSString *attrs = @(property_getAttributes(property));\n    NSUInteger dotLoc = [attrs rangeOfString:@\",\"].location;\n    NSString *code = nil;\n    NSUInteger loc = 1;\n    if (dotLoc == NSNotFound) { // 没有,\n        code = [attrs substringFromIndex:loc];\n    } else {\n        code = [attrs substringWithRange:NSMakeRange(loc, dotLoc - loc)];\n    }\n    _type = [MJPropertyType cachedTypeWithCode:code];\n}\n\n/**\n *  获得成员变量的值\n */\n- (id)valueForObject:(id)object\n{\n    if (self.type.KVCDisabled) return [NSNull null];\n    return [object valueForKey:self.name];\n}\n\n/**\n *  设置成员变量的值\n */\n- (void)setValue:(id)value forObject:(id)object\n{\n    if (self.type.KVCDisabled || value == nil) return;\n    [object setValue:value forKey:self.name];\n}\n\n/**\n *  通过字符串key创建对应的keys\n */\n- (NSArray *)propertyKeysWithStringKey:(NSString *)stringKey\n{\n    if (stringKey.length == 0) return nil;\n    \n    NSMutableArray *propertyKeys = [NSMutableArray array];\n    // 如果有多级映射\n    NSArray *oldKeys = [stringKey componentsSeparatedByString:@\".\"];\n    \n    for (NSString *oldKey in oldKeys) {\n        NSUInteger start = [oldKey rangeOfString:@\"[\"].location;\n        if (start != NSNotFound) { // 有索引的key\n            NSString *prefixKey = [oldKey substringToIndex:start];\n            NSString *indexKey = prefixKey;\n            if (prefixKey.length) {\n                MJPropertyKey *propertyKey = [[MJPropertyKey alloc] init];\n                propertyKey.name = prefixKey;\n                [propertyKeys addObject:propertyKey];\n                \n                indexKey = [oldKey stringByReplacingOccurrencesOfString:prefixKey withString:@\"\"];\n            }\n            \n            /** 解析索引 **/\n            // 元素\n            NSArray *cmps = [[indexKey stringByReplacingOccurrencesOfString:@\"[\" withString:@\"\"] componentsSeparatedByString:@\"]\"];\n            for (NSInteger i = 0; i<cmps.count - 1; i++) {\n                MJPropertyKey *subPropertyKey = [[MJPropertyKey alloc] init];\n                subPropertyKey.type = MJPropertyKeyTypeArray;\n                subPropertyKey.name = cmps[i];\n                [propertyKeys addObject:subPropertyKey];\n            }\n        } else { // 没有索引的key\n            MJPropertyKey *propertyKey = [[MJPropertyKey alloc] init];\n            propertyKey.name = oldKey;\n            [propertyKeys addObject:propertyKey];\n        }\n    }\n    \n    return propertyKeys;\n}\n\n/** 对应着字典中的key */\n- (void)setOriginKey:(id)originKey forClass:(Class)c\n{\n    if ([originKey isKindOfClass:[NSString class]]) { // 字符串类型的key\n        NSArray *propertyKeys = [self propertyKeysWithStringKey:originKey];\n        if (propertyKeys.count) {\n            [self setPorpertyKeys:@[propertyKeys] forClass:c];\n        }\n    } else if ([originKey isKindOfClass:[NSArray class]]) {\n        NSMutableArray *keyses = [NSMutableArray array];\n        for (NSString *stringKey in originKey) {\n            NSArray *propertyKeys = [self propertyKeysWithStringKey:stringKey];\n            if (propertyKeys.count) {\n                [keyses addObject:propertyKeys];\n            }\n        }\n        if (keyses.count) {\n            [self setPorpertyKeys:keyses forClass:c];\n        }\n    }\n}\n\n/** 对应着字典中的多级key */\n- (void)setPorpertyKeys:(NSArray *)propertyKeys forClass:(Class)c\n{\n    if (propertyKeys.count == 0) return;\n    self.propertyKeysDict[NSStringFromClass(c)] = propertyKeys;\n}\n- (NSArray *)propertyKeysForClass:(Class)c\n{\n    return self.propertyKeysDict[NSStringFromClass(c)];\n}\n\n/** 模型数组中的模型类型 */\n- (void)setObjectClassInArray:(Class)objectClass forClass:(Class)c\n{\n    if (!objectClass) return;\n    self.objectClassInArrayDict[NSStringFromClass(c)] = objectClass;\n}\n- (Class)objectClassInArrayForClass:(Class)c\n{\n    return self.objectClassInArrayDict[NSStringFromClass(c)];\n}\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJPropertyKey.h",
    "content": "//\n//  MJPropertyKey.h\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/8/11.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef enum {\n    MJPropertyKeyTypeDictionary = 0, // 字典的key\n    MJPropertyKeyTypeArray // 数组的key\n} MJPropertyKeyType;\n\n/**\n *  属性的key\n */\n@interface MJPropertyKey : NSObject\n/** key的名字 */\n@property (copy,   nonatomic) NSString *name;\n/** key的种类，可能是@\"10\"，可能是@\"age\" */\n@property (assign, nonatomic) MJPropertyKeyType type;\n\n/**\n *  根据当前的key，也就是name，从object（字典或者数组）中取值\n */\n- (id)valueInObject:(id)object;\n\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJPropertyKey.m",
    "content": "//\n//  MJPropertyKey.m\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/8/11.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJPropertyKey.h\"\n\n@implementation MJPropertyKey\n\n- (id)valueInObject:(id)object\n{\n    if ([object isKindOfClass:[NSDictionary class]] && self.type == MJPropertyKeyTypeDictionary) {\n        return object[self.name];\n    } else if ([object isKindOfClass:[NSArray class]] && self.type == MJPropertyKeyTypeArray) {\n        NSArray *array = object;\n        NSUInteger index = self.name.intValue;\n        if (index < array.count) return array[index];\n        return nil;\n    }\n    return nil;\n}\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJPropertyType.h",
    "content": "//\n//  MJPropertyType.h\n//  MJExtension\n//\n//  Created by mj on 14-1-15.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//  包装一种类型\n\n#import <Foundation/Foundation.h>\n\n/**\n *  包装一种类型\n */\n@interface MJPropertyType : NSObject\n/** 类型标识符 */\n@property (nonatomic, copy) NSString *code;\n\n/** 是否为id类型 */\n@property (nonatomic, readonly, getter=isIdType) BOOL idType;\n\n/** 是否为基本数字类型：int、float等 */\n@property (nonatomic, readonly, getter=isNumberType) BOOL numberType;\n\n/** 是否为BOOL类型 */\n@property (nonatomic, readonly, getter=isBoolType) BOOL boolType;\n\n/** 对象类型（如果是基本数据类型，此值为nil） */\n@property (nonatomic, readonly) Class typeClass;\n\n/** 类型是否来自于Foundation框架，比如NSString、NSArray */\n@property (nonatomic, readonly, getter = isFromFoundation) BOOL fromFoundation;\n/** 类型是否不支持KVC */\n@property (nonatomic, readonly, getter = isKVCDisabled) BOOL KVCDisabled;\n\n/**\n *  获得缓存的类型对象\n */\n+ (instancetype)cachedTypeWithCode:(NSString *)code;\n@end"
  },
  {
    "path": "Pods/MJExtension/MJExtension/MJPropertyType.m",
    "content": "//\n//  MJPropertyType.m\n//  MJExtension\n//\n//  Created by mj on 14-1-15.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import \"MJPropertyType.h\"\n#import \"MJExtension.h\"\n#import \"MJFoundation.h\"\n#import \"MJExtensionConst.h\"\n\n@implementation MJPropertyType\n\nstatic NSMutableDictionary *types_;\n+ (void)initialize\n{\n    types_ = [NSMutableDictionary dictionary];\n}\n\n+ (instancetype)cachedTypeWithCode:(NSString *)code\n{\n    MJExtensionAssertParamNotNil2(code, nil);\n    \n    MJPropertyType *type = types_[code];\n    if (type == nil) {\n        type = [[self alloc] init];\n        type.code = code;\n        types_[code] = type;\n    }\n    return type;\n}\n\n#pragma mark - 公共方法\n- (void)setCode:(NSString *)code\n{\n    _code = code;\n    \n    MJExtensionAssertParamNotNil(code);\n    \n    if ([code isEqualToString:MJPropertyTypeId]) {\n        _idType = YES;\n    } else if (code.length == 0) {\n        _KVCDisabled = YES;\n    } else if (code.length > 3 && [code hasPrefix:@\"@\\\"\"]) {\n        // 去掉@\"和\"，截取中间的类型名称\n        _code = [code substringWithRange:NSMakeRange(2, code.length - 3)];\n        _typeClass = NSClassFromString(_code);\n        _fromFoundation = [MJFoundation isClassFromFoundation:_typeClass];\n        _numberType = [_typeClass isSubclassOfClass:[NSNumber class]];\n        \n    } else if ([code isEqualToString:MJPropertyTypeSEL] ||\n               [code isEqualToString:MJPropertyTypeIvar] ||\n               [code isEqualToString:MJPropertyTypeMethod]) {\n        _KVCDisabled = YES;\n    }\n    \n    // 是否为数字类型\n    NSString *lowerCode = _code.lowercaseString;\n    NSArray *numberTypes = @[MJPropertyTypeInt, MJPropertyTypeShort, MJPropertyTypeBOOL1, MJPropertyTypeBOOL2, MJPropertyTypeFloat, MJPropertyTypeDouble, MJPropertyTypeLong, MJPropertyTypeLongLong, MJPropertyTypeChar];\n    if ([numberTypes containsObject:lowerCode]) {\n        _numberType = YES;\n        \n        if ([lowerCode isEqualToString:MJPropertyTypeBOOL1]\n            || [lowerCode isEqualToString:MJPropertyTypeBOOL2]) {\n            _boolType = YES;\n        }\n    }\n}\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSObject+MJClass.h",
    "content": "//\n//  NSObject+MJClass.h\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/8/11.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/**\n *  遍历所有类的block（父类）\n */\ntypedef void (^MJClassesEnumeration)(Class c, BOOL *stop);\n\n/** 这个数组中的属性名才会进行字典和模型的转换 */\ntypedef NSArray * (^MJAllowedPropertyNames)();\n/** 这个数组中的属性名才会进行归档 */\ntypedef NSArray * (^MJAllowedCodingPropertyNames)();\n\n/** 这个数组中的属性名将会被忽略：不进行字典和模型的转换 */\ntypedef NSArray * (^MJIgnoredPropertyNames)();\n/** 这个数组中的属性名将会被忽略：不进行归档 */\ntypedef NSArray * (^MJIgnoredCodingPropertyNames)();\n\n/**\n * 类相关的扩展\n */\n@interface NSObject (MJClass)\n/**\n *  遍历所有的类\n */\n+ (void)mj_enumerateClasses:(MJClassesEnumeration)enumeration;\n+ (void)mj_enumerateAllClasses:(MJClassesEnumeration)enumeration;\n\n#pragma mark - 属性白名单配置\n/**\n *  这个数组中的属性名才会进行字典和模型的转换\n *\n *  @param allowedPropertyNames          这个数组中的属性名才会进行字典和模型的转换\n */\n+ (void)mj_setupAllowedPropertyNames:(MJAllowedPropertyNames)allowedPropertyNames;\n\n/**\n *  这个数组中的属性名才会进行字典和模型的转换\n */\n+ (NSMutableArray *)mj_totalAllowedPropertyNames;\n\n#pragma mark - 属性黑名单配置\n/**\n *  这个数组中的属性名将会被忽略：不进行字典和模型的转换\n *\n *  @param ignoredPropertyNames          这个数组中的属性名将会被忽略：不进行字典和模型的转换\n */\n+ (void)mj_setupIgnoredPropertyNames:(MJIgnoredPropertyNames)ignoredPropertyNames;\n\n/**\n *  这个数组中的属性名将会被忽略：不进行字典和模型的转换\n */\n+ (NSMutableArray *)mj_totalIgnoredPropertyNames;\n\n#pragma mark - 归档属性白名单配置\n/**\n *  这个数组中的属性名才会进行归档\n *\n *  @param allowedCodingPropertyNames          这个数组中的属性名才会进行归档\n */\n+ (void)mj_setupAllowedCodingPropertyNames:(MJAllowedCodingPropertyNames)allowedCodingPropertyNames;\n\n/**\n *  这个数组中的属性名才会进行字典和模型的转换\n */\n+ (NSMutableArray *)mj_totalAllowedCodingPropertyNames;\n\n#pragma mark - 归档属性黑名单配置\n/**\n *  这个数组中的属性名将会被忽略：不进行归档\n *\n *  @param ignoredCodingPropertyNames          这个数组中的属性名将会被忽略：不进行归档\n */\n+ (void)mj_setupIgnoredCodingPropertyNames:(MJIgnoredCodingPropertyNames)ignoredCodingPropertyNames;\n\n/**\n *  这个数组中的属性名将会被忽略：不进行归档\n */\n+ (NSMutableArray *)mj_totalIgnoredCodingPropertyNames;\n\n#pragma mark - 内部使用\n+ (void)mj_setupBlockReturnValue:(id (^)())block key:(const char *)key;\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSObject+MJClass.m",
    "content": "//\n//  NSObject+MJClass.m\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/8/11.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"NSObject+MJClass.h\"\n#import \"NSObject+MJCoding.h\"\n#import \"NSObject+MJKeyValue.h\"\n#import \"MJFoundation.h\"\n#import <objc/runtime.h>\n\nstatic const char MJAllowedPropertyNamesKey = '\\0';\nstatic const char MJIgnoredPropertyNamesKey = '\\0';\nstatic const char MJAllowedCodingPropertyNamesKey = '\\0';\nstatic const char MJIgnoredCodingPropertyNamesKey = '\\0';\n\nstatic NSMutableDictionary *allowedPropertyNamesDict_;\nstatic NSMutableDictionary *ignoredPropertyNamesDict_;\nstatic NSMutableDictionary *allowedCodingPropertyNamesDict_;\nstatic NSMutableDictionary *ignoredCodingPropertyNamesDict_;\n\n@implementation NSObject (MJClass)\n\n+ (void)load\n{\n    allowedPropertyNamesDict_ = [NSMutableDictionary dictionary];\n    ignoredPropertyNamesDict_ = [NSMutableDictionary dictionary];\n    allowedCodingPropertyNamesDict_ = [NSMutableDictionary dictionary];\n    ignoredCodingPropertyNamesDict_ = [NSMutableDictionary dictionary];\n}\n\n+ (NSMutableDictionary *)dictForKey:(const void *)key\n{\n    if (key == &MJAllowedPropertyNamesKey) return allowedPropertyNamesDict_;\n    if (key == &MJIgnoredPropertyNamesKey) return ignoredPropertyNamesDict_;\n    if (key == &MJAllowedCodingPropertyNamesKey) return allowedCodingPropertyNamesDict_;\n    if (key == &MJIgnoredCodingPropertyNamesKey) return ignoredCodingPropertyNamesDict_;\n    return nil;\n}\n\n+ (void)mj_enumerateClasses:(MJClassesEnumeration)enumeration\n{\n    // 1.没有block就直接返回\n    if (enumeration == nil) return;\n    \n    // 2.停止遍历的标记\n    BOOL stop = NO;\n    \n    // 3.当前正在遍历的类\n    Class c = self;\n    \n    // 4.开始遍历每一个类\n    while (c && !stop) {\n        // 4.1.执行操作\n        enumeration(c, &stop);\n        \n        // 4.2.获得父类\n        c = class_getSuperclass(c);\n        \n        if ([MJFoundation isClassFromFoundation:c]) break;\n    }\n}\n\n+ (void)mj_enumerateAllClasses:(MJClassesEnumeration)enumeration\n{\n    // 1.没有block就直接返回\n    if (enumeration == nil) return;\n    \n    // 2.停止遍历的标记\n    BOOL stop = NO;\n    \n    // 3.当前正在遍历的类\n    Class c = self;\n    \n    // 4.开始遍历每一个类\n    while (c && !stop) {\n        // 4.1.执行操作\n        enumeration(c, &stop);\n        \n        // 4.2.获得父类\n        c = class_getSuperclass(c);\n    }\n}\n\n#pragma mark - 属性黑名单配置\n+ (void)mj_setupIgnoredPropertyNames:(MJIgnoredPropertyNames)ignoredPropertyNames\n{\n    [self mj_setupBlockReturnValue:ignoredPropertyNames key:&MJIgnoredPropertyNamesKey];\n}\n\n+ (NSMutableArray *)mj_totalIgnoredPropertyNames\n{\n    return [self mj_totalObjectsWithSelector:@selector(mj_ignoredPropertyNames) key:&MJIgnoredPropertyNamesKey];\n}\n\n#pragma mark - 归档属性黑名单配置\n+ (void)mj_setupIgnoredCodingPropertyNames:(MJIgnoredCodingPropertyNames)ignoredCodingPropertyNames\n{\n    [self mj_setupBlockReturnValue:ignoredCodingPropertyNames key:&MJIgnoredCodingPropertyNamesKey];\n}\n\n+ (NSMutableArray *)mj_totalIgnoredCodingPropertyNames\n{\n    return [self mj_totalObjectsWithSelector:@selector(mj_ignoredCodingPropertyNames) key:&MJIgnoredCodingPropertyNamesKey];\n}\n\n#pragma mark - 属性白名单配置\n+ (void)mj_setupAllowedPropertyNames:(MJAllowedPropertyNames)allowedPropertyNames;\n{\n    [self mj_setupBlockReturnValue:allowedPropertyNames key:&MJAllowedPropertyNamesKey];\n}\n\n+ (NSMutableArray *)mj_totalAllowedPropertyNames\n{\n    return [self mj_totalObjectsWithSelector:@selector(mj_allowedPropertyNames) key:&MJAllowedPropertyNamesKey];\n}\n\n#pragma mark - 归档属性白名单配置\n+ (void)mj_setupAllowedCodingPropertyNames:(MJAllowedCodingPropertyNames)allowedCodingPropertyNames\n{\n    [self mj_setupBlockReturnValue:allowedCodingPropertyNames key:&MJAllowedCodingPropertyNamesKey];\n}\n\n+ (NSMutableArray *)mj_totalAllowedCodingPropertyNames\n{\n    return [self mj_totalObjectsWithSelector:@selector(mj_allowedCodingPropertyNames) key:&MJAllowedCodingPropertyNamesKey];\n}\n#pragma mark - block和方法处理:存储block的返回值\n+ (void)mj_setupBlockReturnValue:(id (^)())block key:(const char *)key\n{\n    if (block) {\n        objc_setAssociatedObject(self, key, block(), OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    } else {\n        objc_setAssociatedObject(self, key, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n    \n    // 清空数据\n    [[self dictForKey:key] removeAllObjects];\n}\n\n+ (NSMutableArray *)mj_totalObjectsWithSelector:(SEL)selector key:(const char *)key\n{\n    NSMutableArray *array = [self dictForKey:key][NSStringFromClass(self)];\n    if (array) return array;\n    \n    // 创建、存储\n    [self dictForKey:key][NSStringFromClass(self)] = array = [NSMutableArray array];\n    \n    if ([self respondsToSelector:selector]) {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Warc-performSelector-leaks\"\n        NSArray *subArray = [self performSelector:selector];\n#pragma clang diagnostic pop\n        if (subArray) {\n            [array addObjectsFromArray:subArray];\n        }\n    }\n    \n    [self mj_enumerateAllClasses:^(__unsafe_unretained Class c, BOOL *stop) {\n        NSArray *subArray = objc_getAssociatedObject(c, key);\n        [array addObjectsFromArray:subArray];\n    }];\n    return array;\n}\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSObject+MJCoding.h",
    "content": "//\n//  NSObject+MJCoding.h\n//  MJExtension\n//\n//  Created by mj on 14-1-15.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"MJExtensionConst.h\"\n\n/**\n *  Codeing协议\n */\n@protocol MJCoding <NSObject>\n@optional\n/**\n *  这个数组中的属性名才会进行归档\n */\n+ (NSArray *)mj_allowedCodingPropertyNames;\n/**\n *  这个数组中的属性名将会被忽略：不进行归档\n */\n+ (NSArray *)mj_ignoredCodingPropertyNames;\n@end\n\n@interface NSObject (MJCoding) <MJCoding>\n/**\n *  解码（从文件中解析对象）\n */\n- (void)mj_decode:(NSCoder *)decoder;\n/**\n *  编码（将对象写入文件中）\n */\n- (void)mj_encode:(NSCoder *)encoder;\n@end\n\n/**\n 归档的实现\n */\n#define MJCodingImplementation \\\n- (id)initWithCoder:(NSCoder *)decoder \\\n{ \\\nif (self = [super init]) { \\\n[self mj_decode:decoder]; \\\n} \\\nreturn self; \\\n} \\\n\\\n- (void)encodeWithCoder:(NSCoder *)encoder \\\n{ \\\n[self mj_encode:encoder]; \\\n}\n\n#define MJExtensionCodingImplementation MJCodingImplementation"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSObject+MJCoding.m",
    "content": "//\n//  NSObject+MJCoding.m\n//  MJExtension\n//\n//  Created by mj on 14-1-15.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import \"NSObject+MJCoding.h\"\n#import \"NSObject+MJClass.h\"\n#import \"NSObject+MJProperty.h\"\n#import \"MJProperty.h\"\n\n@implementation NSObject (MJCoding)\n\n- (void)mj_encode:(NSCoder *)encoder\n{\n    Class clazz = [self class];\n    \n    NSArray *allowedCodingPropertyNames = [clazz mj_totalAllowedCodingPropertyNames];\n    NSArray *ignoredCodingPropertyNames = [clazz mj_totalIgnoredCodingPropertyNames];\n    \n    [clazz mj_enumerateProperties:^(MJProperty *property, BOOL *stop) {\n        // 检测是否被忽略\n        if (allowedCodingPropertyNames.count && ![allowedCodingPropertyNames containsObject:property.name]) return;\n        if ([ignoredCodingPropertyNames containsObject:property.name]) return;\n        \n        id value = [property valueForObject:self];\n        if (value == nil) return;\n        [encoder encodeObject:value forKey:property.name];\n    }];\n}\n\n- (void)mj_decode:(NSCoder *)decoder\n{\n    Class clazz = [self class];\n    \n    NSArray *allowedCodingPropertyNames = [clazz mj_totalAllowedCodingPropertyNames];\n    NSArray *ignoredCodingPropertyNames = [clazz mj_totalIgnoredCodingPropertyNames];\n    \n    [clazz mj_enumerateProperties:^(MJProperty *property, BOOL *stop) {\n        // 检测是否被忽略\n        if (allowedCodingPropertyNames.count && ![allowedCodingPropertyNames containsObject:property.name]) return;\n        if ([ignoredCodingPropertyNames containsObject:property.name]) return;\n        \n        id value = [decoder decodeObjectForKey:property.name];\n        if (value == nil) { // 兼容以前的MJExtension版本\n            value = [decoder decodeObjectForKey:[@\"_\" stringByAppendingString:property.name]];\n        }\n        if (value == nil) return;\n        [property setValue:value forObject:self];\n    }];\n}\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSObject+MJKeyValue.h",
    "content": "//\n//  NSObject+MJKeyValue.h\n//  MJExtension\n//\n//  Created by mj on 13-8-24.\n//  Copyright (c) 2013年 小码哥. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"MJExtensionConst.h\"\n#import <CoreData/CoreData.h>\n#import \"MJProperty.h\"\n\n/**\n *  KeyValue协议\n */\n@protocol MJKeyValue <NSObject>\n@optional\n/**\n *  只有这个数组中的属性名才允许进行字典和模型的转换\n */\n+ (NSArray *)mj_allowedPropertyNames;\n\n/**\n *  这个数组中的属性名将会被忽略：不进行字典和模型的转换\n */\n+ (NSArray *)mj_ignoredPropertyNames;\n\n/**\n *  将属性名换为其他key去字典中取值\n *\n *  @return 字典中的key是属性名，value是从字典中取值用的key\n */\n+ (NSDictionary *)mj_replacedKeyFromPropertyName;\n\n/**\n *  将属性名换为其他key去字典中取值\n *\n *  @return 从字典中取值用的key\n */\n+ (NSString *)mj_replacedKeyFromPropertyName121:(NSString *)propertyName;\n\n/**\n *  数组中需要转换的模型类\n *\n *  @return 字典中的key是数组属性名，value是数组中存放模型的Class（Class类型或者NSString类型）\n */\n+ (NSDictionary *)mj_objectClassInArray;\n\n/**\n *  旧值换新值，用于过滤字典中的值\n *\n *  @param oldValue 旧值\n *\n *  @return 新值\n */\n- (id)mj_newValueFromOldValue:(id)oldValue property:(MJProperty *)property;\n\n/**\n *  当字典转模型完毕时调用\n */\n- (void)mj_keyValuesDidFinishConvertingToObject;\n\n/**\n *  当模型转字典完毕时调用\n */\n- (void)mj_objectDidFinishConvertingToKeyValues;\n@end\n\n@interface NSObject (MJKeyValue) <MJKeyValue>\n#pragma mark - 类方法\n/**\n * 字典转模型过程中遇到的错误\n */\n+ (NSError *)mj_error;\n\n/**\n *  模型转字典时，字典的key是否参考replacedKeyFromPropertyName等方法（父类设置了，子类也会继承下来）\n */\n+ (void)mj_referenceReplacedKeyWhenCreatingKeyValues:(BOOL)reference;\n\n#pragma mark - 对象方法\n/**\n *  将字典的键值对转成模型属性\n *  @param keyValues 字典(可以是NSDictionary、NSData、NSString)\n */\n- (instancetype)mj_setKeyValues:(id)keyValues;\n\n/**\n *  将字典的键值对转成模型属性\n *  @param keyValues 字典(可以是NSDictionary、NSData、NSString)\n *  @param context   CoreData上下文\n */\n- (instancetype)mj_setKeyValues:(id)keyValues context:(NSManagedObjectContext *)context;\n\n/**\n *  将模型转成字典\n *  @return 字典\n */\n- (NSMutableDictionary *)mj_keyValues;\n- (NSMutableDictionary *)mj_keyValuesWithKeys:(NSArray *)keys;\n- (NSMutableDictionary *)mj_keyValuesWithIgnoredKeys:(NSArray *)ignoredKeys;\n\n/**\n *  通过模型数组来创建一个字典数组\n *  @param objectArray 模型数组\n *  @return 字典数组\n */\n+ (NSMutableArray *)mj_keyValuesArrayWithObjectArray:(NSArray *)objectArray;\n+ (NSMutableArray *)mj_keyValuesArrayWithObjectArray:(NSArray *)objectArray keys:(NSArray *)keys;\n+ (NSMutableArray *)mj_keyValuesArrayWithObjectArray:(NSArray *)objectArray ignoredKeys:(NSArray *)ignoredKeys;\n\n#pragma mark - 字典转模型\n/**\n *  通过字典来创建一个模型\n *  @param keyValues 字典(可以是NSDictionary、NSData、NSString)\n *  @return 新建的对象\n */\n+ (instancetype)mj_objectWithKeyValues:(id)keyValues;\n\n/**\n *  通过字典来创建一个CoreData模型\n *  @param keyValues 字典(可以是NSDictionary、NSData、NSString)\n *  @param context   CoreData上下文\n *  @return 新建的对象\n */\n+ (instancetype)mj_objectWithKeyValues:(id)keyValues context:(NSManagedObjectContext *)context;\n\n/**\n *  通过plist来创建一个模型\n *  @param filename 文件名(仅限于mainBundle中的文件)\n *  @return 新建的对象\n */\n+ (instancetype)mj_objectWithFilename:(NSString *)filename;\n\n/**\n *  通过plist来创建一个模型\n *  @param file 文件全路径\n *  @return 新建的对象\n */\n+ (instancetype)mj_objectWithFile:(NSString *)file;\n\n#pragma mark - 字典数组转模型数组\n/**\n *  通过字典数组来创建一个模型数组\n *  @param keyValuesArray 字典数组(可以是NSDictionary、NSData、NSString)\n *  @return 模型数组\n */\n+ (NSMutableArray *)mj_objectArrayWithKeyValuesArray:(id)keyValuesArray;\n\n/**\n *  通过字典数组来创建一个模型数组\n *  @param keyValuesArray 字典数组(可以是NSDictionary、NSData、NSString)\n *  @param context        CoreData上下文\n *  @return 模型数组\n */\n+ (NSMutableArray *)mj_objectArrayWithKeyValuesArray:(id)keyValuesArray context:(NSManagedObjectContext *)context;\n\n/**\n *  通过plist来创建一个模型数组\n *  @param filename 文件名(仅限于mainBundle中的文件)\n *  @return 模型数组\n */\n+ (NSMutableArray *)mj_objectArrayWithFilename:(NSString *)filename;\n\n/**\n *  通过plist来创建一个模型数组\n *  @param file 文件全路径\n *  @return 模型数组\n */\n+ (NSMutableArray *)mj_objectArrayWithFile:(NSString *)file;\n\n#pragma mark - 转换为JSON\n/**\n *  转换为JSON Data\n */\n- (NSData *)mj_JSONData;\n/**\n *  转换为字典或者数组\n */\n- (id)mj_JSONObject;\n/**\n *  转换为JSON 字符串\n */\n- (NSString *)mj_JSONString;\n@end\n\n@interface NSObject (MJKeyValueDeprecated_v_2_5_16)\n- (instancetype)setKeyValues:(id)keyValue MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (instancetype)setKeyValues:(id)keyValues error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (instancetype)setKeyValues:(id)keyValues context:(NSManagedObjectContext *)context MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (instancetype)setKeyValues:(id)keyValues context:(NSManagedObjectContext *)context error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (void)referenceReplacedKeyWhenCreatingKeyValues:(BOOL)reference MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSMutableDictionary *)keyValues MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSMutableDictionary *)keyValuesWithError:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSMutableDictionary *)keyValuesWithKeys:(NSArray *)keys MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSMutableDictionary *)keyValuesWithKeys:(NSArray *)keys error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSMutableDictionary *)keyValuesWithIgnoredKeys:(NSArray *)ignoredKeys MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSMutableDictionary *)keyValuesWithIgnoredKeys:(NSArray *)ignoredKeys error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray keys:(NSArray *)keys MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray keys:(NSArray *)keys error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray ignoredKeys:(NSArray *)ignoredKeys MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray ignoredKeys:(NSArray *)ignoredKeys error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (instancetype)objectWithKeyValues:(id)keyValues MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (instancetype)objectWithKeyValues:(id)keyValues error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (instancetype)objectWithKeyValues:(id)keyValues context:(NSManagedObjectContext *)context MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (instancetype)objectWithKeyValues:(id)keyValues context:(NSManagedObjectContext *)context error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (instancetype)objectWithFilename:(NSString *)filename MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (instancetype)objectWithFilename:(NSString *)filename error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (instancetype)objectWithFile:(NSString *)file MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (instancetype)objectWithFile:(NSString *)file error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)objectArrayWithKeyValuesArray:(id)keyValuesArray MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)objectArrayWithKeyValuesArray:(id)keyValuesArray error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)objectArrayWithKeyValuesArray:(id)keyValuesArray context:(NSManagedObjectContext *)context MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)objectArrayWithKeyValuesArray:(id)keyValuesArray context:(NSManagedObjectContext *)context error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)objectArrayWithFilename:(NSString *)filename MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)objectArrayWithFilename:(NSString *)filename error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)objectArrayWithFile:(NSString *)file MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (NSMutableArray *)objectArrayWithFile:(NSString *)file error:(NSError **)error MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSData *)JSONData MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (id)JSONObject MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSString *)JSONString MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSObject+MJKeyValue.m",
    "content": "//\n//  NSObject+MJKeyValue.m\n//  MJExtension\n//\n//  Created by mj on 13-8-24.\n//  Copyright (c) 2013年 小码哥. All rights reserved.\n//\n\n#import \"NSObject+MJKeyValue.h\"\n#import \"NSObject+MJProperty.h\"\n#import \"NSString+MJExtension.h\"\n#import \"MJProperty.h\"\n#import \"MJPropertyType.h\"\n#import \"MJExtensionConst.h\"\n#import \"MJFoundation.h\"\n#import \"NSString+MJExtension.h\"\n#import \"NSObject+MJClass.h\"\n\n@implementation NSObject (MJKeyValue)\n\n#pragma mark - 错误\nstatic const char MJErrorKey = '\\0';\n+ (NSError *)mj_error\n{\n    return objc_getAssociatedObject(self, &MJErrorKey);\n}\n\n+ (void)setMj_error:(NSError *)error\n{\n    objc_setAssociatedObject(self, &MJErrorKey, error, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n#pragma mark - 模型 -> 字典时的参考\n/** 模型转字典时，字典的key是否参考replacedKeyFromPropertyName等方法（父类设置了，子类也会继承下来） */\nstatic const char MJReferenceReplacedKeyWhenCreatingKeyValuesKey = '\\0';\n\n+ (void)mj_referenceReplacedKeyWhenCreatingKeyValues:(BOOL)reference\n{\n    objc_setAssociatedObject(self, &MJReferenceReplacedKeyWhenCreatingKeyValuesKey, @(reference), OBJC_ASSOCIATION_ASSIGN);\n}\n\n+ (BOOL)mj_isReferenceReplacedKeyWhenCreatingKeyValues\n{\n    __block id value = objc_getAssociatedObject(self, &MJReferenceReplacedKeyWhenCreatingKeyValuesKey);\n    if (!value) {\n        [self mj_enumerateAllClasses:^(__unsafe_unretained Class c, BOOL *stop) {\n            value = objc_getAssociatedObject(c, &MJReferenceReplacedKeyWhenCreatingKeyValuesKey);\n            \n            if (value) *stop = YES;\n        }];\n    }\n    return [value boolValue];\n}\n\n#pragma mark - --常用的对象--\nstatic NSNumberFormatter *numberFormatter_;\n+ (void)load\n{\n    numberFormatter_ = [[NSNumberFormatter alloc] init];\n    \n    // 默认设置\n    [self mj_referenceReplacedKeyWhenCreatingKeyValues:YES];\n}\n\n#pragma mark - --公共方法--\n#pragma mark - 字典 -> 模型\n- (instancetype)mj_setKeyValues:(id)keyValues\n{\n    return [self mj_setKeyValues:keyValues context:nil];\n}\n\n/**\n 核心代码：\n */\n- (instancetype)mj_setKeyValues:(id)keyValues context:(NSManagedObjectContext *)context\n{\n    // 获得JSON对象\n    keyValues = [keyValues mj_JSONObject];\n    \n    MJExtensionAssertError([keyValues isKindOfClass:[NSDictionary class]], self, [self class], @\"keyValues参数不是一个字典\");\n    \n    Class clazz = [self class];\n    NSArray *allowedPropertyNames = [clazz mj_totalAllowedPropertyNames];\n    NSArray *ignoredPropertyNames = [clazz mj_totalIgnoredPropertyNames];\n    \n    //通过封装的方法回调一个通过运行时编写的，用于返回属性列表的方法。\n    [clazz mj_enumerateProperties:^(MJProperty *property, BOOL *stop) {\n        @try {\n            // 0.检测是否被忽略\n            if (allowedPropertyNames.count && ![allowedPropertyNames containsObject:property.name]) return;\n            if ([ignoredPropertyNames containsObject:property.name]) return;\n            \n            // 1.取出属性值\n            id value;\n            NSArray *propertyKeyses = [property propertyKeysForClass:clazz];\n            for (NSArray *propertyKeys in propertyKeyses) {\n                value = keyValues;\n                for (MJPropertyKey *propertyKey in propertyKeys) {\n                    value = [propertyKey valueInObject:value];\n                }\n                if (value) break;\n            }\n            \n            // 值的过滤\n            id newValue = [clazz mj_getNewValueFromObject:self oldValue:value property:property];\n            if (newValue != value) { // 有过滤后的新值\n                [property setValue:newValue forObject:self];\n                return;\n            }\n            \n            // 如果没有值，就直接返回\n            if (!value || value == [NSNull null]) return;\n            \n            // 2.复杂处理\n            MJPropertyType *type = property.type;\n            Class propertyClass = type.typeClass;\n            Class objectClass = [property objectClassInArrayForClass:[self class]];\n            \n            // 不可变 -> 可变处理\n            if (propertyClass == [NSMutableArray class] && [value isKindOfClass:[NSArray class]]) {\n                value = [NSMutableArray arrayWithArray:value];\n            } else if (propertyClass == [NSMutableDictionary class] && [value isKindOfClass:[NSDictionary class]]) {\n                value = [NSMutableDictionary dictionaryWithDictionary:value];\n            } else if (propertyClass == [NSMutableString class] && [value isKindOfClass:[NSString class]]) {\n                value = [NSMutableString stringWithString:value];\n            } else if (propertyClass == [NSMutableData class] && [value isKindOfClass:[NSData class]]) {\n                value = [NSMutableData dataWithData:value];\n            }\n            \n            if (!type.isFromFoundation && propertyClass) { // 模型属性\n                value = [propertyClass mj_objectWithKeyValues:value context:context];\n            } else if (objectClass) {\n                if (objectClass == [NSURL class] && [value isKindOfClass:[NSArray class]]) {\n                    // string array -> url array\n                    NSMutableArray *urlArray = [NSMutableArray array];\n                    for (NSString *string in value) {\n                        if (![string isKindOfClass:[NSString class]]) continue;\n                        [urlArray addObject:string.mj_url];\n                    }\n                    value = urlArray;\n                } else { // 字典数组-->模型数组\n                    value = [objectClass mj_objectArrayWithKeyValuesArray:value context:context];\n                }\n            } else {\n                if (propertyClass == [NSString class]) {\n                    if ([value isKindOfClass:[NSNumber class]]) {\n                        // NSNumber -> NSString\n                        value = [value description];\n                    } else if ([value isKindOfClass:[NSURL class]]) {\n                        // NSURL -> NSString\n                        value = [value absoluteString];\n                    }\n                } else if ([value isKindOfClass:[NSString class]]) {\n                    if (propertyClass == [NSURL class]) {\n                        // NSString -> NSURL\n                        // 字符串转码\n                        value = [value mj_url];\n                    } else if (type.isNumberType) {\n                        NSString *oldValue = value;\n                        \n                        // NSString -> NSNumber\n                        if (type.typeClass == [NSDecimalNumber class]) {\n                            value = [NSDecimalNumber decimalNumberWithString:oldValue];\n                        } else {\n                            value = [numberFormatter_ numberFromString:oldValue];\n                        }\n                        \n                        // 如果是BOOL\n                        if (type.isBoolType) {\n                            // 字符串转BOOL（字符串没有charValue方法）\n                            // 系统会调用字符串的charValue转为BOOL类型\n                            NSString *lower = [oldValue lowercaseString];\n                            if ([lower isEqualToString:@\"yes\"] || [lower isEqualToString:@\"true\"]) {\n                                value = @YES;\n                            } else if ([lower isEqualToString:@\"no\"] || [lower isEqualToString:@\"false\"]) {\n                                value = @NO;\n                            }\n                        }\n                    }\n                }\n                \n                // value和property类型不匹配\n                if (propertyClass && ![value isKindOfClass:propertyClass]) {\n                    value = nil;\n                }\n            }\n            \n            // 3.赋值\n            [property setValue:value forObject:self];\n        } @catch (NSException *exception) {\n            MJExtensionBuildError([self class], exception.reason);\n            MJExtensionLog(@\"%@\", exception);\n        }\n    }];\n    \n    // 转换完毕\n    if ([self respondsToSelector:@selector(mj_keyValuesDidFinishConvertingToObject)]) {\n        [self mj_keyValuesDidFinishConvertingToObject];\n    }\n    return self;\n}\n\n+ (instancetype)mj_objectWithKeyValues:(id)keyValues\n{\n    return [self mj_objectWithKeyValues:keyValues context:nil];\n}\n\n+ (instancetype)mj_objectWithKeyValues:(id)keyValues context:(NSManagedObjectContext *)context\n{\n    // 获得JSON对象\n    keyValues = [keyValues mj_JSONObject];\n    MJExtensionAssertError([keyValues isKindOfClass:[NSDictionary class]], nil, [self class], @\"keyValues参数不是一个字典\");\n    \n    if ([self isSubclassOfClass:[NSManagedObject class]] && context) {\n        return [[NSEntityDescription insertNewObjectForEntityForName:NSStringFromClass(self) inManagedObjectContext:context] mj_setKeyValues:keyValues context:context];\n    }\n    return [[[self alloc] init] mj_setKeyValues:keyValues];\n}\n\n+ (instancetype)mj_objectWithFilename:(NSString *)filename\n{\n    MJExtensionAssertError(filename != nil, nil, [self class], @\"filename参数为nil\");\n    \n    return [self mj_objectWithFile:[[NSBundle mainBundle] pathForResource:filename ofType:nil]];\n}\n\n+ (instancetype)mj_objectWithFile:(NSString *)file\n{\n    MJExtensionAssertError(file != nil, nil, [self class], @\"file参数为nil\");\n    \n    return [self mj_objectWithKeyValues:[NSDictionary dictionaryWithContentsOfFile:file]];\n}\n\n#pragma mark - 字典数组 -> 模型数组\n+ (NSMutableArray *)mj_objectArrayWithKeyValuesArray:(NSArray *)keyValuesArray\n{\n    return [self mj_objectArrayWithKeyValuesArray:keyValuesArray context:nil];\n}\n\n+ (NSMutableArray *)mj_objectArrayWithKeyValuesArray:(id)keyValuesArray context:(NSManagedObjectContext *)context\n{\n    // 如果是JSON字符串\n    keyValuesArray = [keyValuesArray mj_JSONObject];\n    \n    // 1.判断真实性\n    MJExtensionAssertError([keyValuesArray isKindOfClass:[NSArray class]], nil, [self class], @\"keyValuesArray参数不是一个数组\");\n    \n    // 如果数组里面放的是NSString、NSNumber等数据\n    if ([MJFoundation isClassFromFoundation:self]) return [NSMutableArray arrayWithArray:keyValuesArray];\n    \n\n    // 2.创建数组\n    NSMutableArray *modelArray = [NSMutableArray array];\n    \n    // 3.遍历\n    for (NSDictionary *keyValues in keyValuesArray) {\n        if ([keyValues isKindOfClass:[NSArray class]]){\n            [modelArray addObject:[self mj_objectArrayWithKeyValuesArray:keyValues context:context]];\n        } else {\n            id model = [self mj_objectWithKeyValues:keyValues context:context];\n            if (model) [modelArray addObject:model];\n        }\n    }\n    \n    return modelArray;\n}\n\n+ (NSMutableArray *)mj_objectArrayWithFilename:(NSString *)filename\n{\n    MJExtensionAssertError(filename != nil, nil, [self class], @\"filename参数为nil\");\n    \n    return [self mj_objectArrayWithFile:[[NSBundle mainBundle] pathForResource:filename ofType:nil]];\n}\n\n+ (NSMutableArray *)mj_objectArrayWithFile:(NSString *)file\n{\n    MJExtensionAssertError(file != nil, nil, [self class], @\"file参数为nil\");\n    \n    return [self mj_objectArrayWithKeyValuesArray:[NSArray arrayWithContentsOfFile:file]];\n}\n\n#pragma mark - 模型 -> 字典\n- (NSMutableDictionary *)mj_keyValues\n{\n    return [self mj_keyValuesWithKeys:nil ignoredKeys:nil];\n}\n\n- (NSMutableDictionary *)mj_keyValuesWithKeys:(NSArray *)keys\n{\n    return [self mj_keyValuesWithKeys:keys ignoredKeys:nil];\n}\n\n- (NSMutableDictionary *)mj_keyValuesWithIgnoredKeys:(NSArray *)ignoredKeys\n{\n    return [self mj_keyValuesWithKeys:nil ignoredKeys:ignoredKeys];\n}\n\n- (NSMutableDictionary *)mj_keyValuesWithKeys:(NSArray *)keys ignoredKeys:(NSArray *)ignoredKeys\n{\n    // 如果自己不是模型类, 那就返回自己\n    MJExtensionAssertError(![MJFoundation isClassFromFoundation:[self class]], (NSMutableDictionary *)self, [self class], @\"不是自定义的模型类\")\n    \n    id keyValues = [NSMutableDictionary dictionary];\n    \n    Class clazz = [self class];\n    NSArray *allowedPropertyNames = [clazz mj_totalAllowedPropertyNames];\n    NSArray *ignoredPropertyNames = [clazz mj_totalIgnoredPropertyNames];\n    \n    [clazz mj_enumerateProperties:^(MJProperty *property, BOOL *stop) {\n        @try {\n            // 0.检测是否被忽略\n            if (allowedPropertyNames.count && ![allowedPropertyNames containsObject:property.name]) return;\n            if ([ignoredPropertyNames containsObject:property.name]) return;\n            if (keys.count && ![keys containsObject:property.name]) return;\n            if ([ignoredKeys containsObject:property.name]) return;\n            \n            // 1.取出属性值\n            id value = [property valueForObject:self];\n            if (!value) return;\n            \n            // 2.如果是模型属性\n            MJPropertyType *type = property.type;\n            Class propertyClass = type.typeClass;\n            if (!type.isFromFoundation && propertyClass) {\n                value = [value mj_keyValues];\n            } else if ([value isKindOfClass:[NSArray class]]) {\n                // 3.处理数组里面有模型的情况\n                value = [NSObject mj_keyValuesArrayWithObjectArray:value];\n            } else if (propertyClass == [NSURL class]) {\n                value = [value absoluteString];\n            }\n            \n            // 4.赋值\n            if ([clazz mj_isReferenceReplacedKeyWhenCreatingKeyValues]) {\n                NSArray *propertyKeys = [[property propertyKeysForClass:clazz] firstObject];\n                NSUInteger keyCount = propertyKeys.count;\n                // 创建字典\n                __block id innerContainer = keyValues;\n                [propertyKeys enumerateObjectsUsingBlock:^(MJPropertyKey *propertyKey, NSUInteger idx, BOOL *stop) {\n                    // 下一个属性\n                    MJPropertyKey *nextPropertyKey = nil;\n                    if (idx != keyCount - 1) {\n                        nextPropertyKey = propertyKeys[idx + 1];\n                    }\n                    \n                    if (nextPropertyKey) { // 不是最后一个key\n                        // 当前propertyKey对应的字典或者数组\n                        id tempInnerContainer = [propertyKey valueInObject:innerContainer];\n                        if (tempInnerContainer == nil || [tempInnerContainer isKindOfClass:[NSNull class]]) {\n                            if (nextPropertyKey.type == MJPropertyKeyTypeDictionary) {\n                                tempInnerContainer = [NSMutableDictionary dictionary];\n                            } else {\n                                tempInnerContainer = [NSMutableArray array];\n                            }\n                            if (propertyKey.type == MJPropertyKeyTypeDictionary) {\n                                innerContainer[propertyKey.name] = tempInnerContainer;\n                            } else {\n                                innerContainer[propertyKey.name.intValue] = tempInnerContainer;\n                            }\n                        }\n                        \n                        if ([tempInnerContainer isKindOfClass:[NSMutableArray class]]) {\n                            NSMutableArray *tempInnerContainerArray = tempInnerContainer;\n                            int index = nextPropertyKey.name.intValue;\n                            while (tempInnerContainerArray.count < index + 1) {\n                                [tempInnerContainerArray addObject:[NSNull null]];\n                            }\n                        }\n                        \n                        innerContainer = tempInnerContainer;\n                    } else { // 最后一个key\n                        if (propertyKey.type == MJPropertyKeyTypeDictionary) {\n                            innerContainer[propertyKey.name] = value;\n                        } else {\n                            innerContainer[propertyKey.name.intValue] = value;\n                        }\n                    }\n                }];\n            } else {\n                keyValues[property.name] = value;\n            }\n        } @catch (NSException *exception) {\n            MJExtensionBuildError([self class], exception.reason);\n            MJExtensionLog(@\"%@\", exception);\n        }\n    }];\n    \n    // 转换完毕\n    if ([self respondsToSelector:@selector(mj_objectDidFinishConvertingToKeyValues)]) {\n        [self mj_objectDidFinishConvertingToKeyValues];\n    }\n    \n    return keyValues;\n}\n#pragma mark - 模型数组 -> 字典数组\n+ (NSMutableArray *)mj_keyValuesArrayWithObjectArray:(NSArray *)objectArray\n{\n    return [self mj_keyValuesArrayWithObjectArray:objectArray keys:nil ignoredKeys:nil];\n}\n\n+ (NSMutableArray *)mj_keyValuesArrayWithObjectArray:(NSArray *)objectArray keys:(NSArray *)keys\n{\n    return [self mj_keyValuesArrayWithObjectArray:objectArray keys:keys ignoredKeys:nil];\n}\n\n+ (NSMutableArray *)mj_keyValuesArrayWithObjectArray:(NSArray *)objectArray ignoredKeys:(NSArray *)ignoredKeys\n{\n    return [self mj_keyValuesArrayWithObjectArray:objectArray keys:nil ignoredKeys:ignoredKeys];\n}\n\n+ (NSMutableArray *)mj_keyValuesArrayWithObjectArray:(NSArray *)objectArray keys:(NSArray *)keys ignoredKeys:(NSArray *)ignoredKeys\n{\n    // 0.判断真实性\n    MJExtensionAssertError([objectArray isKindOfClass:[NSArray class]], nil, [self class], @\"objectArray参数不是一个数组\");\n    \n    // 1.创建数组\n    NSMutableArray *keyValuesArray = [NSMutableArray array];\n    for (id object in objectArray) {\n        if (keys) {\n            [keyValuesArray addObject:[object mj_keyValuesWithKeys:keys]];\n        } else {\n            [keyValuesArray addObject:[object mj_keyValuesWithIgnoredKeys:ignoredKeys]];\n        }\n    }\n    return keyValuesArray;\n}\n\n#pragma mark - 转换为JSON\n- (NSData *)mj_JSONData\n{\n    if ([self isKindOfClass:[NSString class]]) {\n        return [((NSString *)self) dataUsingEncoding:NSUTF8StringEncoding];\n    } else if ([self isKindOfClass:[NSData class]]) {\n        return (NSData *)self;\n    }\n    \n    return [NSJSONSerialization dataWithJSONObject:[self mj_JSONObject] options:kNilOptions error:nil];\n}\n\n- (id)mj_JSONObject\n{\n    if ([self isKindOfClass:[NSString class]]) {\n        return [NSJSONSerialization JSONObjectWithData:[((NSString *)self) dataUsingEncoding:NSUTF8StringEncoding] options:kNilOptions error:nil];\n    } else if ([self isKindOfClass:[NSData class]]) {\n        return [NSJSONSerialization JSONObjectWithData:(NSData *)self options:kNilOptions error:nil];\n    }\n    \n    return self.mj_keyValues;\n}\n\n- (NSString *)mj_JSONString\n{\n    if ([self isKindOfClass:[NSString class]]) {\n        return (NSString *)self;\n    } else if ([self isKindOfClass:[NSData class]]) {\n        return [[NSString alloc] initWithData:(NSData *)self encoding:NSUTF8StringEncoding];\n    }\n    \n    return [[NSString alloc] initWithData:[self mj_JSONData] encoding:NSUTF8StringEncoding];\n}\n@end\n\n@implementation NSObject (MJKeyValueDeprecated_v_2_5_16)\n- (instancetype)setKeyValues:(id)keyValues\n{\n    return [self mj_setKeyValues:keyValues];\n}\n\n- (instancetype)setKeyValues:(id)keyValues error:(NSError **)error\n{\n    id value = [self mj_setKeyValues:keyValues];\n    if (error != NULL) {\n    *error = [self.class mj_error];\n    }\n    return value;\n    \n}\n\n- (instancetype)setKeyValues:(id)keyValues context:(NSManagedObjectContext *)context\n{\n    return [self mj_setKeyValues:keyValues context:context];\n}\n\n- (instancetype)setKeyValues:(id)keyValues context:(NSManagedObjectContext *)context error:(NSError **)error\n{\n    id value = [self mj_setKeyValues:keyValues context:context];\n    if (error != NULL) {\n    *error = [self.class mj_error];\n    }\n    return value;\n}\n\n+ (void)referenceReplacedKeyWhenCreatingKeyValues:(BOOL)reference\n{\n    [self mj_referenceReplacedKeyWhenCreatingKeyValues:reference];\n}\n\n- (NSMutableDictionary *)keyValues\n{\n    return [self mj_keyValues];\n}\n\n- (NSMutableDictionary *)keyValuesWithError:(NSError **)error\n{\n    id value = [self mj_keyValues];\n    if (error != NULL) {\n    *error = [self.class mj_error];\n    }\n    return value;\n}\n\n- (NSMutableDictionary *)keyValuesWithKeys:(NSArray *)keys\n{\n    return [self mj_keyValuesWithKeys:keys];\n}\n\n- (NSMutableDictionary *)keyValuesWithKeys:(NSArray *)keys error:(NSError **)error\n{\n    id value = [self mj_keyValuesWithKeys:keys];\n    if (error != NULL) {\n    *error = [self.class mj_error];\n    }\n    return value;\n}\n\n- (NSMutableDictionary *)keyValuesWithIgnoredKeys:(NSArray *)ignoredKeys\n{\n    return [self mj_keyValuesWithIgnoredKeys:ignoredKeys];\n}\n\n- (NSMutableDictionary *)keyValuesWithIgnoredKeys:(NSArray *)ignoredKeys error:(NSError **)error\n{\n    id value = [self mj_keyValuesWithIgnoredKeys:ignoredKeys];\n    if (error != NULL) {\n    *error = [self.class mj_error];\n    }\n    return value;\n}\n\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray\n{\n    return [self mj_keyValuesArrayWithObjectArray:objectArray];\n}\n\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray error:(NSError **)error\n{\n    id value = [self mj_keyValuesArrayWithObjectArray:objectArray];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray keys:(NSArray *)keys\n{\n    return [self mj_keyValuesArrayWithObjectArray:objectArray keys:keys];\n}\n\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray keys:(NSArray *)keys error:(NSError **)error\n{\n    id value = [self mj_keyValuesArrayWithObjectArray:objectArray keys:keys];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray ignoredKeys:(NSArray *)ignoredKeys\n{\n    return [self mj_keyValuesArrayWithObjectArray:objectArray ignoredKeys:ignoredKeys];\n}\n\n+ (NSMutableArray *)keyValuesArrayWithObjectArray:(NSArray *)objectArray ignoredKeys:(NSArray *)ignoredKeys error:(NSError **)error\n{\n    id value = [self mj_keyValuesArrayWithObjectArray:objectArray ignoredKeys:ignoredKeys];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (instancetype)objectWithKeyValues:(id)keyValues\n{\n    return [self mj_objectWithKeyValues:keyValues];\n}\n\n+ (instancetype)objectWithKeyValues:(id)keyValues error:(NSError **)error\n{\n    id value = [self mj_objectWithKeyValues:keyValues];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (instancetype)objectWithKeyValues:(id)keyValues context:(NSManagedObjectContext *)context\n{\n    return [self mj_objectWithKeyValues:keyValues context:context];\n}\n\n+ (instancetype)objectWithKeyValues:(id)keyValues context:(NSManagedObjectContext *)context error:(NSError **)error\n{\n    id value = [self mj_objectWithKeyValues:keyValues context:context];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (instancetype)objectWithFilename:(NSString *)filename\n{\n    return [self mj_objectWithFilename:filename];\n}\n\n+ (instancetype)objectWithFilename:(NSString *)filename error:(NSError **)error\n{\n    id value = [self mj_objectWithFilename:filename];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (instancetype)objectWithFile:(NSString *)file\n{\n    return [self mj_objectWithFile:file];\n}\n\n+ (instancetype)objectWithFile:(NSString *)file error:(NSError **)error\n{\n    id value = [self mj_objectWithFile:file];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (NSMutableArray *)objectArrayWithKeyValuesArray:(id)keyValuesArray\n{\n    return [self mj_objectArrayWithKeyValuesArray:keyValuesArray];\n}\n\n+ (NSMutableArray *)objectArrayWithKeyValuesArray:(id)keyValuesArray error:(NSError **)error\n{\n    id value = [self mj_objectArrayWithKeyValuesArray:keyValuesArray];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (NSMutableArray *)objectArrayWithKeyValuesArray:(id)keyValuesArray context:(NSManagedObjectContext *)context\n{\n    return [self mj_objectArrayWithKeyValuesArray:keyValuesArray context:context];\n}\n\n+ (NSMutableArray *)objectArrayWithKeyValuesArray:(id)keyValuesArray context:(NSManagedObjectContext *)context error:(NSError **)error\n{\n    id value = [self mj_objectArrayWithKeyValuesArray:keyValuesArray context:context];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (NSMutableArray *)objectArrayWithFilename:(NSString *)filename\n{\n    return [self mj_objectArrayWithFilename:filename];\n}\n\n+ (NSMutableArray *)objectArrayWithFilename:(NSString *)filename error:(NSError **)error\n{\n    id value = [self mj_objectArrayWithFilename:filename];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n+ (NSMutableArray *)objectArrayWithFile:(NSString *)file\n{\n    return [self mj_objectArrayWithFile:file];\n}\n\n+ (NSMutableArray *)objectArrayWithFile:(NSString *)file error:(NSError **)error\n{\n    id value = [self mj_objectArrayWithFile:file];\n    if (error != NULL) {\n    *error = [self mj_error];\n    }\n    return value;\n}\n\n- (NSData *)JSONData\n{\n    return [self mj_JSONData];\n}\n\n- (id)JSONObject\n{\n    return [self mj_JSONObject];\n}\n\n- (NSString *)JSONString\n{\n    return [self mj_JSONString];\n}\n@end"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSObject+MJProperty.h",
    "content": "//\n//  NSObject+MJProperty.h\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/4/17.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"MJExtensionConst.h\"\n\n@class MJProperty;\n\n/**\n *  遍历成员变量用的block\n *\n *  @param property 成员的包装对象\n *  @param stop   YES代表停止遍历，NO代表继续遍历\n */\ntypedef void (^MJPropertiesEnumeration)(MJProperty *property, BOOL *stop);\n\n/** 将属性名换为其他key去字典中取值 */\ntypedef NSDictionary * (^MJReplacedKeyFromPropertyName)();\ntypedef NSString * (^MJReplacedKeyFromPropertyName121)(NSString *propertyName);\n/** 数组中需要转换的模型类 */\ntypedef NSDictionary * (^MJObjectClassInArray)();\n/** 用于过滤字典中的值 */\ntypedef id (^MJNewValueFromOldValue)(id object, id oldValue, MJProperty *property);\n\n/**\n * 成员属性相关的扩展\n */\n@interface NSObject (MJProperty)\n#pragma mark - 遍历\n/**\n *  遍历所有的成员\n */\n+ (void)mj_enumerateProperties:(MJPropertiesEnumeration)enumeration;\n\n#pragma mark - 新值配置\n/**\n *  用于过滤字典中的值\n *\n *  @param newValueFormOldValue 用于过滤字典中的值\n */\n+ (void)mj_setupNewValueFromOldValue:(MJNewValueFromOldValue)newValueFormOldValue;\n+ (id)mj_getNewValueFromObject:(__unsafe_unretained id)object oldValue:(__unsafe_unretained id)oldValue property:(__unsafe_unretained MJProperty *)property;\n\n#pragma mark - key配置\n/**\n *  将属性名换为其他key去字典中取值\n *\n *  @param replacedKeyFromPropertyName 将属性名换为其他key去字典中取值\n */\n+ (void)mj_setupReplacedKeyFromPropertyName:(MJReplacedKeyFromPropertyName)replacedKeyFromPropertyName;\n/**\n *  将属性名换为其他key去字典中取值\n *\n *  @param replacedKeyFromPropertyName121 将属性名换为其他key去字典中取值\n */\n+ (void)mj_setupReplacedKeyFromPropertyName121:(MJReplacedKeyFromPropertyName121)replacedKeyFromPropertyName121;\n\n#pragma mark - array model class配置\n/**\n *  数组中需要转换的模型类\n *\n *  @param objectClassInArray          数组中需要转换的模型类\n */\n+ (void)mj_setupObjectClassInArray:(MJObjectClassInArray)objectClassInArray;\n@end\n\n@interface NSObject (MJPropertyDeprecated_v_2_5_16)\n+ (void)enumerateProperties:(MJPropertiesEnumeration)enumeration MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (void)setupNewValueFromOldValue:(MJNewValueFromOldValue)newValueFormOldValue MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (id)getNewValueFromObject:(__unsafe_unretained id)object oldValue:(__unsafe_unretained id)oldValue property:(__unsafe_unretained MJProperty *)property MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (void)setupReplacedKeyFromPropertyName:(MJReplacedKeyFromPropertyName)replacedKeyFromPropertyName MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (void)setupReplacedKeyFromPropertyName121:(MJReplacedKeyFromPropertyName121)replacedKeyFromPropertyName121 MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n+ (void)setupObjectClassInArray:(MJObjectClassInArray)objectClassInArray MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n@end"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSObject+MJProperty.m",
    "content": "//\n//  NSObject+MJProperty.m\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/4/17.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"NSObject+MJProperty.h\"\n#import \"NSObject+MJKeyValue.h\"\n#import \"NSObject+MJCoding.h\"\n#import \"NSObject+MJClass.h\"\n#import \"MJProperty.h\"\n#import \"MJFoundation.h\"\n#import <objc/runtime.h>\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wundeclared-selector\"\n#pragma clang diagnostic ignored \"-Warc-performSelector-leaks\"\n\nstatic const char MJReplacedKeyFromPropertyNameKey = '\\0';\nstatic const char MJReplacedKeyFromPropertyName121Key = '\\0';\nstatic const char MJNewValueFromOldValueKey = '\\0';\nstatic const char MJObjectClassInArrayKey = '\\0';\n\nstatic const char MJCachedPropertiesKey = '\\0';\n\n@implementation NSObject (Property)\n\nstatic NSMutableDictionary *replacedKeyFromPropertyNameDict_;\nstatic NSMutableDictionary *replacedKeyFromPropertyName121Dict_;\nstatic NSMutableDictionary *newValueFromOldValueDict_;\nstatic NSMutableDictionary *objectClassInArrayDict_;\nstatic NSMutableDictionary *cachedPropertiesDict_;\n\n+ (void)load\n{\n    replacedKeyFromPropertyNameDict_ = [NSMutableDictionary dictionary];\n    replacedKeyFromPropertyName121Dict_ = [NSMutableDictionary dictionary];\n    newValueFromOldValueDict_ = [NSMutableDictionary dictionary];\n    objectClassInArrayDict_ = [NSMutableDictionary dictionary];\n    cachedPropertiesDict_ = [NSMutableDictionary dictionary];\n}\n\n+ (NSMutableDictionary *)dictForKey:(const void *)key\n{\n    if (key == &MJReplacedKeyFromPropertyNameKey) return replacedKeyFromPropertyNameDict_;\n    if (key == &MJReplacedKeyFromPropertyName121Key) return replacedKeyFromPropertyName121Dict_;\n    if (key == &MJNewValueFromOldValueKey) return newValueFromOldValueDict_;\n    if (key == &MJObjectClassInArrayKey) return objectClassInArrayDict_;\n    if (key == &MJCachedPropertiesKey) return cachedPropertiesDict_;\n    return nil;\n}\n\n#pragma mark - --私有方法--\n+ (NSString *)propertyKey:(NSString *)propertyName\n{\n    MJExtensionAssertParamNotNil2(propertyName, nil);\n    \n    __block NSString *key = nil;\n    // 查看有没有需要替换的key\n    if ([self respondsToSelector:@selector(mj_replacedKeyFromPropertyName121:)]) {\n        key = [self mj_replacedKeyFromPropertyName121:propertyName];\n    }\n    // 兼容旧版本\n    if ([self respondsToSelector:@selector(replacedKeyFromPropertyName121:)]) {\n        key = [self performSelector:@selector(replacedKeyFromPropertyName121) withObject:propertyName];\n    }\n    \n    // 调用block\n    if (!key) {\n        [self mj_enumerateAllClasses:^(__unsafe_unretained Class c, BOOL *stop) {\n            MJReplacedKeyFromPropertyName121 block = objc_getAssociatedObject(c, &MJReplacedKeyFromPropertyName121Key);\n            if (block) {\n                key = block(propertyName);\n            }\n            if (key) *stop = YES;\n        }];\n    }\n    \n    // 查看有没有需要替换的key\n    if (!key && [self respondsToSelector:@selector(mj_replacedKeyFromPropertyName)]) {\n        key = [self mj_replacedKeyFromPropertyName][propertyName];\n    }\n    // 兼容旧版本\n    if (!key && [self respondsToSelector:@selector(replacedKeyFromPropertyName)]) {\n        key = [self performSelector:@selector(replacedKeyFromPropertyName)][propertyName];\n    }\n    \n    if (!key) {\n        [self mj_enumerateAllClasses:^(__unsafe_unretained Class c, BOOL *stop) {\n            NSDictionary *dict = objc_getAssociatedObject(c, &MJReplacedKeyFromPropertyNameKey);\n            if (dict) {\n                key = dict[propertyName];\n            }\n            if (key) *stop = YES;\n        }];\n    }\n    \n    // 2.用属性名作为key\n    if (!key) key = propertyName;\n    \n    return key;\n}\n\n+ (Class)propertyObjectClassInArray:(NSString *)propertyName\n{\n    __block id clazz = nil;\n    if ([self respondsToSelector:@selector(mj_objectClassInArray)]) {\n        clazz = [self mj_objectClassInArray][propertyName];\n    }\n    // 兼容旧版本\n    if ([self respondsToSelector:@selector(objectClassInArray)]) {\n        clazz = [self performSelector:@selector(objectClassInArray)][propertyName];\n    }\n    \n    if (!clazz) {\n        [self mj_enumerateAllClasses:^(__unsafe_unretained Class c, BOOL *stop) {\n            NSDictionary *dict = objc_getAssociatedObject(c, &MJObjectClassInArrayKey);\n            if (dict) {\n                clazz = dict[propertyName];\n            }\n            if (clazz) *stop = YES;\n        }];\n    }\n    \n    // 如果是NSString类型\n    if ([clazz isKindOfClass:[NSString class]]) {\n        clazz = NSClassFromString(clazz);\n    }\n    return clazz;\n}\n\n#pragma mark - --公共方法--\n+ (void)mj_enumerateProperties:(MJPropertiesEnumeration)enumeration\n{\n    // 获得成员变量\n    NSArray *cachedProperties = [self properties];\n    \n    // 遍历成员变量\n    BOOL stop = NO;\n    for (MJProperty *property in cachedProperties) {\n        enumeration(property, &stop);\n        if (stop) break;\n    }\n}\n\n#pragma mark - 公共方法\n+ (NSMutableArray *)properties\n{\n    NSMutableArray *cachedProperties = [self dictForKey:&MJCachedPropertiesKey][NSStringFromClass(self)];\n    \n    if (cachedProperties == nil) {\n        cachedProperties = [NSMutableArray array];\n        \n        [self mj_enumerateClasses:^(__unsafe_unretained Class c, BOOL *stop) {\n            // 1.获得所有的成员变量\n            unsigned int outCount = 0;\n            objc_property_t *properties = class_copyPropertyList(c, &outCount);\n            \n            // 2.遍历每一个成员变量\n            for (unsigned int i = 0; i<outCount; i++) {\n                MJProperty *property = [MJProperty cachedPropertyWithProperty:properties[i]];\n                // 过滤掉系统自动添加的元素\n                if ([property.name isEqualToString:@\"hash\"]\n                    || [property.name isEqualToString:@\"superclass\"]\n                    || [property.name isEqualToString:@\"description\"]\n                    || [property.name isEqualToString:@\"debugDescription\"]) {\n                    continue;\n                }\n                property.srcClass = c;\n                [property setOriginKey:[self propertyKey:property.name] forClass:self];\n                [property setObjectClassInArray:[self propertyObjectClassInArray:property.name] forClass:self];\n                [cachedProperties addObject:property];\n            }\n            \n            // 3.释放内存\n            free(properties);\n        }];\n        \n        [self dictForKey:&MJCachedPropertiesKey][NSStringFromClass(self)] = cachedProperties;\n    }\n    \n    return cachedProperties;\n}\n\n#pragma mark - 新值配置\n+ (void)mj_setupNewValueFromOldValue:(MJNewValueFromOldValue)newValueFormOldValue\n{\n    objc_setAssociatedObject(self, &MJNewValueFromOldValueKey, newValueFormOldValue, OBJC_ASSOCIATION_COPY_NONATOMIC);\n}\n\n+ (id)mj_getNewValueFromObject:(__unsafe_unretained id)object oldValue:(__unsafe_unretained id)oldValue property:(MJProperty *__unsafe_unretained)property{\n    // 如果有实现方法\n    if ([object respondsToSelector:@selector(mj_newValueFromOldValue:property:)]) {\n        return [object mj_newValueFromOldValue:oldValue property:property];\n    }\n    // 兼容旧版本\n    if ([self respondsToSelector:@selector(newValueFromOldValue:property:)]) {\n        return [self performSelector:@selector(newValueFromOldValue:property:)  withObject:oldValue  withObject:property];\n    }\n    \n    // 查看静态设置\n    __block id newValue = oldValue;\n    [self mj_enumerateAllClasses:^(__unsafe_unretained Class c, BOOL *stop) {\n        MJNewValueFromOldValue block = objc_getAssociatedObject(c, &MJNewValueFromOldValueKey);\n        if (block) {\n            newValue = block(object, oldValue, property);\n            *stop = YES;\n        }\n    }];\n    return newValue;\n}\n\n#pragma mark - array model class配置\n+ (void)mj_setupObjectClassInArray:(MJObjectClassInArray)objectClassInArray\n{\n    [self mj_setupBlockReturnValue:objectClassInArray key:&MJObjectClassInArrayKey];\n    \n    [[self dictForKey:&MJCachedPropertiesKey] removeAllObjects];\n}\n\n#pragma mark - key配置\n+ (void)mj_setupReplacedKeyFromPropertyName:(MJReplacedKeyFromPropertyName)replacedKeyFromPropertyName\n{\n    [self mj_setupBlockReturnValue:replacedKeyFromPropertyName key:&MJReplacedKeyFromPropertyNameKey];\n    \n    [[self dictForKey:&MJCachedPropertiesKey] removeAllObjects];\n}\n\n+ (void)mj_setupReplacedKeyFromPropertyName121:(MJReplacedKeyFromPropertyName121)replacedKeyFromPropertyName121\n{\n    objc_setAssociatedObject(self, &MJReplacedKeyFromPropertyName121Key, replacedKeyFromPropertyName121, OBJC_ASSOCIATION_COPY_NONATOMIC);\n    \n    [[self dictForKey:&MJCachedPropertiesKey] removeAllObjects];\n}\n@end\n\n@implementation NSObject (MJPropertyDeprecated_v_2_5_16)\n+ (void)enumerateProperties:(MJPropertiesEnumeration)enumeration\n{\n    [self mj_enumerateProperties:enumeration];\n}\n\n+ (void)setupNewValueFromOldValue:(MJNewValueFromOldValue)newValueFormOldValue\n{\n    [self mj_setupNewValueFromOldValue:newValueFormOldValue];\n}\n\n+ (id)getNewValueFromObject:(__unsafe_unretained id)object oldValue:(__unsafe_unretained id)oldValue property:(__unsafe_unretained MJProperty *)property\n{\n    return [self mj_getNewValueFromObject:object oldValue:oldValue property:property];\n}\n\n+ (void)setupReplacedKeyFromPropertyName:(MJReplacedKeyFromPropertyName)replacedKeyFromPropertyName\n{\n    [self mj_setupReplacedKeyFromPropertyName:replacedKeyFromPropertyName];\n}\n\n+ (void)setupReplacedKeyFromPropertyName121:(MJReplacedKeyFromPropertyName121)replacedKeyFromPropertyName121\n{\n    [self mj_setupReplacedKeyFromPropertyName121:replacedKeyFromPropertyName121];\n}\n\n+ (void)setupObjectClassInArray:(MJObjectClassInArray)objectClassInArray\n{\n    [self mj_setupObjectClassInArray:objectClassInArray];\n}\n@end\n\n#pragma clang diagnostic pop\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSString+MJExtension.h",
    "content": "//\n//  NSString+MJExtension.h\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/6/7.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"MJExtensionConst.h\"\n\n@interface NSString (MJExtension)\n/**\n *  驼峰转下划线（loveYou -> love_you）\n */\n- (NSString *)mj_underlineFromCamel;\n/**\n *  下划线转驼峰（love_you -> loveYou）\n */\n- (NSString *)mj_camelFromUnderline;\n/**\n * 首字母变大写\n */\n- (NSString *)mj_firstCharUpper;\n/**\n * 首字母变小写\n */\n- (NSString *)mj_firstCharLower;\n\n- (BOOL)mj_isPureInt;\n\n- (NSURL *)mj_url;\n@end\n\n@interface NSString (MJExtensionDeprecated_v_2_5_16)\n- (NSString *)underlineFromCamel MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSString *)camelFromUnderline MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSString *)firstCharUpper MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSString *)firstCharLower MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (BOOL)isPureInt MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n- (NSURL *)url MJExtensionDeprecated(\"请在方法名前面加上mj_前缀，使用mj_***\");\n@end\n"
  },
  {
    "path": "Pods/MJExtension/MJExtension/NSString+MJExtension.m",
    "content": "//\n//  NSString+MJExtension.m\n//  MJExtensionExample\n//\n//  Created by MJ Lee on 15/6/7.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"NSString+MJExtension.h\"\n\n@implementation NSString (MJExtension)\n- (NSString *)mj_underlineFromCamel\n{\n    if (self.length == 0) return self;\n    NSMutableString *string = [NSMutableString string];\n    for (NSUInteger i = 0; i<self.length; i++) {\n        unichar c = [self characterAtIndex:i];\n        NSString *cString = [NSString stringWithFormat:@\"%c\", c];\n        NSString *cStringLower = [cString lowercaseString];\n        if ([cString isEqualToString:cStringLower]) {\n            [string appendString:cStringLower];\n        } else {\n            [string appendString:@\"_\"];\n            [string appendString:cStringLower];\n        }\n    }\n    return string;\n}\n\n- (NSString *)mj_camelFromUnderline\n{\n    if (self.length == 0) return self;\n    NSMutableString *string = [NSMutableString string];\n    NSArray *cmps = [self componentsSeparatedByString:@\"_\"];\n    for (NSUInteger i = 0; i<cmps.count; i++) {\n        NSString *cmp = cmps[i];\n        if (i && cmp.length) {\n            [string appendString:[NSString stringWithFormat:@\"%c\", [cmp characterAtIndex:0]].uppercaseString];\n            if (cmp.length >= 2) [string appendString:[cmp substringFromIndex:1]];\n        } else {\n            [string appendString:cmp];\n        }\n    }\n    return string;\n}\n\n- (NSString *)mj_firstCharLower\n{\n    if (self.length == 0) return self;\n    NSMutableString *string = [NSMutableString string];\n    [string appendString:[NSString stringWithFormat:@\"%c\", [self characterAtIndex:0]].lowercaseString];\n    if (self.length >= 2) [string appendString:[self substringFromIndex:1]];\n    return string;\n}\n\n- (NSString *)mj_firstCharUpper\n{\n    if (self.length == 0) return self;\n    NSMutableString *string = [NSMutableString string];\n    [string appendString:[NSString stringWithFormat:@\"%c\", [self characterAtIndex:0]].uppercaseString];\n    if (self.length >= 2) [string appendString:[self substringFromIndex:1]];\n    return string;\n}\n\n- (BOOL)mj_isPureInt\n{\n    NSScanner *scan = [NSScanner scannerWithString:self];\n    int val;\n    return [scan scanInt:&val] && [scan isAtEnd];\n}\n\n- (NSURL *)mj_url\n{\n//    [self stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:@\"!$&'()*+,-./:;=?@_~%#[]\"]];\n    \n    return [NSURL URLWithString:(NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)self, (CFStringRef)@\"!$&'()*+,-./:;=?@_~%#[]\", NULL,kCFStringEncodingUTF8))];\n}\n@end\n\n@implementation NSString (MJExtensionDeprecated_v_2_5_16)\n- (NSString *)underlineFromCamel\n{\n    return self.mj_underlineFromCamel;\n}\n\n- (NSString *)camelFromUnderline\n{\n    return self.mj_camelFromUnderline;\n}\n\n- (NSString *)firstCharLower\n{\n    return self.mj_firstCharLower;\n}\n\n- (NSString *)firstCharUpper\n{\n    return self.mj_firstCharUpper;\n}\n\n- (BOOL)isPureInt\n{\n    return self.mj_isPureInt;\n}\n\n- (NSURL *)url\n{\n    return self.mj_url;\n}\n@end\n"
  },
  {
    "path": "Pods/MJExtension/README.md",
    "content": "\n![Logo](http://images.cnitblog.com/blog2015/497279/201505/051004316736641.png)\nMJExtension\n===\n- A fast, convenient and nonintrusive conversion between JSON and model.\n- 转换速度快、使用简单方便的字典转模型框架\n\nGitHub：[CoderMJLee](https://github.com/CoderMJLee) ｜ Blog：[mjios(Chinese)](http://www.cnblogs.com/mjios) ｜ PR is welcome，or [feedback](mailto:richermj123go@vip.qq.com)\n\n\n## Contents\n* [Getting Started 【开始使用】](#Getting_Started)\n\t* [Features 【能做什么】](#Features)\n\t* [Installation 【安装】](#Installation)\n* [Examples 【示例】](#Examples)\n\t* [JSON -> Model](#JSON_Model)\n\t* [JSONString -> Model](#JSONString_Model)\n\t* [Model contains model](#Model_contains_model)\n\t* [Model contains model-array](#Model_contains_model_array)\n\t* [Model name - JSON key mapping](#Model_name_JSON_key_mapping)\n\t* [JSON array -> model array](#JSON_array_model_array)\n\t* [Model -> JSON](#Model_JSON)\n\t* [Model array -> JSON array](#Model_array_JSON_array)\n\t* [Core Data](#Core_Data)\n\t* [Coding](#Coding)\n\t* [Camel -> underline](#Camel_underline)\n\t* [NSString -> NSDate, nil -> @\"\"](#NSString_NSDate)\n\t* [More use cases](#More_use_cases)\n\n---\n\n# <a id=\"Getting_Started\"></a> Getting Started【开始使用】\n\n## <a id=\"Features\"></a> Features【能做什么】\n- MJExtension是一套字典和模型之间互相转换的超轻量级框架\n* `JSON` --> `Model`、`Core Data Model`\n* `JSONString` --> `Model`、`Core Data Model`\n* `Model`、`Core Data Model` --> `JSON`\n* `JSON Array` --> `Model Array`、`Core Data Model Array`\n* `JSONString` --> `Model Array`、`Core Data Model Array`\n* `Model Array`、`Core Data Model Array` --> `JSON Array`\n* Coding all properties of model in one line code.\n    * 只需要一行代码，就能实现模型的所有属性进行Coding（归档和解档）\n\n## <a id=\"Installation\"></a> Installation【安装】\n\n### From CocoaPods【使用CocoaPods】\n\n```ruby\npod 'MJExtension'\n```\n\n### Manually【手动导入】\n- Drag all source files under floder `MJExtension` to your project.【将`MJExtension`文件夹中的所有源代码拽入项目中】\n- Import the main header file：`#import \"MJExtension.h\"`【导入主头文件：`#import \"MJExtension.h\"`】\n\n```objc\nMJExtension.h\nMJConst.h               MJConst.m\nMJFoundation.h          MJFoundation.m\nMJProperty.h            MJProperty.m\nMJType.h                MJType.m\nNSObject+MJCoding.h     NSObject+MJCoding.m\nNSObject+MJProperty.h   NSObject+MJProperty.m\nNSObject+MJKeyValue.h   NSObject+MJKeyValue.m\n```\n\n# <a id=\"Examples\"></a> Examples【示例】\n\n### <a id=\"JSON_Model\"></a> The most simple JSON -> Model【最简单的字典转模型】\n\n```objc\ntypedef enum {\n    SexMale,\n    SexFemale\n} Sex;\n\n@interface User : NSObject\n@property (copy, nonatomic) NSString *name;\n@property (copy, nonatomic) NSString *icon;\n@property (assign, nonatomic) unsigned int age;\n@property (copy, nonatomic) NSString *height;\n@property (strong, nonatomic) NSNumber *money;\n@property (assign, nonatomic) Sex sex;\n@property (assign, nonatomic, getter=isGay) BOOL gay;\n@end\n\n/***********************************************/\n\nNSDictionary *dict = @{\n    @\"name\" : @\"Jack\",\n    @\"icon\" : @\"lufy.png\",\n    @\"age\" : @20,\n    @\"height\" : @\"1.55\",\n    @\"money\" : @100.9,\n    @\"sex\" : @(SexFemale),\n    @\"gay\" : @\"true\"\n//   @\"gay\" : @\"1\"\n//   @\"gay\" : @\"NO\"\n};\n\n// JSON -> User\nUser *user = [User mj_objectWithKeyValues:dict];\n\nNSLog(@\"name=%@, icon=%@, age=%zd, height=%@, money=%@, sex=%d, gay=%d\", user.name, user.icon, user.age, user.height, user.money, user.sex, user.gay);\n// name=Jack, icon=lufy.png, age=20, height=1.550000, money=100.9, sex=1\n```\n\n### <a id=\"JSONString_Model\"></a> JSONString -> Model【JSON字符串转模型】\n\n```objc\n// 1.Define a JSONString\nNSString *jsonString = @\"{\\\"name\\\":\\\"Jack\\\", \\\"icon\\\":\\\"lufy.png\\\", \\\"age\\\":20}\";\n\n// 2.JSONString -> User\nUser *user = [User mj_objectWithKeyValues:jsonString];\n\n// 3.Print user's properties\nNSLog(@\"name=%@, icon=%@, age=%d\", user.name, user.icon, user.age);\n// name=Jack, icon=lufy.png, age=20\n```\n\n### <a id=\"Model_contains_model\"></a> Model contains model【模型中嵌套模型】\n\n```objc\n@interface Status : NSObject\n@property (copy, nonatomic) NSString *text;\n@property (strong, nonatomic) User *user;\n@property (strong, nonatomic) Status *retweetedStatus;\n@end\n\n/***********************************************/\n\nNSDictionary *dict = @{\n    @\"text\" : @\"Agree!Nice weather!\",\n    @\"user\" : @{\n        @\"name\" : @\"Jack\",\n        @\"icon\" : @\"lufy.png\"\n    },\n    @\"retweetedStatus\" : @{\n        @\"text\" : @\"Nice weather!\",\n        @\"user\" : @{\n            @\"name\" : @\"Rose\",\n            @\"icon\" : @\"nami.png\"\n        }\n    }\n};\n\n// JSON -> Status\nStatus *status = [Status mj_objectWithKeyValues:dict];\n\nNSString *text = status.text;\nNSString *name = status.user.name;\nNSString *icon = status.user.icon;\nNSLog(@\"text=%@, name=%@, icon=%@\", text, name, icon);\n// text=Agree!Nice weather!, name=Jack, icon=lufy.png\n\nNSString *text2 = status.retweetedStatus.text;\nNSString *name2 = status.retweetedStatus.user.name;\nNSString *icon2 = status.retweetedStatus.user.icon;\nNSLog(@\"text2=%@, name2=%@, icon2=%@\", text2, name2, icon2);\n// text2=Nice weather!, name2=Rose, icon2=nami.png\n```\n\n### <a id=\"Model_contains_model_array\"></a> Model contains model-array【模型中有个数组属性，数组里面又要装着其他模型】\n\n```objc\n@interface Ad : NSObject\n@property (copy, nonatomic) NSString *image;\n@property (copy, nonatomic) NSString *url;\n@end\n\n@interface StatusResult : NSObject\n/** Contatins status model */\n@property (strong, nonatomic) NSMutableArray *statuses;\n/** Contatins ad model */\n@property (strong, nonatomic) NSArray *ads;\n@property (strong, nonatomic) NSNumber *totalNumber;\n@end\n\n/***********************************************/\n\n// Tell MJExtension what type model will be contained in statuses and ads.\n[StatusResult mj_setupObjectClassInArray:^NSDictionary *{\n    return @{\n               @\"statuses\" : @\"Status\",\n               // @\"statuses\" : [Status class],\n               @\"ads\" : @\"Ad\"\n               // @\"ads\" : [Ad class]\n           };\n}];\n// Equals: StatusResult.m implements +mj_objectClassInArray method.\n\nNSDictionary *dict = @{\n    @\"statuses\" : @[\n                      @{\n                          @\"text\" : @\"Nice weather!\",\n                          @\"user\" : @{\n                              @\"name\" : @\"Rose\",\n                              @\"icon\" : @\"nami.png\"\n                          }\n                      },\n                      @{\n                          @\"text\" : @\"Go camping tomorrow!\",\n                          @\"user\" : @{\n                              @\"name\" : @\"Jack\",\n                              @\"icon\" : @\"lufy.png\"\n                          }\n                      }\n                  ],\n    @\"ads\" : @[\n                 @{\n                     @\"image\" : @\"ad01.png\",\n                     @\"url\" : @\"http://www.ad01.com\"\n                 },\n                 @{\n                     @\"image\" : @\"ad02.png\",\n                     @\"url\" : @\"http://www.ad02.com\"\n                 }\n             ],\n    @\"totalNumber\" : @\"2014\"\n};\n\n// JSON -> StatusResult\nStatusResult *result = [StatusResult mj_objectWithKeyValues:dict];\n\nNSLog(@\"totalNumber=%@\", result.totalNumber);\n// totalNumber=2014\n\n// Printing\nfor (Status *status in result.statuses) {\n    NSString *text = status.text;\n    NSString *name = status.user.name;\n    NSString *icon = status.user.icon;\n    NSLog(@\"text=%@, name=%@, icon=%@\", text, name, icon);\n}\n// text=Nice weather!, name=Rose, icon=nami.png\n// text=Go camping tomorrow!, name=Jack, icon=lufy.png\n\n// Printing\nfor (Ad *ad in result.ads) {\n    NSLog(@\"image=%@, url=%@\", ad.image, ad.url);\n}\n// image=ad01.png, url=http://www.ad01.com\n// image=ad02.png, url=http://www.ad02.com\n```\n\n### <a id=\"Model_name_JSON_key_mapping\"></a> Model name - JSON key mapping【模型中的属性名和字典中的key不相同(或者需要多级映射)】\n\n```objc\n@interface Bag : NSObject\n@property (copy, nonatomic) NSString *name;\n@property (assign, nonatomic) double price;\n@end\n\n@interface Student : NSObject\n@property (copy, nonatomic) NSString *ID;\n@property (copy, nonatomic) NSString *desc;\n@property (copy, nonatomic) NSString *nowName;\n@property (copy, nonatomic) NSString *oldName;\n@property (copy, nonatomic) NSString *nameChangedTime;\n@property (strong, nonatomic) Bag *bag;\n@end\n\n/***********************************************/\n\n// How to map\n[Student mj_setupReplacedKeyFromPropertyName:^NSDictionary *{\n    return @{\n               @\"ID\" : @\"id\",\n               @\"desc\" : @\"desciption\",\n               @\"oldName\" : @\"name.oldName\",\n               @\"nowName\" : @\"name.newName\",\n               @\"nameChangedTime\" : @\"name.info[1].nameChangedTime\",\n               @\"bag\" : @\"other.bag\"\n           };\n}];\n// Equals: Student.m implements +mj_replacedKeyFromPropertyName method.\n\nNSDictionary *dict = @{\n    @\"id\" : @\"20\",\n    @\"desciption\" : @\"kids\",\n    @\"name\" : @{\n        @\"newName\" : @\"lufy\",\n        @\"oldName\" : @\"kitty\",\n        @\"info\" : @[\n        \t\t @\"test-data\",\n        \t\t @{\n            \t             @\"nameChangedTime\" : @\"2013-08\"\n                         }\n                  ]\n    },\n    @\"other\" : @{\n        @\"bag\" : @{\n            @\"name\" : @\"a red bag\",\n            @\"price\" : @100.7\n        }\n    }\n};\n\n// JSON -> Student\nStudent *stu = [Student mj_objectWithKeyValues:dict];\n\n// Printing\nNSLog(@\"ID=%@, desc=%@, oldName=%@, nowName=%@, nameChangedTime=%@\",\n      stu.ID, stu.desc, stu.oldName, stu.nowName, stu.nameChangedTime);\n// ID=20, desc=kids, oldName=kitty, nowName=lufy, nameChangedTime=2013-08\nNSLog(@\"bagName=%@, bagPrice=%f\", stu.bag.name, stu.bag.price);\n// bagName=a red bag, bagPrice=100.700000\n```\n\n\n### <a id=\"JSON_array_model_array\"></a> JSON array -> model array【将一个字典数组转成模型数组】\n\n```objc\nNSArray *dictArray = @[\n                         @{\n                             @\"name\" : @\"Jack\",\n                             @\"icon\" : @\"lufy.png\"\n                         },\n                         @{\n                             @\"name\" : @\"Rose\",\n                             @\"icon\" : @\"nami.png\"\n                         }\n                     ];\n\n// JSON array -> User array\nNSArray *userArray = [User mj_objectArrayWithKeyValuesArray:dictArray];\n\n// Printing\nfor (User *user in userArray) {\n    NSLog(@\"name=%@, icon=%@\", user.name, user.icon);\n}\n// name=Jack, icon=lufy.png\n// name=Rose, icon=nami.png\n```\n\n### <a id=\"Model_JSON\"></a> Model -> JSON【将一个模型转成字典】\n```objc\n// New model\nUser *user = [[User alloc] init];\nuser.name = @\"Jack\";\nuser.icon = @\"lufy.png\";\n\nStatus *status = [[Status alloc] init];\nstatus.user = user;\nstatus.text = @\"Nice mood!\";\n\n// Status -> JSON\nNSDictionary *statusDict = status.mj_keyValues;\nNSLog(@\"%@\", statusDict);\n/*\n {\n text = \"Nice mood!\";\n user =     {\n icon = \"lufy.png\";\n name = Jack;\n };\n }\n */\n\n// More complex situation\nStudent *stu = [[Student alloc] init];\nstu.ID = @\"123\";\nstu.oldName = @\"rose\";\nstu.nowName = @\"jack\";\nstu.desc = @\"handsome\";\nstu.nameChangedTime = @\"2018-09-08\";\n\nBag *bag = [[Bag alloc] init];\nbag.name = @\"a red bag\";\nbag.price = 205;\nstu.bag = bag;\n\nNSDictionary *stuDict = stu.mj_keyValues;\nNSLog(@\"%@\", stuDict);\n/*\n{\n    ID = 123;\n    bag =     {\n        name = \"\\U5c0f\\U4e66\\U5305\";\n        price = 205;\n    };\n    desc = handsome;\n    nameChangedTime = \"2018-09-08\";\n    nowName = jack;\n    oldName = rose;\n}\n */\n```\n\n### <a id=\"Model_array_JSON_array\"></a> Model array -> JSON array【将一个模型数组转成字典数组】\n\n```objc\n// New model array\nUser *user1 = [[User alloc] init];\nuser1.name = @\"Jack\";\nuser1.icon = @\"lufy.png\";\n\nUser *user2 = [[User alloc] init];\nuser2.name = @\"Rose\";\nuser2.icon = @\"nami.png\";\n\nNSArray *userArray = @[user1, user2];\n\n// Model array -> JSON array\nNSArray *dictArray = [User mj_keyValuesArrayWithObjectArray:userArray];\nNSLog(@\"%@\", dictArray);\n/*\n (\n {\n icon = \"lufy.png\";\n name = Jack;\n },\n {\n icon = \"nami.png\";\n name = Rose;\n }\n )\n */\n```\n\n### <a id=\"Core_Data\"></a> Core Data\n\n```objc\nNSDictionary *dict = @{\n                         @\"name\" : @\"Jack\",\n                         @\"icon\" : @\"lufy.png\",\n                         @\"age\" : @20,\n                         @\"height\" : @1.55,\n                         @\"money\" : @\"100.9\",\n                         @\"sex\" : @(SexFemale),\n                         @\"gay\" : @\"true\"\n                     };\n\n// This demo just provide simple steps\nNSManagedObjectContext *context = nil;\nUser *user = [User mj_objectWithKeyValues:dict context:context];\n\n[context save:nil];\n```\n\n### <a id=\"Coding\"></a> Coding\n\n```objc\n#import \"MJExtension.h\"\n\n@implementation Bag\n// NSCoding Implementation\nMJExtensionCodingImplementation\n@end\n\n/***********************************************/\n\n// what properties not to be coded\n[Bag mj_setupIgnoredCodingPropertyNames:^NSArray *{\n    return @[@\"name\"];\n}];\n// Equals: Bag.m implements +mj_ignoredCodingPropertyNames method.\n\n// Create model\nBag *bag = [[Bag alloc] init];\nbag.name = @\"Red bag\";\nbag.price = 200.8;\n\nNSString *file = [NSHomeDirectory() stringByAppendingPathComponent:@\"Desktop/bag.data\"];\n// Encoding\n[NSKeyedArchiver archiveRootObject:bag toFile:file];\n\n// Decoding\nBag *decodedBag = [NSKeyedUnarchiver unarchiveObjectWithFile:file];\nNSLog(@\"name=%@, price=%f\", decodedBag.name, decodedBag.price);\n// name=(null), price=200.800000\n```\n\n### <a id=\"Camel_underline\"></a> Camel -> underline【统一转换属性名（比如驼峰转下划线）】\n```objc\n// Dog\n#import \"MJExtension.h\"\n\n@implementation Dog\n+ (NSString *)mj_replacedKeyFromPropertyName121:(NSString *)propertyName\n{\n    // nickName -> nick_name\n    return [propertyName mj_underlineFromCamel];\n}\n@end\n\n// NSDictionary\nNSDictionary *dict = @{\n                       @\"nick_name\" : @\"旺财\",\n                       @\"sale_price\" : @\"10.5\",\n                       @\"run_speed\" : @\"100.9\"\n                       };\n// NSDictionary -> Dog\nDog *dog = [Dog mj_objectWithKeyValues:dict];\n\n// printing\nNSLog(@\"nickName=%@, scalePrice=%f runSpeed=%f\", dog.nickName, dog.salePrice, dog.runSpeed);\n```\n\n### <a id=\"NSString_NSDate\"></a> NSString -> NSDate, nil -> @\"\"【过滤字典的值（比如字符串日期处理为NSDate、字符串nil处理为@\"\"）】\n```objc\n// Book\n#import \"MJExtension.h\"\n\n@implementation Book\n- (id)mj_newValueFromOldValue:(id)oldValue property:(MJProperty *)property\n{\n    if ([property.name isEqualToString:@\"publisher\"]) {\n        if (oldValue == nil) return @\"\";\n    } else if (property.type.typeClass == [NSDate class]) {\n        NSDateFormatter *fmt = [[NSDateFormatter alloc] init];\n        fmt.dateFormat = @\"yyyy-MM-dd\";\n        return [fmt dateFromString:oldValue];\n    }\n\n    return oldValue;\n}\n@end\n\n// NSDictionary\nNSDictionary *dict = @{\n                       @\"name\" : @\"5分钟突破iOS开发\",\n                       @\"publishedTime\" : @\"2011-09-10\"\n                       };\n// NSDictionary -> Book\nBook *book = [Book mj_objectWithKeyValues:dict];\n\n// printing\nNSLog(@\"name=%@, publisher=%@, publishedTime=%@\", book.name, book.publisher, book.publishedTime);\n```\n\n### <a id=\"More_use_cases\"></a> More use cases【更多用法】\n- Please reference to `NSObject+MJKeyValue.h` and `NSObject+MJCoding.h`\n\n\n## 期待\n* 如果在使用过程中遇到BUG，希望你能Issues我，谢谢（或者尝试下载最新的框架代码看看BUG修复没有）\n* 如果在使用过程中发现功能不够用，希望你能Issues我，我非常想为这个框架增加更多好用的功能，谢谢\n* 如果你想为MJExtension输出代码，请拼命Pull Requests我\n"
  },
  {
    "path": "Pods/MJRefresh/LICENSE",
    "content": "Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshAutoFooter.h",
    "content": "//\n//  MJRefreshAutoFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshFooter.h\"\n\n@interface MJRefreshAutoFooter : MJRefreshFooter\n/** 是否自动刷新(默认为YES) */\n@property (assign, nonatomic, getter=isAutomaticallyRefresh) BOOL automaticallyRefresh;\n\n/** 当底部控件出现多少时就自动刷新(默认为1.0，也就是底部控件完全出现时，才会自动刷新) */\n@property (assign, nonatomic) CGFloat appearencePercentTriggerAutoRefresh MJRefreshDeprecated(\"请使用automaticallyChangeAlpha属性\");\n\n/** 当底部控件出现多少时就自动刷新(默认为1.0，也就是底部控件完全出现时，才会自动刷新) */\n@property (assign, nonatomic) CGFloat triggerAutomaticallyRefreshPercent;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshAutoFooter.m",
    "content": "//\n//  MJRefreshAutoFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshAutoFooter.h\"\n\n@interface MJRefreshAutoFooter()\n@end\n\n@implementation MJRefreshAutoFooter\n\n#pragma mark - 初始化\n- (void)willMoveToSuperview:(UIView *)newSuperview\n{\n    [super willMoveToSuperview:newSuperview];\n    \n    if (newSuperview) { // 新的父控件\n        if (self.hidden == NO) {\n            self.scrollView.mj_insetB += self.mj_h;\n        }\n        \n        // 设置位置\n        self.mj_y = _scrollView.mj_contentH;\n    } else { // 被移除了\n        if (self.hidden == NO) {\n            self.scrollView.mj_insetB -= self.mj_h;\n        }\n    }\n}\n\n#pragma mark - 过期方法\n- (void)setAppearencePercentTriggerAutoRefresh:(CGFloat)appearencePercentTriggerAutoRefresh\n{\n    self.triggerAutomaticallyRefreshPercent = appearencePercentTriggerAutoRefresh;\n}\n\n- (CGFloat)appearencePercentTriggerAutoRefresh\n{\n    return self.triggerAutomaticallyRefreshPercent;\n}\n\n#pragma mark - 实现父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    // 默认底部控件100%出现时才会自动刷新\n    self.triggerAutomaticallyRefreshPercent = 1.0;\n    \n    // 设置为默认状态\n    self.automaticallyRefresh = YES;\n}\n\n- (void)scrollViewContentSizeDidChange:(NSDictionary *)change\n{\n    [super scrollViewContentSizeDidChange:change];\n    \n    // 设置位置\n    self.mj_y = self.scrollView.mj_contentH;\n}\n\n- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change\n{\n    [super scrollViewContentOffsetDidChange:change];\n    \n    if (self.state != MJRefreshStateIdle || !self.automaticallyRefresh || self.mj_y == 0) return;\n    \n    if (_scrollView.mj_insetT + _scrollView.mj_contentH > _scrollView.mj_h) { // 内容超过一个屏幕\n        // 这里的_scrollView.mj_contentH替换掉self.mj_y更为合理\n        if (_scrollView.mj_offsetY >= _scrollView.mj_contentH - _scrollView.mj_h + self.mj_h * self.triggerAutomaticallyRefreshPercent + _scrollView.mj_insetB - self.mj_h) {\n            // 防止手松开时连续调用\n            CGPoint old = [change[@\"old\"] CGPointValue];\n            CGPoint new = [change[@\"new\"] CGPointValue];\n            if (new.y <= old.y) return;\n            \n            // 当底部刷新控件完全出现时，才刷新\n            [self beginRefreshing];\n        }\n    }\n}\n\n- (void)scrollViewPanStateDidChange:(NSDictionary *)change\n{\n    [super scrollViewPanStateDidChange:change];\n    \n    if (self.state != MJRefreshStateIdle) return;\n    \n    if (_scrollView.panGestureRecognizer.state == UIGestureRecognizerStateEnded) {// 手松开\n        if (_scrollView.mj_insetT + _scrollView.mj_contentH <= _scrollView.mj_h) {  // 不够一个屏幕\n            if (_scrollView.mj_offsetY >= - _scrollView.mj_insetT) { // 向上拽\n                [self beginRefreshing];\n            }\n        } else { // 超出一个屏幕\n            if (_scrollView.mj_offsetY >= _scrollView.mj_contentH + _scrollView.mj_insetB - _scrollView.mj_h) {\n                [self beginRefreshing];\n            }\n        }\n    }\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    if (state == MJRefreshStateRefreshing) {\n        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\n            [self executeRefreshingCallback];\n        });\n    }\n}\n\n- (void)setHidden:(BOOL)hidden\n{\n    BOOL lastHidden = self.isHidden;\n    \n    [super setHidden:hidden];\n    \n    if (!lastHidden && hidden) {\n        self.state = MJRefreshStateIdle;\n        \n        self.scrollView.mj_insetB -= self.mj_h;\n    } else if (lastHidden && !hidden) {\n        self.scrollView.mj_insetB += self.mj_h;\n        \n        // 设置位置\n        self.mj_y = _scrollView.mj_contentH;\n    }\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshBackFooter.h",
    "content": "//\n//  MJRefreshBackFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshFooter.h\"\n\n@interface MJRefreshBackFooter : MJRefreshFooter\n\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshBackFooter.m",
    "content": "//\n//  MJRefreshBackFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshBackFooter.h\"\n\n@interface MJRefreshBackFooter()\n@property (assign, nonatomic) NSInteger lastRefreshCount;\n@property (assign, nonatomic) CGFloat lastBottomDelta;\n@end\n\n@implementation MJRefreshBackFooter\n\n#pragma mark - 初始化\n- (void)willMoveToSuperview:(UIView *)newSuperview\n{\n    [super willMoveToSuperview:newSuperview];\n    \n    [self scrollViewContentSizeDidChange:nil];\n}\n\n#pragma mark - 实现父类的方法\n- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change\n{\n    [super scrollViewContentOffsetDidChange:change];\n    \n    // 如果正在刷新，直接返回\n    if (self.state == MJRefreshStateRefreshing) return;\n    \n    _scrollViewOriginalInset = self.scrollView.contentInset;\n    \n    // 当前的contentOffset\n    CGFloat currentOffsetY = self.scrollView.mj_offsetY;\n    // 尾部控件刚好出现的offsetY\n    CGFloat happenOffsetY = [self happenOffsetY];\n    // 如果是向下滚动到看不见尾部控件，直接返回\n    if (currentOffsetY <= happenOffsetY) return;\n    \n    CGFloat pullingPercent = (currentOffsetY - happenOffsetY) / self.mj_h;\n    \n    // 如果已全部加载，仅设置pullingPercent，然后返回\n    if (self.state == MJRefreshStateNoMoreData) {\n        self.pullingPercent = pullingPercent;\n        return;\n    }\n    \n    if (self.scrollView.isDragging) {\n        self.pullingPercent = pullingPercent;\n        // 普通 和 即将刷新 的临界点\n        CGFloat normal2pullingOffsetY = happenOffsetY + self.mj_h;\n        \n        if (self.state == MJRefreshStateIdle && currentOffsetY > normal2pullingOffsetY) {\n            // 转为即将刷新状态\n            self.state = MJRefreshStatePulling;\n        } else if (self.state == MJRefreshStatePulling && currentOffsetY <= normal2pullingOffsetY) {\n            // 转为普通状态\n            self.state = MJRefreshStateIdle;\n        }\n    } else if (self.state == MJRefreshStatePulling) {// 即将刷新 && 手松开\n        // 开始刷新\n        [self beginRefreshing];\n    } else if (pullingPercent < 1) {\n        self.pullingPercent = pullingPercent;\n    }\n}\n\n- (void)scrollViewContentSizeDidChange:(NSDictionary *)change\n{\n    [super scrollViewContentSizeDidChange:change];\n    \n    // 内容的高度\n    CGFloat contentHeight = self.scrollView.mj_contentH + self.ignoredScrollViewContentInsetBottom;\n    // 表格的高度\n    CGFloat scrollHeight = self.scrollView.mj_h - self.scrollViewOriginalInset.top - self.scrollViewOriginalInset.bottom + self.ignoredScrollViewContentInsetBottom;\n    // 设置位置和尺寸\n    self.mj_y = MAX(contentHeight, scrollHeight);\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 根据状态来设置属性\n    if (state == MJRefreshStateNoMoreData || state == MJRefreshStateIdle) {\n        // 刷新完毕\n        if (MJRefreshStateRefreshing == oldState) {\n            [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{\n                self.scrollView.mj_insetB -= self.lastBottomDelta;\n                \n                // 自动调整透明度\n                if (self.isAutomaticallyChangeAlpha) self.alpha = 0.0;\n            } completion:^(BOOL finished) {\n                self.pullingPercent = 0.0;\n            }];\n        }\n        \n        CGFloat deltaH = [self heightForContentBreakView];\n        // 刚刷新完毕\n        if (MJRefreshStateRefreshing == oldState && deltaH > 0 && self.scrollView.totalDataCount != self.lastRefreshCount) {\n            self.scrollView.mj_offsetY = self.scrollView.mj_offsetY;\n        }\n    } else if (state == MJRefreshStateRefreshing) {\n        // 记录刷新前的数量\n        self.lastRefreshCount = self.scrollView.totalDataCount;\n        \n        [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{\n            CGFloat bottom = self.mj_h + self.scrollViewOriginalInset.bottom;\n            CGFloat deltaH = [self heightForContentBreakView];\n            if (deltaH < 0) { // 如果内容高度小于view的高度\n                bottom -= deltaH;\n            }\n            self.lastBottomDelta = bottom - self.scrollView.mj_insetB;\n            self.scrollView.mj_insetB = bottom;\n            self.scrollView.mj_offsetY = [self happenOffsetY] + self.mj_h;\n        } completion:^(BOOL finished) {\n            [self executeRefreshingCallback];\n        }];\n    }\n}\n\n#pragma mark - 公共方法\n- (void)endRefreshing\n{\n    if ([self.scrollView isKindOfClass:[UICollectionView class]]) {\n        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\n            [super endRefreshing];\n        });\n    } else {\n        [super endRefreshing];\n    }\n}\n\n- (void)noticeNoMoreData\n{\n    if ([self.scrollView isKindOfClass:[UICollectionView class]]) {\n        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\n            [super noticeNoMoreData];\n        });\n    } else {\n        [super noticeNoMoreData];\n    }\n}\n\n#pragma mark - 私有方法\n#pragma mark 获得scrollView的内容 超出 view 的高度\n- (CGFloat)heightForContentBreakView\n{\n    CGFloat h = self.scrollView.frame.size.height - self.scrollViewOriginalInset.bottom - self.scrollViewOriginalInset.top;\n    return self.scrollView.contentSize.height - h;\n}\n\n#pragma mark 刚好看到上拉刷新控件时的contentOffset.y\n- (CGFloat)happenOffsetY\n{\n    CGFloat deltaH = [self heightForContentBreakView];\n    if (deltaH > 0) {\n        return deltaH - self.scrollViewOriginalInset.top;\n    } else {\n        return - self.scrollViewOriginalInset.top;\n    }\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshComponent.h",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  MJRefreshComponent.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/3/4.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//  刷新控件的基类\n\n#import <UIKit/UIKit.h>\n#import \"MJRefreshConst.h\"\n#import \"UIView+MJExtension.h\"\n#import \"UIScrollView+MJExtension.h\"\n#import \"UIScrollView+MJRefresh.h\"\n\n/** 刷新控件的状态 */\ntypedef enum {\n    /** 普通闲置状态 */\n    MJRefreshStateIdle = 1,\n    /** 松开就可以进行刷新的状态 */\n    MJRefreshStatePulling,\n    /** 正在刷新中的状态 */\n    MJRefreshStateRefreshing,\n    /** 即将刷新的状态 */\n    MJRefreshStateWillRefresh,\n    /** 所有数据加载完毕，没有更多的数据了 */\n    MJRefreshStateNoMoreData\n} MJRefreshState;\n\n/** 进入刷新状态的回调 */\ntypedef void (^MJRefreshComponentRefreshingBlock)();\n\n/** 刷新控件的基类 */\n@interface MJRefreshComponent : UIView\n{\n    /** 记录scrollView刚开始的inset */\n    UIEdgeInsets _scrollViewOriginalInset;\n    /** 父控件 */\n    __weak UIScrollView *_scrollView;\n}\n#pragma mark - 刷新回调\n/** 正在刷新的回调 */\n@property (copy, nonatomic) MJRefreshComponentRefreshingBlock refreshingBlock;\n/** 设置回调对象和回调方法 */\n- (void)setRefreshingTarget:(id)target refreshingAction:(SEL)action;\n/** 回调对象 */\n@property (weak, nonatomic) id refreshingTarget;\n/** 回调方法 */\n@property (assign, nonatomic) SEL refreshingAction;\n/** 触发回调（交给子类去调用） */\n- (void)executeRefreshingCallback;\n\n#pragma mark - 刷新状态控制\n/** 进入刷新状态 */\n- (void)beginRefreshing;\n/** 结束刷新状态 */\n- (void)endRefreshing;\n/** 是否正在刷新 */\n- (BOOL)isRefreshing;\n/** 刷新状态 一般交给子类内部实现 */\n@property (assign, nonatomic) MJRefreshState state;\n\n#pragma mark - 交给子类去访问\n/** 记录scrollView刚开始的inset */\n@property (assign, nonatomic, readonly) UIEdgeInsets scrollViewOriginalInset;\n/** 父控件 */\n@property (weak, nonatomic, readonly) UIScrollView *scrollView;\n\n#pragma mark - 交给子类们去实现\n/** 初始化 */\n- (void)prepare;\n/** 摆放子控件frame */\n- (void)placeSubviews;\n/** 当scrollView的contentOffset发生改变的时候调用 */\n- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change;\n/** 当scrollView的contentSize发生改变的时候调用 */\n- (void)scrollViewContentSizeDidChange:(NSDictionary *)change;\n/** 当scrollView的拖拽状态发生改变的时候调用 */\n- (void)scrollViewPanStateDidChange:(NSDictionary *)change;\n\n\n#pragma mark - 其他\n/** 拉拽的百分比(交给子类重写) */\n@property (assign, nonatomic) CGFloat pullingPercent;\n/** 根据拖拽比例自动切换透明度 */\n@property (assign, nonatomic, getter=isAutoChangeAlpha) BOOL autoChangeAlpha MJRefreshDeprecated(\"请使用automaticallyChangeAlpha属性\");\n/** 根据拖拽比例自动切换透明度 */\n@property (assign, nonatomic, getter=isAutomaticallyChangeAlpha) BOOL automaticallyChangeAlpha;\n@end\n\n@interface UILabel(MJRefresh)\n+ (instancetype)label;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshComponent.m",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  MJRefreshComponent.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/3/4.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshComponent.h\"\n#import \"MJRefreshConst.h\"\n#import \"UIView+MJExtension.h\"\n#import \"UIScrollView+MJRefresh.h\"\n\n@interface MJRefreshComponent()\n@property (strong, nonatomic) UIPanGestureRecognizer *pan;\n@end\n\n@implementation MJRefreshComponent\n#pragma mark - 初始化\n- (instancetype)initWithFrame:(CGRect)frame\n{\n    if (self = [super initWithFrame:frame]) {\n        // 准备工作\n        [self prepare];\n        \n        // 默认是普通状态\n        self.state = MJRefreshStateIdle;\n    }\n    return self;\n}\n\n- (void)prepare\n{\n    // 基本属性\n    self.autoresizingMask = UIViewAutoresizingFlexibleWidth;\n    self.backgroundColor = [UIColor clearColor];\n}\n\n- (void)layoutSubviews\n{\n    [super layoutSubviews];\n    \n    [self placeSubviews];\n}\n\n- (void)placeSubviews{}\n\n- (void)willMoveToSuperview:(UIView *)newSuperview\n{\n    [super willMoveToSuperview:newSuperview];\n    \n    // 如果不是UIScrollView，不做任何事情\n    if (newSuperview && ![newSuperview isKindOfClass:[UIScrollView class]]) return;\n    \n    // 旧的父控件移除监听\n    [self removeObservers];\n    \n    if (newSuperview) { // 新的父控件\n        // 设置宽度\n        self.mj_w = newSuperview.mj_w;\n        // 设置位置\n        self.mj_x = 0;\n        \n        // 记录UIScrollView\n        _scrollView = (UIScrollView *)newSuperview;\n        // 设置永远支持垂直弹簧效果\n        _scrollView.alwaysBounceVertical = YES;\n        // 记录UIScrollView最开始的contentInset\n        _scrollViewOriginalInset = _scrollView.contentInset;\n        \n        // 添加监听\n        [self addObservers];\n    }\n}\n\n- (void)drawRect:(CGRect)rect\n{\n    [super drawRect:rect];\n    \n    if (self.state == MJRefreshStateWillRefresh) {\n        // 预防view还没显示出来就调用了beginRefreshing\n        self.state = MJRefreshStateRefreshing;\n    }\n}\n\n#pragma mark - KVO监听\n- (void)addObservers\n{\n    NSKeyValueObservingOptions options = NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld;\n    [self.scrollView addObserver:self forKeyPath:MJRefreshKeyPathContentOffset options:options context:nil];\n    [self.scrollView addObserver:self forKeyPath:MJRefreshKeyPathContentSize options:options context:nil];\n    self.pan = self.scrollView.panGestureRecognizer;\n    [self.pan addObserver:self forKeyPath:MJRefreshKeyPathPanState options:options context:nil];\n}\n\n- (void)removeObservers\n{\n    [self.superview removeObserver:self forKeyPath:MJRefreshKeyPathContentOffset];\n    [self.superview removeObserver:self forKeyPath:MJRefreshKeyPathContentSize];;\n    [self.pan removeObserver:self forKeyPath:MJRefreshKeyPathPanState];\n    self.pan = nil;\n}\n\n- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context\n{\n    // 遇到这些情况就直接返回\n    if (!self.userInteractionEnabled) return;\n    \n    // 这个就算看不见也需要处理\n    if ([keyPath isEqualToString:MJRefreshKeyPathContentSize]) {\n        [self scrollViewContentSizeDidChange:change];\n    }\n    \n    // 看不见\n    if (self.hidden) return;\n    if ([keyPath isEqualToString:MJRefreshKeyPathContentOffset]) {\n        [self scrollViewContentOffsetDidChange:change];\n    } else if ([keyPath isEqualToString:MJRefreshKeyPathPanState]) {\n        [self scrollViewPanStateDidChange:change];\n    }\n}\n\n- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change{}\n- (void)scrollViewContentSizeDidChange:(NSDictionary *)change{}\n- (void)scrollViewPanStateDidChange:(NSDictionary *)change{}\n\n#pragma mark - 公共方法\n#pragma mark 设置回调对象和回调方法\n- (void)setRefreshingTarget:(id)target refreshingAction:(SEL)action\n{\n    self.refreshingTarget = target;\n    self.refreshingAction = action;\n}\n\n#pragma mark 进入刷新状态\n- (void)beginRefreshing\n{\n    [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{\n        self.alpha = 1.0;\n    }];\n    self.pullingPercent = 1.0;\n    // 只要正在刷新，就完全显示\n    if (self.window) {\n        self.state = MJRefreshStateRefreshing;\n    } else {\n        self.state = MJRefreshStateWillRefresh;\n        // 刷新(预防从另一个控制器回到这个控制器的情况，回来要重新刷新一下)\n        [self setNeedsDisplay];\n    }\n}\n\n#pragma mark 结束刷新状态\n- (void)endRefreshing\n{\n    self.state = MJRefreshStateIdle;\n}\n\n#pragma mark 是否正在刷新\n- (BOOL)isRefreshing\n{\n    return self.state == MJRefreshStateRefreshing || self.state == MJRefreshStateWillRefresh;\n}\n\n#pragma mark 自动切换透明度\n- (void)setAutoChangeAlpha:(BOOL)autoChangeAlpha\n{\n    self.automaticallyChangeAlpha = autoChangeAlpha;\n}\n\n- (BOOL)isAutoChangeAlpha\n{\n    return self.isAutomaticallyChangeAlpha;\n}\n\n- (void)setAutomaticallyChangeAlpha:(BOOL)automaticallyChangeAlpha\n{\n    _automaticallyChangeAlpha = automaticallyChangeAlpha;\n    \n    if (self.isRefreshing) return;\n    \n    if (automaticallyChangeAlpha) {\n        self.alpha = self.pullingPercent;\n    } else {\n        self.alpha = 1.0;\n    }\n}\n\n#pragma mark 根据拖拽进度设置透明度\n- (void)setPullingPercent:(CGFloat)pullingPercent\n{\n    _pullingPercent = pullingPercent;\n    \n    if (self.isRefreshing) return;\n    \n    if (self.isAutomaticallyChangeAlpha) {\n        self.alpha = pullingPercent;\n    }\n}\n\n#pragma mark - 内部方法\n- (void)executeRefreshingCallback\n{\n    dispatch_async(dispatch_get_main_queue(), ^{\n        if (self.refreshingBlock) {\n            self.refreshingBlock();\n        }\n        if ([self.refreshingTarget respondsToSelector:self.refreshingAction]) {\n            MJRefreshMsgSend(MJRefreshMsgTarget(self.refreshingTarget), self.refreshingAction, self);\n        }\n    });\n}\n@end\n\n@implementation UILabel(MJRefresh)\n+ (instancetype)label\n{\n    UILabel *label = [[self alloc] init];\n    label.font = MJRefreshLabelFont;\n    label.textColor = MJRefreshLabelTextColor;\n    label.autoresizingMask = UIViewAutoresizingFlexibleWidth;\n    label.textAlignment = NSTextAlignmentCenter;\n    label.backgroundColor = [UIColor clearColor];\n    return label;\n}\n@end"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshFooter.h",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  MJRefreshFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/3/5.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//  上拉刷新控件\n\n#import \"MJRefreshComponent.h\"\n\n@interface MJRefreshFooter : MJRefreshComponent\n/** 创建footer */\n+ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock;\n/** 创建footer */\n+ (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;\n\n/** 提示没有更多的数据 */\n- (void)endRefreshingWithNoMoreData;\n- (void)noticeNoMoreData MJRefreshDeprecated(\"使用endRefreshingWithNoMoreData\");\n\n/** 重置没有更多的数据（消除没有更多数据的状态） */\n- (void)resetNoMoreData;\n\n/** 忽略多少scrollView的contentInset的bottom */\n@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom;\n\n/** 自动根据有无数据来显示和隐藏（有数据就显示，没有数据隐藏） */\n@property (assign, nonatomic, getter=isAutomaticallyHidden) BOOL automaticallyHidden;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshFooter.m",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  MJRefreshFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/3/5.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshFooter.h\"\n\n@interface MJRefreshFooter()\n\n@end\n\n@implementation MJRefreshFooter\n#pragma mark - 构造方法\n+ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock\n{\n    MJRefreshFooter *cmp = [[self alloc] init];\n    cmp.refreshingBlock = refreshingBlock;\n    return cmp;\n}\n+ (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action\n{\n    MJRefreshFooter *cmp = [[self alloc] init];\n    [cmp setRefreshingTarget:target refreshingAction:action];\n    return cmp;\n}\n\n#pragma mark - 重写父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    // 设置自己的高度\n    self.mj_h = MJRefreshFooterHeight;\n    \n    // 默认是自动隐藏\n    self.automaticallyHidden = YES;\n}\n\n- (void)willMoveToSuperview:(UIView *)newSuperview\n{\n    [super willMoveToSuperview:newSuperview];\n    \n    if (newSuperview) {\n        // 监听scrollView数据的变化\n        [self.scrollView setReloadDataBlock:^(NSInteger totalDataCount) {\n            if (self.isAutomaticallyHidden) {\n                self.hidden = (totalDataCount == 0);\n            }\n        }];\n    }\n}\n\n#pragma mark - 公共方法\n- (void)endRefreshingWithNoMoreData\n{\n    self.state = MJRefreshStateNoMoreData;\n}\n\n- (void)noticeNoMoreData\n{\n    [self endRefreshingWithNoMoreData];\n}\n\n- (void)resetNoMoreData\n{\n    self.state = MJRefreshStateIdle;\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshHeader.h",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  MJRefreshHeader.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/3/4.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//  下拉刷新控件:负责监控用户下拉的状态\n\n#import \"MJRefreshComponent.h\"\n\n@interface MJRefreshHeader : MJRefreshComponent\n/** 创建header */\n+ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock;\n/** 创建header */\n+ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;\n\n/** 这个key用来存储上一次下拉刷新成功的时间 */\n@property (copy, nonatomic) NSString *lastUpdatedTimeKey;\n/** 上一次下拉刷新成功的时间 */\n@property (strong, nonatomic, readonly) NSDate *lastUpdatedTime;\n\n/** 忽略多少scrollView的contentInset的top */\n@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetTop;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Base/MJRefreshHeader.m",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  MJRefreshHeader.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/3/4.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshHeader.h\"\n\n@interface MJRefreshHeader()\n\n@end\n\n@implementation MJRefreshHeader\n#pragma mark - 构造方法\n+ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock\n{\n    MJRefreshHeader *cmp = [[self alloc] init];\n    cmp.refreshingBlock = refreshingBlock;\n    return cmp;\n}\n+ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action\n{\n    MJRefreshHeader *cmp = [[self alloc] init];\n    [cmp setRefreshingTarget:target refreshingAction:action];\n    return cmp;\n}\n\n#pragma mark - 覆盖父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    // 设置key\n    self.lastUpdatedTimeKey = MJRefreshHeaderLastUpdatedTimeKey;\n    \n    // 设置高度\n    self.mj_h = MJRefreshHeaderHeight;\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    // 设置y值(当自己的高度发生改变了，肯定要重新调整Y值，所以放到placeSubviews方法中设置y值)\n    self.mj_y = - self.mj_h - self.ignoredScrollViewContentInsetTop;\n}\n\n- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change\n{\n    [super scrollViewContentOffsetDidChange:change];\n    \n    // 在刷新的refreshing状态\n    if (self.state == MJRefreshStateRefreshing) {\n        // sectionheader停留解决\n        return;\n    }\n    \n    // 跳转到下一个控制器时，contentInset可能会变\n    _scrollViewOriginalInset = self.scrollView.contentInset;\n    \n    // 当前的contentOffset\n    CGFloat offsetY = self.scrollView.mj_offsetY;\n    // 头部控件刚好出现的offsetY\n    CGFloat happenOffsetY = - self.scrollViewOriginalInset.top;\n    \n    // 如果是向上滚动到看不见头部控件，直接返回\n    // >= -> >\n    if (offsetY > happenOffsetY) return;\n    \n    // 普通 和 即将刷新 的临界点\n    CGFloat normal2pullingOffsetY = happenOffsetY - self.mj_h;\n    CGFloat pullingPercent = (happenOffsetY - offsetY) / self.mj_h;\n    \n    if (self.scrollView.isDragging) { // 如果正在拖拽\n        self.pullingPercent = pullingPercent;\n        if (self.state == MJRefreshStateIdle && offsetY < normal2pullingOffsetY) {\n            // 转为即将刷新状态\n            self.state = MJRefreshStatePulling;\n        } else if (self.state == MJRefreshStatePulling && offsetY >= normal2pullingOffsetY) {\n            // 转为普通状态\n            self.state = MJRefreshStateIdle;\n        }\n    } else if (self.state == MJRefreshStatePulling) {// 即将刷新 && 手松开\n        // 开始刷新\n        [self beginRefreshing];\n    } else if (pullingPercent < 1) {\n        self.pullingPercent = pullingPercent;\n    }\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 根据状态做事情\n    if (state == MJRefreshStateIdle) {\n        if (oldState != MJRefreshStateRefreshing) return;\n        \n        // 保存刷新时间\n        [[NSUserDefaults standardUserDefaults] setObject:[NSDate date] forKey:self.lastUpdatedTimeKey];\n        [[NSUserDefaults standardUserDefaults] synchronize];\n        \n        // 恢复inset和offset\n        [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{\n            self.scrollView.mj_insetT -= self.mj_h;\n            \n            // 自动调整透明度\n            if (self.isAutomaticallyChangeAlpha) self.alpha = 0.0;\n        } completion:^(BOOL finished) {\n            self.pullingPercent = 0.0;\n        }];\n    } else if (state == MJRefreshStateRefreshing) {\n        [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{\n            // 增加滚动区域\n            CGFloat top = self.scrollViewOriginalInset.top + self.mj_h;\n            self.scrollView.mj_insetT = top;\n            \n            // 设置滚动位置\n            self.scrollView.mj_offsetY = - top;\n        } completion:^(BOOL finished) {\n            [self executeRefreshingCallback];\n        }];\n    }\n}\n\n#pragma mark - 公共方法\n- (void)endRefreshing\n{\n    if ([self.scrollView isKindOfClass:[UICollectionView class]]) {\n        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\n            [super endRefreshing];\n        });\n    } else {\n        [super endRefreshing];\n    }\n}\n\n- (NSDate *)lastUpdatedTime\n{\n    return [[NSUserDefaults standardUserDefaults] objectForKey:self.lastUpdatedTimeKey];\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h",
    "content": "//\n//  MJRefreshAutoGifFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshAutoStateFooter.h\"\n\n@interface MJRefreshAutoGifFooter : MJRefreshAutoStateFooter\n/** 设置state状态下的动画图片images 动画持续时间duration*/\n- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state;\n- (void)setImages:(NSArray *)images forState:(MJRefreshState)state;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.m",
    "content": "//\n//  MJRefreshAutoGifFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshAutoGifFooter.h\"\n\n@interface MJRefreshAutoGifFooter()\n@property (weak, nonatomic) UIImageView *gifView;\n/** 所有状态对应的动画图片 */\n@property (strong, nonatomic) NSMutableDictionary *stateImages;\n/** 所有状态对应的动画时间 */\n@property (strong, nonatomic) NSMutableDictionary *stateDurations;\n@end\n\n@implementation MJRefreshAutoGifFooter\n#pragma mark - 懒加载\n- (UIImageView *)gifView\n{\n    if (!_gifView) {\n        UIImageView *gifView = [[UIImageView alloc] init];\n        [self addSubview:_gifView = gifView];\n    }\n    return _gifView;\n}\n\n- (NSMutableDictionary *)stateImages\n{\n    if (!_stateImages) {\n        self.stateImages = [NSMutableDictionary dictionary];\n    }\n    return _stateImages;\n}\n\n- (NSMutableDictionary *)stateDurations\n{\n    if (!_stateDurations) {\n        self.stateDurations = [NSMutableDictionary dictionary];\n    }\n    return _stateDurations;\n}\n\n#pragma mark - 公共方法\n- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state\n{\n    if (images == nil) return;\n    \n    self.stateImages[@(state)] = images;\n    self.stateDurations[@(state)] = @(duration);\n    \n    /* 根据图片设置控件的高度 */\n    UIImage *image = [images firstObject];\n    if (image.size.height > self.mj_h) {\n        self.mj_h = image.size.height;\n    }\n}\n\n- (void)setImages:(NSArray *)images forState:(MJRefreshState)state\n{\n    [self setImages:images duration:images.count * 0.1 forState:state];\n}\n\n#pragma mark - 实现父类的方法\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    self.gifView.frame = self.bounds;\n    if (self.isRefreshingTitleHidden) {\n        self.gifView.contentMode = UIViewContentModeCenter;\n    } else {\n        self.gifView.contentMode = UIViewContentModeRight;\n        self.gifView.mj_w = self.mj_w * 0.5 - 90;\n    }\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 根据状态做事情\n    if (state == MJRefreshStateRefreshing) {\n        NSArray *images = self.stateImages[@(state)];\n        if (images.count == 0) return;\n        [self.gifView stopAnimating];\n        \n        self.gifView.hidden = NO;\n        if (images.count == 1) { // 单张图片\n            self.gifView.image = [images lastObject];\n        } else { // 多张图片\n            self.gifView.animationImages = images;\n            self.gifView.animationDuration = [self.stateDurations[@(state)] doubleValue];\n            [self.gifView startAnimating];\n        }\n    } else if (state == MJRefreshStateNoMoreData || state == MJRefreshStateIdle) {\n        [self.gifView stopAnimating];\n        self.gifView.hidden = YES;\n    }\n}\n@end\n\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h",
    "content": "//\n//  MJRefreshAutoNormalFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshAutoStateFooter.h\"\n\n@interface MJRefreshAutoNormalFooter : MJRefreshAutoStateFooter\n/** 菊花的样式 */\n@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.m",
    "content": "//\n//  MJRefreshAutoNormalFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshAutoNormalFooter.h\"\n\n@interface MJRefreshAutoNormalFooter()\n@property (weak, nonatomic) UIActivityIndicatorView *loadingView;\n@end\n\n@implementation MJRefreshAutoNormalFooter\n#pragma mark - 懒加载子控件\n- (UIActivityIndicatorView *)loadingView\n{\n    if (!_loadingView) {\n        UIActivityIndicatorView *loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:self.activityIndicatorViewStyle];\n        loadingView.hidesWhenStopped = YES;\n        [self addSubview:_loadingView = loadingView];\n    }\n    return _loadingView;\n}\n\n- (void)setActivityIndicatorViewStyle:(UIActivityIndicatorViewStyle)activityIndicatorViewStyle\n{\n    _activityIndicatorViewStyle = activityIndicatorViewStyle;\n    \n    self.loadingView = nil;\n    [self setNeedsLayout];\n}\n#pragma makr - 重写父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    self.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    // 圈圈\n    CGFloat arrowCenterX = self.mj_w * 0.5;\n    if (!self.isRefreshingTitleHidden) {\n        arrowCenterX -= 100;\n    }\n    CGFloat arrowCenterY = self.mj_h * 0.5;\n    self.loadingView.center = CGPointMake(arrowCenterX, arrowCenterY);\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 根据状态做事情\n    if (state == MJRefreshStateNoMoreData || state == MJRefreshStateIdle) {\n        [self.loadingView stopAnimating];\n    } else if (state == MJRefreshStateRefreshing) {\n        [self.loadingView startAnimating];\n    }\n}\n\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h",
    "content": "//\n//  MJRefreshAutoStateFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/6/13.\n//  Copyright © 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshAutoFooter.h\"\n\n@interface MJRefreshAutoStateFooter : MJRefreshAutoFooter\n/** 显示刷新状态的label */\n@property (weak, nonatomic, readonly) UILabel *stateLabel;\n\n/** 设置state状态下的文字 */\n- (void)setTitle:(NSString *)title forState:(MJRefreshState)state;\n\n/** 隐藏刷新状态的文字 */\n@property (assign, nonatomic, getter=isRefreshingTitleHidden) BOOL refreshingTitleHidden;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.m",
    "content": "//\n//  MJRefreshAutoStateFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/6/13.\n//  Copyright © 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshAutoStateFooter.h\"\n\n@interface MJRefreshAutoStateFooter()\n{\n    /** 显示刷新状态的label */\n    __weak UILabel *_stateLabel;\n}\n/** 所有状态对应的文字 */\n@property (strong, nonatomic) NSMutableDictionary *stateTitles;\n@end\n\n@implementation MJRefreshAutoStateFooter\n#pragma mark - 懒加载\n- (NSMutableDictionary *)stateTitles\n{\n    if (!_stateTitles) {\n        self.stateTitles = [NSMutableDictionary dictionary];\n    }\n    return _stateTitles;\n}\n\n- (UILabel *)stateLabel\n{\n    if (!_stateLabel) {\n        [self addSubview:_stateLabel = [UILabel label]];\n    }\n    return _stateLabel;\n}\n\n#pragma mark - 公共方法\n- (void)setTitle:(NSString *)title forState:(MJRefreshState)state\n{\n    if (title == nil) return;\n    self.stateTitles[@(state)] = title;\n    self.stateLabel.text = self.stateTitles[@(self.state)];\n}\n\n#pragma mark - 私有方法\n- (void)stateLabelClick\n{\n    if (self.state == MJRefreshStateIdle) {\n        [self beginRefreshing];\n    }\n}\n\n#pragma mark - 重写父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    // 初始化文字\n    [self setTitle:MJRefreshAutoFooterIdleText forState:MJRefreshStateIdle];\n    [self setTitle:MJRefreshAutoFooterRefreshingText forState:MJRefreshStateRefreshing];\n    [self setTitle:MJRefreshAutoFooterNoMoreDataText forState:MJRefreshStateNoMoreData];\n    \n    // 监听label\n    self.stateLabel.userInteractionEnabled = YES;\n    [self.stateLabel addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(stateLabelClick)]];\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    // 状态标签\n    self.stateLabel.frame = self.bounds;\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    if (self.isRefreshingTitleHidden && state == MJRefreshStateRefreshing) {\n        self.stateLabel.text = nil;\n    } else {\n        self.stateLabel.text = self.stateTitles[@(state)];\n    }\n}\n@end"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h",
    "content": "//\n//  MJRefreshBackGifFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshBackStateFooter.h\"\n\n@interface MJRefreshBackGifFooter : MJRefreshBackStateFooter\n/** 设置state状态下的动画图片images 动画持续时间duration*/\n- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state;\n- (void)setImages:(NSArray *)images forState:(MJRefreshState)state;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.m",
    "content": "//\n//  MJRefreshBackGifFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshBackGifFooter.h\"\n\n@interface MJRefreshBackGifFooter()\n@property (weak, nonatomic) UIImageView *gifView;\n/** 所有状态对应的动画图片 */\n@property (strong, nonatomic) NSMutableDictionary *stateImages;\n/** 所有状态对应的动画时间 */\n@property (strong, nonatomic) NSMutableDictionary *stateDurations;\n@end\n\n@implementation MJRefreshBackGifFooter\n#pragma mark - 懒加载\n- (UIImageView *)gifView\n{\n    if (!_gifView) {\n        UIImageView *gifView = [[UIImageView alloc] init];\n        [self addSubview:_gifView = gifView];\n    }\n    return _gifView;\n}\n\n- (NSMutableDictionary *)stateImages\n{\n    if (!_stateImages) {\n        self.stateImages = [NSMutableDictionary dictionary];\n    }\n    return _stateImages;\n}\n\n- (NSMutableDictionary *)stateDurations\n{\n    if (!_stateDurations) {\n        self.stateDurations = [NSMutableDictionary dictionary];\n    }\n    return _stateDurations;\n}\n\n#pragma mark - 公共方法\n- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state\n{\n    if (images == nil) return;\n    \n    self.stateImages[@(state)] = images;\n    self.stateDurations[@(state)] = @(duration);\n    \n    /* 根据图片设置控件的高度 */\n    UIImage *image = [images firstObject];\n    if (image.size.height > self.mj_h) {\n        self.mj_h = image.size.height;\n    }\n}\n\n- (void)setImages:(NSArray *)images forState:(MJRefreshState)state\n{\n    [self setImages:images duration:images.count * 0.1 forState:state];\n}\n\n#pragma mark - 实现父类的方法\n- (void)setPullingPercent:(CGFloat)pullingPercent\n{\n    [super setPullingPercent:pullingPercent];\n    NSArray *images = self.stateImages[@(MJRefreshStateIdle)];\n    if (self.state != MJRefreshStateIdle || images.count == 0) return;\n    [self.gifView stopAnimating];\n    NSUInteger index =  images.count * pullingPercent;\n    if (index >= images.count) index = images.count - 1;\n    self.gifView.image = images[index];\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    self.gifView.frame = self.bounds;\n    if (self.stateLabel.hidden) {\n        self.gifView.contentMode = UIViewContentModeCenter;\n    } else {\n        self.gifView.contentMode = UIViewContentModeRight;\n        self.gifView.mj_w = self.mj_w * 0.5 - 90;\n    }\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 根据状态做事情\n    if (state == MJRefreshStatePulling || state == MJRefreshStateRefreshing) {\n        NSArray *images = self.stateImages[@(state)];\n        if (images.count == 0) return;\n        \n        self.gifView.hidden = NO;\n        [self.gifView stopAnimating];\n        if (images.count == 1) { // 单张图片\n            self.gifView.image = [images lastObject];\n        } else { // 多张图片\n            self.gifView.animationImages = images;\n            self.gifView.animationDuration = [self.stateDurations[@(state)] doubleValue];\n            [self.gifView startAnimating];\n        }\n    } else if (state == MJRefreshStateIdle) {\n        self.gifView.hidden = NO;\n    } else if (state == MJRefreshStateNoMoreData) {\n        self.gifView.hidden = YES;\n    }\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h",
    "content": "//\n//  MJRefreshBackNormalFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshBackStateFooter.h\"\n\n@interface MJRefreshBackNormalFooter : MJRefreshBackStateFooter\n@property (weak, nonatomic, readonly) UIImageView *arrowView;\n/** 菊花的样式 */\n@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.m",
    "content": "//\n//  MJRefreshBackNormalFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshBackNormalFooter.h\"\n\n@interface MJRefreshBackNormalFooter()\n{\n    __weak UIImageView *_arrowView;\n}\n@property (weak, nonatomic) UIActivityIndicatorView *loadingView;\n@end\n\n@implementation MJRefreshBackNormalFooter\n#pragma mark - 懒加载子控件\n- (UIImageView *)arrowView\n{\n    if (!_arrowView) {\n        UIImageView *arrowView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:MJRefreshSrcName(@\"arrow.png\")]];\n        [self addSubview:_arrowView = arrowView];\n    }\n    return _arrowView;\n}\n\n- (UIActivityIndicatorView *)loadingView\n{\n    if (!_loadingView) {\n        UIActivityIndicatorView *loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:self.activityIndicatorViewStyle];\n        loadingView.hidesWhenStopped = YES;\n        [self addSubview:_loadingView = loadingView];\n    }\n    return _loadingView;\n}\n\n- (void)setActivityIndicatorViewStyle:(UIActivityIndicatorViewStyle)activityIndicatorViewStyle\n{\n    _activityIndicatorViewStyle = activityIndicatorViewStyle;\n    \n    self.loadingView = nil;\n    [self setNeedsLayout];\n}\n#pragma makr - 重写父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    self.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    // 箭头\n    self.arrowView.mj_size = self.arrowView.image.size;\n    CGFloat arrowCenterX = self.mj_w * 0.5;\n    if (!self.stateLabel.hidden) {\n        arrowCenterX -= 100;\n    }\n    CGFloat arrowCenterY = self.mj_h * 0.5;\n    self.arrowView.center = CGPointMake(arrowCenterX, arrowCenterY);\n    \n    // 圈圈\n    self.loadingView.frame = self.arrowView.frame;\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 根据状态做事情\n    if (state == MJRefreshStateIdle) {\n        if (oldState == MJRefreshStateRefreshing) {\n            self.arrowView.transform = CGAffineTransformMakeRotation(0.000001 - M_PI);\n            [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{\n                self.loadingView.alpha = 0.0;\n            } completion:^(BOOL finished) {\n                self.loadingView.alpha = 1.0;\n                [self.loadingView stopAnimating];\n                \n                self.arrowView.hidden = NO;\n            }];\n        } else {\n            self.arrowView.hidden = NO;\n            [self.loadingView stopAnimating];\n            [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{\n                self.arrowView.transform = CGAffineTransformMakeRotation(0.000001 - M_PI);\n            }];\n        }\n    } else if (state == MJRefreshStatePulling) {\n        self.arrowView.hidden = NO;\n        [self.loadingView stopAnimating];\n        [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{\n            self.arrowView.transform = CGAffineTransformIdentity;\n        }];\n    } else if (state == MJRefreshStateRefreshing) {\n        self.arrowView.hidden = YES;\n        [self.loadingView startAnimating];\n    } else if (state == MJRefreshStateNoMoreData) {\n        self.arrowView.hidden = YES;\n        [self.loadingView stopAnimating];\n    }\n}\n\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h",
    "content": "//\n//  MJRefreshBackStateFooter.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/6/13.\n//  Copyright © 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshBackFooter.h\"\n\n@interface MJRefreshBackStateFooter : MJRefreshBackFooter\n/** 显示刷新状态的label */\n@property (weak, nonatomic, readonly) UILabel *stateLabel;\n/** 设置state状态下的文字 */\n- (void)setTitle:(NSString *)title forState:(MJRefreshState)state;\n\n/** 获取state状态下的title */\n- (NSString *)titleForState:(MJRefreshState)state;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.m",
    "content": "//\n//  MJRefreshBackStateFooter.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/6/13.\n//  Copyright © 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshBackStateFooter.h\"\n\n@interface MJRefreshBackStateFooter()\n{\n    /** 显示刷新状态的label */\n    __weak UILabel *_stateLabel;\n}\n/** 所有状态对应的文字 */\n@property (strong, nonatomic) NSMutableDictionary *stateTitles;\n@end\n\n@implementation MJRefreshBackStateFooter\n#pragma mark - 懒加载\n- (NSMutableDictionary *)stateTitles\n{\n    if (!_stateTitles) {\n        self.stateTitles = [NSMutableDictionary dictionary];\n    }\n    return _stateTitles;\n}\n\n- (UILabel *)stateLabel\n{\n    if (!_stateLabel) {\n        [self addSubview:_stateLabel = [UILabel label]];\n    }\n    return _stateLabel;\n}\n\n#pragma mark - 公共方法\n- (void)setTitle:(NSString *)title forState:(MJRefreshState)state\n{\n    if (title == nil) return;\n    self.stateTitles[@(state)] = title;\n    self.stateLabel.text = self.stateTitles[@(self.state)];\n}\n\n- (NSString *)titleForState:(MJRefreshState)state {\n  return self.stateTitles[@(state)];\n}\n\n#pragma mark - 重写父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    // 初始化文字\n    [self setTitle:MJRefreshBackFooterIdleText forState:MJRefreshStateIdle];\n    [self setTitle:MJRefreshBackFooterPullingText forState:MJRefreshStatePulling];\n    [self setTitle:MJRefreshBackFooterRefreshingText forState:MJRefreshStateRefreshing];\n    [self setTitle:MJRefreshBackFooterNoMoreDataText forState:MJRefreshStateNoMoreData];\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    // 状态标签\n    self.stateLabel.frame = self.bounds;\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 设置状态文字\n    self.stateLabel.text = self.stateTitles[@(state)];\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshGifHeader.h",
    "content": "//\n//  MJRefreshGifHeader.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshStateHeader.h\"\n\n@interface MJRefreshGifHeader : MJRefreshStateHeader\n/** 设置state状态下的动画图片images 动画持续时间duration*/\n- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state;\n- (void)setImages:(NSArray *)images forState:(MJRefreshState)state;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshGifHeader.m",
    "content": "//\n//  MJRefreshGifHeader.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshGifHeader.h\"\n\n@interface MJRefreshGifHeader()\n@property (weak, nonatomic) UIImageView *gifView;\n/** 所有状态对应的动画图片 */\n@property (strong, nonatomic) NSMutableDictionary *stateImages;\n/** 所有状态对应的动画时间 */\n@property (strong, nonatomic) NSMutableDictionary *stateDurations;\n@end\n\n@implementation MJRefreshGifHeader\n#pragma mark - 懒加载\n- (UIImageView *)gifView\n{\n    if (!_gifView) { \n        UIImageView *gifView = [[UIImageView alloc] init]; \n        [self addSubview:_gifView = gifView]; \n    } \n    return _gifView; \n}\n\n- (NSMutableDictionary *)stateImages \n{ \n    if (!_stateImages) { \n        self.stateImages = [NSMutableDictionary dictionary]; \n    } \n    return _stateImages; \n}\n\n- (NSMutableDictionary *)stateDurations \n{ \n    if (!_stateDurations) { \n        self.stateDurations = [NSMutableDictionary dictionary]; \n    } \n    return _stateDurations; \n}\n\n#pragma mark - 公共方法\n- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state \n{ \n    if (images == nil) return; \n    \n    self.stateImages[@(state)] = images; \n    self.stateDurations[@(state)] = @(duration); \n    \n    /* 根据图片设置控件的高度 */ \n    UIImage *image = [images firstObject]; \n    if (image.size.height > self.mj_h) { \n        self.mj_h = image.size.height; \n    } \n}\n\n- (void)setImages:(NSArray *)images forState:(MJRefreshState)state \n{ \n    [self setImages:images duration:images.count * 0.1 forState:state]; \n}\n\n#pragma mark - 实现父类的方法\n- (void)setPullingPercent:(CGFloat)pullingPercent\n{\n    [super setPullingPercent:pullingPercent];\n    NSArray *images = self.stateImages[@(MJRefreshStateIdle)];\n    if (self.state != MJRefreshStateIdle || images.count == 0) return;\n    // 停止动画\n    [self.gifView stopAnimating];\n    // 设置当前需要显示的图片\n    NSUInteger index =  images.count * pullingPercent;\n    if (index >= images.count) index = images.count - 1;\n    self.gifView.image = images[index];\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    self.gifView.frame = self.bounds;\n    if (self.stateLabel.hidden && self.lastUpdatedTimeLabel.hidden) {\n        self.gifView.contentMode = UIViewContentModeCenter;\n    } else {\n        self.gifView.contentMode = UIViewContentModeRight;\n        self.gifView.mj_w = self.mj_w * 0.5 - 90;\n    }\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 根据状态做事情\n    if (state == MJRefreshStatePulling || state == MJRefreshStateRefreshing) {\n        NSArray *images = self.stateImages[@(state)];\n        if (images.count == 0) return;\n        \n        [self.gifView stopAnimating];\n        if (images.count == 1) { // 单张图片\n            self.gifView.image = [images lastObject];\n        } else { // 多张图片\n            self.gifView.animationImages = images;\n            self.gifView.animationDuration = [self.stateDurations[@(state)] doubleValue];\n            [self.gifView startAnimating];\n        }\n    }\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshNormalHeader.h",
    "content": "//\n//  MJRefreshNormalHeader.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshStateHeader.h\"\n\n@interface MJRefreshNormalHeader : MJRefreshStateHeader\n@property (weak, nonatomic, readonly) UIImageView *arrowView;\n/** 菊花的样式 */\n@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshNormalHeader.m",
    "content": "//\n//  MJRefreshNormalHeader.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshNormalHeader.h\"\n\n@interface MJRefreshNormalHeader()\n{\n    __weak UIImageView *_arrowView;\n}\n@property (weak, nonatomic) UIActivityIndicatorView *loadingView;\n@end\n\n@implementation MJRefreshNormalHeader\n#pragma mark - 懒加载子控件\n- (UIImageView *)arrowView\n{\n    if (!_arrowView) {\n        UIImage *image = [UIImage imageNamed:MJRefreshSrcName(@\"arrow.png\")];\n        if (!image) {\n            image = [UIImage imageNamed:MJRefreshFrameworkSrcName(@\"arrow.png\")];\n        }\n        UIImageView *arrowView = [[UIImageView alloc] initWithImage:image];\n        [self addSubview:_arrowView = arrowView];\n    }\n    return _arrowView;\n}\n\n- (UIActivityIndicatorView *)loadingView\n{\n    if (!_loadingView) {\n        UIActivityIndicatorView *loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:self.activityIndicatorViewStyle];\n        loadingView.hidesWhenStopped = YES;\n        [self addSubview:_loadingView = loadingView];\n    }\n    return _loadingView;\n}\n\n#pragma mark - 公共方法\n- (void)setActivityIndicatorViewStyle:(UIActivityIndicatorViewStyle)activityIndicatorViewStyle\n{\n    _activityIndicatorViewStyle = activityIndicatorViewStyle;\n    \n    self.loadingView = nil;\n    [self setNeedsLayout];\n}\n\n#pragma makr - 重写父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    self.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    // 箭头\n    self.arrowView.mj_size = self.arrowView.image.size;\n    CGFloat arrowCenterX = self.mj_w * 0.5;\n    if (!self.stateLabel.hidden) {\n        arrowCenterX -= 100;\n    }\n    CGFloat arrowCenterY = self.mj_h * 0.5;\n    self.arrowView.center = CGPointMake(arrowCenterX, arrowCenterY);\n    \n    // 圈圈\n    self.loadingView.frame = self.arrowView.frame;\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 根据状态做事情\n    if (state == MJRefreshStateIdle) {\n        if (oldState == MJRefreshStateRefreshing) {\n            self.arrowView.transform = CGAffineTransformIdentity;\n            \n            [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{\n                self.loadingView.alpha = 0.0;\n            } completion:^(BOOL finished) {\n                // 如果执行完动画发现不是idle状态，就直接返回，进入其他状态\n                if (self.state != MJRefreshStateIdle) return;\n                \n                self.loadingView.alpha = 1.0;\n                [self.loadingView stopAnimating];\n                self.arrowView.hidden = NO;\n            }];\n        } else {\n            [self.loadingView stopAnimating];\n            self.arrowView.hidden = NO;\n            [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{\n                self.arrowView.transform = CGAffineTransformIdentity;\n            }];\n        }\n    } else if (state == MJRefreshStatePulling) {\n        [self.loadingView stopAnimating];\n        self.arrowView.hidden = NO;\n        [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{\n            self.arrowView.transform = CGAffineTransformMakeRotation(0.000001 - M_PI);\n        }];\n    } else if (state == MJRefreshStateRefreshing) {\n        self.loadingView.alpha = 1.0; // 防止refreshing -> idle的动画完毕动作没有被执行\n        [self.loadingView startAnimating];\n        self.arrowView.hidden = YES;\n    }\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshStateHeader.h",
    "content": "//\n//  MJRefreshStateHeader.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshHeader.h\"\n\n@interface MJRefreshStateHeader : MJRefreshHeader\n#pragma mark - 刷新时间相关\n/** 利用这个block来决定显示的更新时间文字 */\n@property (copy, nonatomic) NSString *(^lastUpdatedTimeText)(NSDate *lastUpdatedTime);\n/** 显示上一次刷新时间的label */\n@property (weak, nonatomic, readonly) UILabel *lastUpdatedTimeLabel;\n\n#pragma mark - 状态相关\n/** 显示刷新状态的label */\n@property (weak, nonatomic, readonly) UILabel *stateLabel;\n/** 设置state状态下的文字 */\n- (void)setTitle:(NSString *)title forState:(MJRefreshState)state;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshStateHeader.m",
    "content": "//\n//  MJRefreshStateHeader.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/4/24.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"MJRefreshStateHeader.h\"\n\n@interface MJRefreshStateHeader()\n{\n    /** 显示上一次刷新时间的label */\n    __weak UILabel *_lastUpdatedTimeLabel;\n    /** 显示刷新状态的label */\n    __weak UILabel *_stateLabel;\n}\n/** 所有状态对应的文字 */\n@property (strong, nonatomic) NSMutableDictionary *stateTitles;\n@end\n\n@implementation MJRefreshStateHeader\n#pragma mark - 懒加载\n- (NSMutableDictionary *)stateTitles\n{\n    if (!_stateTitles) {\n        self.stateTitles = [NSMutableDictionary dictionary];\n    }\n    return _stateTitles;\n}\n\n- (UILabel *)stateLabel\n{\n    if (!_stateLabel) {\n        [self addSubview:_stateLabel = [UILabel label]];\n    }\n    return _stateLabel;\n}\n\n- (UILabel *)lastUpdatedTimeLabel\n{\n    if (!_lastUpdatedTimeLabel) {\n        [self addSubview:_lastUpdatedTimeLabel = [UILabel label]];\n    }\n    return _lastUpdatedTimeLabel;\n}\n\n#pragma mark - 公共方法\n- (void)setTitle:(NSString *)title forState:(MJRefreshState)state\n{\n    if (title == nil) return;\n    self.stateTitles[@(state)] = title;\n    self.stateLabel.text = self.stateTitles[@(self.state)];\n}\n\n#pragma mark key的处理\n- (void)setLastUpdatedTimeKey:(NSString *)lastUpdatedTimeKey\n{\n    [super setLastUpdatedTimeKey:lastUpdatedTimeKey];\n    \n    NSDate *lastUpdatedTime = [[NSUserDefaults standardUserDefaults] objectForKey:lastUpdatedTimeKey];\n    \n    // 如果有block\n    if (self.lastUpdatedTimeText) {\n        self.lastUpdatedTimeLabel.text = self.lastUpdatedTimeText(lastUpdatedTime);\n        return;\n    }\n    \n    if (lastUpdatedTime) {\n        // 1.获得年月日\n        NSCalendar *calendar = [NSCalendar currentCalendar];\n        NSUInteger unitFlags = NSCalendarUnitYear| NSCalendarUnitMonth | NSCalendarUnitDay |NSCalendarUnitHour |NSCalendarUnitMinute;\n        NSDateComponents *cmp1 = [calendar components:unitFlags fromDate:lastUpdatedTime];\n        NSDateComponents *cmp2 = [calendar components:unitFlags fromDate:[NSDate date]];\n        \n        // 2.格式化日期\n        NSDateFormatter *formatter = [[NSDateFormatter alloc] init];\n        if ([cmp1 day] == [cmp2 day]) { // 今天\n            formatter.dateFormat = @\"今天 HH:mm\";\n        } else if ([cmp1 year] == [cmp2 year]) { // 今年\n            formatter.dateFormat = @\"MM-dd HH:mm\";\n        } else {\n            formatter.dateFormat = @\"yyyy-MM-dd HH:mm\";\n        }\n        NSString *time = [formatter stringFromDate:lastUpdatedTime];\n        \n        // 3.显示日期\n        self.lastUpdatedTimeLabel.text = [NSString stringWithFormat:@\"最后更新：%@\", time];\n    } else {\n        self.lastUpdatedTimeLabel.text = @\"最后更新：无记录\";\n    }\n}\n\n#pragma mark - 覆盖父类的方法\n- (void)prepare\n{\n    [super prepare];\n    \n    // 初始化文字\n    [self setTitle:MJRefreshHeaderIdleText forState:MJRefreshStateIdle];\n    [self setTitle:MJRefreshHeaderPullingText forState:MJRefreshStatePulling];\n    [self setTitle:MJRefreshHeaderRefreshingText forState:MJRefreshStateRefreshing];\n}\n\n- (void)placeSubviews\n{\n    [super placeSubviews];\n    \n    if (self.stateLabel.hidden) return;\n    \n    if (self.lastUpdatedTimeLabel.hidden) {\n        // 状态\n        self.stateLabel.frame = self.bounds;\n    } else {\n        // 状态\n        self.stateLabel.mj_x = 0;\n        self.stateLabel.mj_y = 0;\n        self.stateLabel.mj_w = self.mj_w;\n        self.stateLabel.mj_h = self.mj_h * 0.5;\n        \n        // 更新时间\n        self.lastUpdatedTimeLabel.mj_x = 0;\n        self.lastUpdatedTimeLabel.mj_y = self.stateLabel.mj_h;\n        self.lastUpdatedTimeLabel.mj_w = self.mj_w;\n        self.lastUpdatedTimeLabel.mj_h = self.mj_h - self.lastUpdatedTimeLabel.mj_y;\n    }\n}\n\n- (void)setState:(MJRefreshState)state\n{\n    MJRefreshCheckState\n    \n    // 设置状态文字\n    self.stateLabel.text = self.stateTitles[@(state)];\n    \n    // 重新设置key（重新显示时间）\n    self.lastUpdatedTimeKey = self.lastUpdatedTimeKey;\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/MJRefresh.h",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n\n#import \"UIScrollView+MJRefresh.h\"\n#import \"UIScrollView+MJExtension.h\"\n#import \"UIView+MJExtension.h\"\n\n#import \"MJRefreshNormalHeader.h\"\n#import \"MJRefreshGifHeader.h\"\n\n#import \"MJRefreshBackNormalFooter.h\"\n#import \"MJRefreshBackGifFooter.h\"\n#import \"MJRefreshAutoNormalFooter.h\"\n#import \"MJRefreshAutoGifFooter.h\""
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/MJRefreshConst.h",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n#import <UIKit/UIKit.h>\n#import <objc/message.h>\n\n// 日志输出\n#ifdef DEBUG\n#define MJRefreshLog(...) NSLog(__VA_ARGS__)\n#else\n#define MJRefreshLog(...)\n#endif\n\n// 过期提醒\n#define MJRefreshDeprecated(instead) NS_DEPRECATED(2_0, 2_0, 2_0, 2_0, instead)\n\n// 运行时objc_msgSend\n#define MJRefreshMsgSend(...) ((void (*)(void *, SEL, UIView *))objc_msgSend)(__VA_ARGS__)\n#define MJRefreshMsgTarget(target) (__bridge void *)(target)\n\n// RGB颜色\n#define MJRefreshColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]\n\n// 文字颜色\n#define MJRefreshLabelTextColor MJRefreshColor(90, 90, 90)\n\n// 字体大小\n#define MJRefreshLabelFont [UIFont boldSystemFontOfSize:14]\n\n// 图片路径\n#define MJRefreshSrcName(file) [@\"MJRefresh.bundle\" stringByAppendingPathComponent:file]\n#define MJRefreshFrameworkSrcName(file) [@\"Frameworks/MJRefresh.framework/MJRefresh.bundle\" stringByAppendingPathComponent:file]\n\n// 常量\nUIKIT_EXTERN const CGFloat MJRefreshHeaderHeight;\nUIKIT_EXTERN const CGFloat MJRefreshFooterHeight;\nUIKIT_EXTERN const CGFloat MJRefreshFastAnimationDuration;\nUIKIT_EXTERN const CGFloat MJRefreshSlowAnimationDuration;\n\nUIKIT_EXTERN NSString *const MJRefreshKeyPathContentOffset;\nUIKIT_EXTERN NSString *const MJRefreshKeyPathContentSize;\nUIKIT_EXTERN NSString *const MJRefreshKeyPathContentInset;\nUIKIT_EXTERN NSString *const MJRefreshKeyPathPanState;\n\nUIKIT_EXTERN NSString *const MJRefreshHeaderLastUpdatedTimeKey;\n\nUIKIT_EXTERN NSString *const MJRefreshHeaderIdleText;\nUIKIT_EXTERN NSString *const MJRefreshHeaderPullingText;\nUIKIT_EXTERN NSString *const MJRefreshHeaderRefreshingText;\n\nUIKIT_EXTERN NSString *const MJRefreshAutoFooterIdleText;\nUIKIT_EXTERN NSString *const MJRefreshAutoFooterRefreshingText;\nUIKIT_EXTERN NSString *const MJRefreshAutoFooterNoMoreDataText;\n\nUIKIT_EXTERN NSString *const MJRefreshBackFooterIdleText;\nUIKIT_EXTERN NSString *const MJRefreshBackFooterPullingText;\nUIKIT_EXTERN NSString *const MJRefreshBackFooterRefreshingText;\nUIKIT_EXTERN NSString *const MJRefreshBackFooterNoMoreDataText;\n\n// 状态检查\n#define MJRefreshCheckState \\\nMJRefreshState oldState = self.state; \\\nif (state == oldState) return; \\\n[super setState:state];\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/MJRefreshConst.m",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n#import <UIKit/UIKit.h>\n\nconst CGFloat MJRefreshHeaderHeight = 54.0;\nconst CGFloat MJRefreshFooterHeight = 44.0;\nconst CGFloat MJRefreshFastAnimationDuration = 0.25;\nconst CGFloat MJRefreshSlowAnimationDuration = 0.4;\n\nNSString *const MJRefreshKeyPathContentOffset = @\"contentOffset\";\nNSString *const MJRefreshKeyPathContentInset = @\"contentInset\";\nNSString *const MJRefreshKeyPathContentSize = @\"contentSize\";\nNSString *const MJRefreshKeyPathPanState = @\"state\";\n\nNSString *const MJRefreshHeaderLastUpdatedTimeKey = @\"MJRefreshHeaderLastUpdatedTimeKey\";\n\nNSString *const MJRefreshHeaderIdleText = @\"下拉可以刷新\";\nNSString *const MJRefreshHeaderPullingText = @\"松开立即刷新\";\nNSString *const MJRefreshHeaderRefreshingText = @\"正在刷新数据中...\";\n\nNSString *const MJRefreshAutoFooterIdleText = @\"点击或上拉加载更多\";\nNSString *const MJRefreshAutoFooterRefreshingText = @\"正在加载更多的数据...\";\nNSString *const MJRefreshAutoFooterNoMoreDataText = @\"已经全部加载完毕\";\n\nNSString *const MJRefreshBackFooterIdleText = @\"上拉可以加载更多\";\nNSString *const MJRefreshBackFooterPullingText = @\"松开立即加载更多\";\nNSString *const MJRefreshBackFooterRefreshingText = @\"正在加载更多的数据...\";\nNSString *const MJRefreshBackFooterNoMoreDataText = @\"已经全部加载完毕\";"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/UIScrollView+MJExtension.h",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  UIScrollView+Extension.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 14-5-28.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIScrollView (MJExtension)\n@property (assign, nonatomic) CGFloat mj_insetT;\n@property (assign, nonatomic) CGFloat mj_insetB;\n@property (assign, nonatomic) CGFloat mj_insetL;\n@property (assign, nonatomic) CGFloat mj_insetR;\n\n@property (assign, nonatomic) CGFloat mj_offsetX;\n@property (assign, nonatomic) CGFloat mj_offsetY;\n\n@property (assign, nonatomic) CGFloat mj_contentW;\n@property (assign, nonatomic) CGFloat mj_contentH;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/UIScrollView+MJExtension.m",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  UIScrollView+Extension.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 14-5-28.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import \"UIScrollView+MJExtension.h\"\n#import <objc/runtime.h>\n\n@implementation UIScrollView (MJExtension)\n\n- (void)setMj_insetT:(CGFloat)mj_insetT\n{\n    UIEdgeInsets inset = self.contentInset;\n    inset.top = mj_insetT;\n    self.contentInset = inset;\n}\n\n- (CGFloat)mj_insetT\n{\n    return self.contentInset.top;\n}\n\n- (void)setMj_insetB:(CGFloat)mj_insetB\n{\n    UIEdgeInsets inset = self.contentInset;\n    inset.bottom = mj_insetB;\n    self.contentInset = inset;\n}\n\n- (CGFloat)mj_insetB\n{\n    return self.contentInset.bottom;\n}\n\n- (void)setMj_insetL:(CGFloat)mj_insetL\n{\n    UIEdgeInsets inset = self.contentInset;\n    inset.left = mj_insetL;\n    self.contentInset = inset;\n}\n\n- (CGFloat)mj_insetL\n{\n    return self.contentInset.left;\n}\n\n- (void)setMj_insetR:(CGFloat)mj_insetR\n{\n    UIEdgeInsets inset = self.contentInset;\n    inset.right = mj_insetR;\n    self.contentInset = inset;\n}\n\n- (CGFloat)mj_insetR\n{\n    return self.contentInset.right;\n}\n\n- (void)setMj_offsetX:(CGFloat)mj_offsetX\n{\n    CGPoint offset = self.contentOffset;\n    offset.x = mj_offsetX;\n    self.contentOffset = offset;\n}\n\n- (CGFloat)mj_offsetX\n{\n    return self.contentOffset.x;\n}\n\n- (void)setMj_offsetY:(CGFloat)mj_offsetY\n{\n    CGPoint offset = self.contentOffset;\n    offset.y = mj_offsetY;\n    self.contentOffset = offset;\n}\n\n- (CGFloat)mj_offsetY\n{\n    return self.contentOffset.y;\n}\n\n- (void)setMj_contentW:(CGFloat)mj_contentW\n{\n    CGSize size = self.contentSize;\n    size.width = mj_contentW;\n    self.contentSize = size;\n}\n\n- (CGFloat)mj_contentW\n{\n    return self.contentSize.width;\n}\n\n- (void)setMj_contentH:(CGFloat)mj_contentH\n{\n    CGSize size = self.contentSize;\n    size.height = mj_contentH;\n    self.contentSize = size;\n}\n\n- (CGFloat)mj_contentH\n{\n    return self.contentSize.height;\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/UIScrollView+MJRefresh.h",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  UIScrollView+MJRefresh.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/3/4.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//  给ScrollView增加下拉刷新、上拉刷新的功能\n\n#import <UIKit/UIKit.h>\n\n@class MJRefreshHeader, MJRefreshFooter;\n\n@interface UIScrollView (MJRefresh)\n/** 下拉刷新控件 */\n@property (strong, nonatomic) MJRefreshHeader *header;\n/** 上拉刷新控件 */\n@property (strong, nonatomic) MJRefreshFooter *footer;\n\n#pragma mark - other\n- (NSInteger)totalDataCount;\n@property (copy, nonatomic) void (^reloadDataBlock)(NSInteger totalDataCount);\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/UIScrollView+MJRefresh.m",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  UIScrollView+MJRefresh.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 15/3/4.\n//  Copyright (c) 2015年 小码哥. All rights reserved.\n//\n\n#import \"UIScrollView+MJRefresh.h\"\n#import \"MJRefreshHeader.h\"\n#import \"MJRefreshFooter.h\"\n#import <objc/runtime.h>\n\n@implementation NSObject (MJRefresh)\n\n+ (void)exchangeInstanceMethod1:(SEL)method1 method2:(SEL)method2\n{\n    method_exchangeImplementations(class_getInstanceMethod(self, method1), class_getInstanceMethod(self, method2));\n}\n\n+ (void)exchangeClassMethod1:(SEL)method1 method2:(SEL)method2\n{\n    method_exchangeImplementations(class_getClassMethod(self, method1), class_getClassMethod(self, method2));\n}\n\n@end\n\n@implementation UIScrollView (MJRefresh)\n\n#pragma mark - header\nstatic const char MJRefreshHeaderKey = '\\0';\n- (void)setHeader:(MJRefreshHeader *)header\n{\n    if (header != self.header) {\n        // 删除旧的，添加新的\n        [self.header removeFromSuperview];\n        [self addSubview:header];\n        \n        // 存储新的\n        [self willChangeValueForKey:@\"header\"]; // KVO\n        objc_setAssociatedObject(self, &MJRefreshHeaderKey,\n                                 header, OBJC_ASSOCIATION_ASSIGN);\n        [self didChangeValueForKey:@\"header\"]; // KVO\n    }\n}\n\n- (MJRefreshHeader *)header\n{\n    return objc_getAssociatedObject(self, &MJRefreshHeaderKey);\n}\n\n#pragma mark - footer\nstatic const char MJRefreshFooterKey = '\\0';\n- (void)setFooter:(MJRefreshFooter *)footer\n{\n    if (footer != self.footer) {\n        // 删除旧的，添加新的\n        [self.footer removeFromSuperview];\n        [self addSubview:footer];\n        \n        // 存储新的\n        [self willChangeValueForKey:@\"footer\"]; // KVO\n        objc_setAssociatedObject(self, &MJRefreshFooterKey,\n                                 footer, OBJC_ASSOCIATION_ASSIGN);\n        [self didChangeValueForKey:@\"footer\"]; // KVO\n    }\n}\n\n- (MJRefreshFooter *)footer\n{\n    return objc_getAssociatedObject(self, &MJRefreshFooterKey);\n}\n\n#pragma mark - other\n- (NSInteger)totalDataCount\n{\n    NSInteger totalCount = 0;\n    if ([self isKindOfClass:[UITableView class]]) {\n        UITableView *tableView = (UITableView *)self;\n        \n        for (NSInteger section = 0; section<tableView.numberOfSections; section++) {\n            totalCount += [tableView numberOfRowsInSection:section];\n        }\n    } else if ([self isKindOfClass:[UICollectionView class]]) {\n        UICollectionView *collectionView = (UICollectionView *)self;\n        \n        for (NSInteger section = 0; section<collectionView.numberOfSections; section++) {\n            totalCount += [collectionView numberOfItemsInSection:section];\n        }\n    }\n    return totalCount;\n}\n\nstatic const char MJRefreshReloadDataBlockKey = '\\0';\n- (void)setReloadDataBlock:(void (^)(NSInteger))reloadDataBlock\n{\n    [self willChangeValueForKey:@\"reloadDataBlock\"]; // KVO\n    objc_setAssociatedObject(self, &MJRefreshReloadDataBlockKey, reloadDataBlock, OBJC_ASSOCIATION_COPY_NONATOMIC);\n    [self didChangeValueForKey:@\"reloadDataBlock\"]; // KVO\n}\n\n- (void (^)(NSInteger))reloadDataBlock\n{\n    return objc_getAssociatedObject(self, &MJRefreshReloadDataBlockKey);\n}\n\n- (void)executeReloadDataBlock\n{\n    !self.reloadDataBlock ? : self.reloadDataBlock(self.totalDataCount);\n}\n@end\n\n@implementation UITableView (MJRefresh)\n\n+ (void)load\n{\n    [self exchangeInstanceMethod1:@selector(reloadData) method2:@selector(mj_reloadData)];\n}\n\n- (void)mj_reloadData\n{\n    [self mj_reloadData];\n    \n    [self executeReloadDataBlock];\n}\n@end\n\n@implementation UICollectionView (MJRefresh)\n\n+ (void)load\n{\n    [self exchangeInstanceMethod1:@selector(reloadData) method2:@selector(mj_reloadData)];\n}\n\n- (void)mj_reloadData\n{\n    [self mj_reloadData];\n    \n    [self executeReloadDataBlock];\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/UIView+MJExtension.h",
    "content": "// 代码地址: https://github.com/CoderMJLee/MJRefresh\n// 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  UIView+Extension.h\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 14-5-28.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (MJExtension)\n@property (assign, nonatomic) CGFloat mj_x;\n@property (assign, nonatomic) CGFloat mj_y;\n@property (assign, nonatomic) CGFloat mj_w;\n@property (assign, nonatomic) CGFloat mj_h;\n@property (assign, nonatomic) CGSize mj_size;\n@property (assign, nonatomic) CGPoint mj_origin;\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/MJRefresh/UIView+MJExtension.m",
    "content": "//  代码地址: https://github.com/CoderMJLee/MJRefresh\n//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000\n//  UIView+Extension.m\n//  MJRefreshExample\n//\n//  Created by MJ Lee on 14-5-28.\n//  Copyright (c) 2014年 小码哥. All rights reserved.\n//\n\n#import \"UIView+MJExtension.h\"\n\n@implementation UIView (MJExtension)\n- (void)setMj_x:(CGFloat)mj_x\n{\n    CGRect frame = self.frame;\n    frame.origin.x = mj_x;\n    self.frame = frame;\n}\n\n- (CGFloat)mj_x\n{\n    return self.frame.origin.x;\n}\n\n- (void)setMj_y:(CGFloat)mj_y\n{\n    CGRect frame = self.frame;\n    frame.origin.y = mj_y;\n    self.frame = frame;\n}\n\n- (CGFloat)mj_y\n{\n    return self.frame.origin.y;\n}\n\n- (void)setMj_w:(CGFloat)mj_w\n{\n    CGRect frame = self.frame;\n    frame.size.width = mj_w;\n    self.frame = frame;\n}\n\n- (CGFloat)mj_w\n{\n    return self.frame.size.width;\n}\n\n- (void)setMj_h:(CGFloat)mj_h\n{\n    CGRect frame = self.frame;\n    frame.size.height = mj_h;\n    self.frame = frame;\n}\n\n- (CGFloat)mj_h\n{\n    return self.frame.size.height;\n}\n\n- (void)setMj_size:(CGSize)mj_size\n{\n    CGRect frame = self.frame;\n    frame.size = mj_size;\n    self.frame = frame;\n}\n\n- (CGSize)mj_size\n{\n    return self.frame.size;\n}\n\n- (void)setMj_origin:(CGPoint)mj_origin\n{\n    CGRect frame = self.frame;\n    frame.origin = mj_origin;\n    self.frame = frame;\n}\n\n- (CGPoint)mj_origin\n{\n    return self.frame.origin;\n}\n@end\n"
  },
  {
    "path": "Pods/MJRefresh/README.md",
    "content": "![(logo)](http://images.cnitblog.com/blog2015/497279/201505/051004492043385.png)\n## MJRefresh\n* An easy way to use pull-to-refresh\n* 用法简单的下拉刷新框架：一行代码搞定\n\n## Contents\n* Getting Started\n    * [Features【支持哪些控件的刷新】](#支持哪些控件的刷新)\n    * [Installation【如何使用MJRefresh】](#如何使用MJRefresh)\n    * [Who's using【已经超过上百个App正在使用MJRefresh】](#已经超过上百个App正在使用MJRefresh)\n    * [Classes【MJRefresh类结构图】](#MJRefresh类结构图)\n* 常见API\n\t* [MJRefreshComponent.h](#MJRefreshComponent.h)\n\t* [MJRefreshHeader.h](#MJRefreshHeader.h)\n\t* [MJRefreshFooter.h](#MJRefreshFooter.h)\n\t* [MJRefreshAutoFooter.h](#MJRefreshAutoFooter.h)\n* Examples\n    * [Reference【参考】](#参考)\n    * [下拉刷新01-默认](#下拉刷新01-默认)\n    * [下拉刷新02-动画图片](#下拉刷新02-动画图片)\n    * [下拉刷新03-隐藏时间](#下拉刷新03-隐藏时间)\n    * [下拉刷新04-隐藏状态和时间](#下拉刷新04-隐藏状态和时间)\n    * [下拉刷新05-自定义文字](#下拉刷新05-自定义文字)\n    * [下拉刷新06-自定义刷新控件](#下拉刷新06-自定义刷新控件)\n    * [上拉刷新01-默认](#上拉刷新01-默认)\n    * [上拉刷新02-动画图片](#上拉刷新02-动画图片)\n    * [上拉刷新03-隐藏刷新状态的文字](#上拉刷新03-隐藏刷新状态的文字)\n    * [上拉刷新04-全部加载完毕](#上拉刷新04-全部加载完毕)\n    * [上拉刷新05-自定义文字](#上拉刷新05-自定义文字)\n    * [上拉刷新06-加载后隐藏](#上拉刷新06-加载后隐藏)\n    * [上拉刷新07-自动回弹的上拉01](#上拉刷新07-自动回弹的上拉01)\n    * [上拉刷新08-自动回弹的上拉02](#上拉刷新08-自动回弹的上拉02)\n    * [上拉刷新09-自定义刷新控件(自动刷新)](#上拉刷新09-自定义刷新控件(自动刷新))\n    * [上拉刷新10-自定义刷新控件(自动回弹)](#上拉刷新10-自定义刷新控件(自动回弹))\n    * [UICollectionView01-上下拉刷新](#UICollectionView01-上下拉刷新)\n    * [UIWebView01-下拉刷新](#UIWebView01-下拉刷新)\n* [期待](#期待)\n\n## <a id=\"支持哪些控件的刷新\"></a>支持哪些控件的刷新\n* `UIScrollView`、`UITableView`、`UICollectionView`、`UIWebView`\n\n## <a id=\"如何使用MJRefresh\"></a>如何使用MJRefresh\n* cocoapods导入：`pod 'MJRefresh'`\n* 手动导入：\n    * 将`MJRefresh`文件夹中的所有文件拽入项目中\n    * 导入主头文件：`#import \"MJRefresh.h\"`\n\n```objc\nBase                        Custom\nMJRefresh.bundle            MJRefresh.h\nMJRefreshConst.h            MJRefreshConst.m\nUIScrollView+MJExtension.h  UIScrollView+MJExtension.m\nUIScrollView+MJRefresh.h    UIScrollView+MJRefresh.m\nUIView+MJExtension.h        UIView+MJExtension.m\n```\n\n## <a id=\"已经超过上百个App正在使用MJRefresh\"></a>已经超过上百个App正在使用MJRefresh\n<img src=\"http://images0.cnblogs.com/blog2015/497279/201506/141212365041650.png\" width=\"200\" height=\"300\">\n* 更多App信息可以关注：[M了个J-博客园](http://www.cnblogs.com/mjios/p/4409853.html)\n\n## <a id=\"MJRefresh类结构图\"></a>MJRefresh类结构图\n![](http://images0.cnblogs.com/blog2015/497279/201506/132232456139177.png)\n- 图中`红色文字的类`：可以直接拿来用\n    - 下拉刷新控件的种类\n        - 默认（Normal）：`MJRefreshNormalHeader`\n        - 动图（Gif）：`MJRefreshGifHeader`\n    - 上拉刷新控件的种类\n        - 自动刷新（Auto）\n            - 默认（Normal）：`MJRefreshAutoNormalFooter`\n            - 动图（Gif）：`MJRefreshAutoGifFooter`\n        - 自动回弹（Back）\n            - 默认（Normal）：`MJRefreshBackNormalFooter`\n            - 动图（Gif）：`MJRefreshBackGifFooter`\n- 图中`非红色文字的类`：拿来继承，用于自定义刷新控件\n- 关于如何自定义刷新控件，可以参考下图的类<br>\n<img src=\"http://images0.cnblogs.com/blog2015/497279/201506/141358159107893.png\" width=\"30%\" height=\"30%\">\n\n## <a id=\"MJRefreshComponent.h\"></a>MJRefreshComponent.h\n```objc\n/** 刷新控件的基类 */\n@interface MJRefreshComponent : UIView\n#pragma mark - 刷新状态控制\n/** 进入刷新状态 */\n- (void)beginRefreshing;\n/** 结束刷新状态 */\n- (void)endRefreshing;\n/** 是否正在刷新 */\n- (BOOL)isRefreshing;\n\n#pragma mark - 其他\n/** 根据拖拽比例自动切换透明度 */\n@property (assign, nonatomic, getter=isAutomaticallyChangeAlpha) BOOL automaticallyChangeAlpha;\n@end\n```\n\n## <a id=\"MJRefreshHeader.h\"></a>MJRefreshHeader.h\n```objc\n@interface MJRefreshHeader : MJRefreshComponent\n/** 创建header */\n+ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock;\n/** 创建header */\n+ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;\n\n/** 这个key用来存储上一次下拉刷新成功的时间 */\n@property (copy, nonatomic) NSString *lastUpdatedTimeKey;\n/** 上一次下拉刷新成功的时间 */\n@property (strong, nonatomic, readonly) NSDate *lastUpdatedTime;\n\n/** 忽略多少scrollView的contentInset的top */\n@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetTop;\n@end\n```\n\n## <a id=\"MJRefreshFooter.h\"></a>MJRefreshFooter.h\n```objc\n@interface MJRefreshFooter : MJRefreshComponent\n/** 创建footer */\n+ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock;\n/** 创建footer */\n+ (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;\n\n/** 提示没有更多的数据 */\n- (void)noticeNoMoreData;\n/** 重置没有更多的数据（消除没有更多数据的状态） */\n- (void)resetNoMoreData;\n\n/** 忽略多少scrollView的contentInset的bottom */\n@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom;\n\n/** 自动根据有无数据来显示和隐藏（有数据就显示，没有数据隐藏） */\n@property (assign, nonatomic) BOOL automaticallyHidden;\n@end\n```\n\n## <a id=\"MJRefreshAutoFooter.h\"></a>MJRefreshAutoFooter.h\n```objc\n@interface MJRefreshAutoFooter : MJRefreshFooter\n/** 是否自动刷新(默认为YES) */\n@property (assign, nonatomic, getter=isAutomaticallyRefresh) BOOL automaticallyRefresh;\n\n/** 当底部控件出现多少时就自动刷新(默认为1.0，也就是底部控件完全出现时，才会自动刷新) */\n@property (assign, nonatomic) CGFloat triggerAutomaticallyRefreshPercent;\n@end\n```\n\n## <a id=\"参考\"></a>参考\n```objc\n* 由于这个框架的功能较多，就不写具体文字描述其用法\n* 大家可以直接参考示例中的MJTableViewController、MJCollectionViewController、MJWebViewController，更为直观快速\n```\n<img src=\"http://images0.cnblogs.com/blog2015/497279/201506/141345470048120.png\" width=\"30%\" height=\"30%\">\n\n## <a id=\"下拉刷新01-默认\"></a>下拉刷新01-默认\n```objc\nself.tableView.header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{\n   // 进入刷新状态后会自动调用这个block\n}];\n或\n// 设置回调（一旦进入刷新状态，就调用target的action，也就是调用self的loadNewData方法）\nself.tableView.header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)];\n\n// 马上进入刷新状态\n[self.tableView.header beginRefreshing];\n```\n![(下拉刷新01-普通)](http://images0.cnblogs.com/blog2015/497279/201506/141204343486151.gif)\n\n## <a id=\"下拉刷新02-动画图片\"></a>下拉刷新02-动画图片\n```objc\n// 设置回调（一旦进入刷新状态，就调用target的action，也就是调用self的loadNewData方法）\nMJRefreshGifHeader *header = [MJRefreshGifHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)];\n// 设置普通状态的动画图片\n[header setImages:idleImages forState:MJRefreshStateIdle];\n// 设置即将刷新状态的动画图片（一松开就会刷新的状态）\n[header setImages:pullingImages forState:MJRefreshStatePulling];\n// 设置正在刷新状态的动画图片\n[header setImages:refreshingImages forState:MJRefreshStateRefreshing];\n// 设置header\nself.tableView.header = header;\n```\n![(下拉刷新02-动画图片)](http://images0.cnblogs.com/blog2015/497279/201506/141204402238389.gif)\n\n## <a id=\"下拉刷新03-隐藏时间\"></a>下拉刷新03-隐藏时间\n```objc\n// 隐藏时间\nheader.lastUpdatedTimeLabel.hidden = YES;\n```\n![(下拉刷新03-隐藏时间)](http://images0.cnblogs.com/blog2015/497279/201506/141204456132944.gif)\n\n## <a id=\"下拉刷新04-隐藏状态和时间\"></a>下拉刷新04-隐藏状态和时间\n```objc\n// 隐藏时间\nheader.lastUpdatedTimeLabel.hidden = YES;\n\n// 隐藏状态\nheader.stateLabel.hidden = YES;\n```\n![(下拉刷新04-隐藏状态和时间0)](http://images0.cnblogs.com/blog2015/497279/201506/141204508639539.gif)\n\n## <a id=\"下拉刷新05-自定义文字\"></a>下拉刷新05-自定义文字\n```objc\n// 设置文字\n[header setTitle:@\"Pull down to refresh\" forState:MJRefreshStateIdle];\n[header setTitle:@\"Release to refresh\" forState:MJRefreshStatePulling];\n[header setTitle:@\"Loading ...\" forState:MJRefreshStateRefreshing];\n\n// 设置字体\nheader.stateLabel.font = [UIFont systemFontOfSize:15];\nheader.lastUpdatedTimeLabel.font = [UIFont systemFontOfSize:14];\n\n// 设置颜色\nheader.stateLabel.textColor = [UIColor redColor];\nheader.lastUpdatedTimeLabel.textColor = [UIColor blueColor];\n```\n![(下拉刷新05-自定义文字)](http://images0.cnblogs.com/blog2015/497279/201506/141204563633593.gif)\n\n## <a id=\"下拉刷新06-自定义刷新控件\"></a>下拉刷新06-自定义刷新控件\n```objc\nself.tableView.header = [MJDIYHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)];\n// 具体实现参考MJDIYHeader.h和MJDIYHeader.m\n```\n![(下拉刷新06-自定义刷新控件)](http://images0.cnblogs.com/blog2015/497279/201506/141205019261159.gif)\n\n## <a id=\"上拉刷新01-默认\"></a>上拉刷新01-默认\n```objc\nself.tableView.footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{\n   // 进入刷新状态后会自动调用这个block\n}];\n或\n// 设置回调（一旦进入刷新状态，就调用target的action，也就是调用self的loadMoreData方法）\nself.tableView.footer = [MJRefreshAutoNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)];\n```\n![(上拉刷新01-默认)](http://images0.cnblogs.com/blog2015/497279/201506/141205090047696.gif)\n\n## <a id=\"上拉刷新02-动画图片\"></a>上拉刷新02-动画图片\n```objc\n// 设置回调（一旦进入刷新状态，就调用target的action，也就是调用self的loadMoreData方法）\nMJRefreshAutoGifFooter *footer = [MJRefreshAutoGifFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)];\n\n// 设置刷新图片\n[footer setImages:refreshingImages forState:MJRefreshStateRefreshing];\n\n// 设置尾部\nself.tableView.footer = footer;\n```\n![(上拉刷新02-动画图片)](http://images0.cnblogs.com/blog2015/497279/201506/141205141445793.gif)\n\n## <a id=\"上拉刷新03-隐藏刷新状态的文字\"></a>上拉刷新03-隐藏刷新状态的文字\n```objc\n// 隐藏刷新状态的文字\nfooter.refreshingTitleHidden = YES;\n// 如果没有上面的方法，就用footer.stateLabel.hidden = YES;\n```\n![(上拉刷新03-隐藏刷新状态的文字)](http://images0.cnblogs.com/blog2015/497279/201506/141205200985774.gif)\n\n## <a id=\"上拉刷新04-全部加载完毕\"></a>上拉刷新04-全部加载完毕\n```objc\n// 变为没有更多数据的状态\n[footer noticeNoMoreData];\n```\n![(上拉刷新04-全部加载完毕)](http://images0.cnblogs.com/blog2015/497279/201506/141205248634686.gif)\n\n## <a id=\"上拉刷新05-自定义文字\"></a>上拉刷新05-自定义文字\n```objc\n// 设置文字\n[footer setTitle:@\"Click or drag up to refresh\" forState:MJRefreshStateIdle];\n[footer setTitle:@\"Loading more ...\" forState:MJRefreshStateRefreshing];\n[footer setTitle:@\"No more data\" forState:MJRefreshStateNoMoreData];\n\n// 设置字体\nfooter.stateLabel.font = [UIFont systemFontOfSize:17];\n\n// 设置颜色\nfooter.stateLabel.textColor = [UIColor blueColor];\n```\n![(上拉刷新05-自定义文字)](http://images0.cnblogs.com/blog2015/497279/201506/141205295511153.gif)\n\n## <a id=\"上拉刷新06-加载后隐藏\"></a>上拉刷新06-加载后隐藏\n```objc\n// 隐藏当前的上拉刷新控件\nself.tableView.footer.hidden = YES;\n```\n![(上拉刷新06-加载后隐藏)](http://images0.cnblogs.com/blog2015/497279/201506/141205343481821.gif)\n\n## <a id=\"上拉刷新07-自动回弹的上拉01\"></a>上拉刷新07-自动回弹的上拉01\n```objc\nself.tableView.footer = [MJRefreshBackNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)];\n```\n![(上拉刷新07-自动回弹的上拉01)](http://images0.cnblogs.com/blog2015/497279/201506/141205392239231.gif)\n\n## <a id=\"上拉刷新08-自动回弹的上拉02\"></a>上拉刷新08-自动回弹的上拉02\n```objc\nMJRefreshBackGifFooter *footer = [MJRefreshBackGifFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)];\n\n// 设置普通状态的动画图片\n[footer setImages:idleImages forState:MJRefreshStateIdle];\n// 设置即将刷新状态的动画图片（一松开就会刷新的状态）\n[footer setImages:pullingImages forState:MJRefreshStatePulling];\n// 设置正在刷新状态的动画图片\n[footer setImages:refreshingImages forState:MJRefreshStateRefreshing];\n\n// 设置尾部\nself.tableView.footer = footer;\n```\n![(上拉刷新07-自动回弹的上拉02)](http://images0.cnblogs.com/blog2015/497279/201506/141205441443628.gif)\n\n## <a id=\"上拉刷新09-自定义刷新控件(自动刷新)\"></a>上拉刷新09-自定义刷新控件(自动刷新)\n```objc\nself.tableView.footer = [MJDIYAutoFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)];\n// 具体实现参考MJDIYAutoFooter.h和MJDIYAutoFooter.m\n```\n![(上拉刷新09-自定义刷新控件(自动刷新))](http://images0.cnblogs.com/blog2015/497279/201506/141205500195866.gif)\n\n## <a id=\"上拉刷新10-自定义刷新控件(自动回弹)\"></a>上拉刷新10-自定义刷新控件(自动回弹)\n```objc\nself.tableView.footer = [MJDIYBackFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)];\n// 具体实现参考MJDIYBackFooter.h和MJDIYBackFooter.m\n```\n![(上拉刷新10-自定义刷新控件(自动回弹))](http://images0.cnblogs.com/blog2015/497279/201506/141205560666819.gif)\n\n## <a id=\"UICollectionView01-上下拉刷新\"></a>UICollectionView01-上下拉刷新\n```objc\n// 下拉刷新\nself.collectionView.header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{\n   // 进入刷新状态后会自动调用这个block\n}];\n\n// 上拉刷新\nself.collectionView.footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{\n   // 进入刷新状态后会自动调用这个block\n}];\n```\n![(UICollectionView01-上下拉刷新)](http://images0.cnblogs.com/blog2015/497279/201506/141206021603758.gif)\n\n## <a id=\"UIWebView01-下拉刷新\"></a>UIWebView01-下拉刷新\n```objc\n// 添加下拉刷新控件\nself.webView.scrollView.header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{\n   // 进入刷新状态后会自动调用这个block\n}];\n```\n![(UICollectionView01-上下拉刷新)](http://images0.cnblogs.com/blog2015/497279/201506/141206080514524.gif)\n\n## 提醒\n* 本框架纯ARC，兼容的系统>=iOS6.0、iPhone\\iPad横竖屏\n\n## <a id=\"期待\"></a>期待\n* 如果在使用过程中遇到BUG，希望你能Issues我，谢谢（或者尝试下载最新的框架代码看看BUG修复没有）\n* 如果在使用过程中发现功能不够用，希望你能Issues我，我非常想为这个框架增加更多好用的功能，谢谢\n* 如果你想为MJRefresh输出代码，请拼命Pull Requests我\n* 一起携手打造天朝乃至世界最好用的刷新框架，做天朝程序员的骄傲\n* 如果你开发的应用中用到了MJRefresh，希望你能到[CocoaControls](https://www.cocoacontrols.com/controls/mjrefresh)添加你应用的iTunes路径，我将会安装使用你的应用，并且根据众多应用的使用情况，对MJRefresh进行一个更好的设计和完善，提供更多好用的功能，谢谢\n   * 步骤01（微信是举个例子，百度“你的应用名称 itunes”）\n![(step01)](http://ww4.sinaimg.cn/mw1024/800cdf9ctw1eq0viiv5rsj20sm0ea41t.jpg)\n   * 步骤02\n![(step02)](http://ww2.sinaimg.cn/mw1024/800cdf9ctw1eq0vilejxlj20tu0me7a0.jpg)\n   * 步骤03\n![(step03)](http://ww1.sinaimg.cn/mw1024/800cdf9ctw1eq0viocpo5j20wc0dc0un.jpg)\n   * 步骤04\n![(step04)](http://ww3.sinaimg.cn/mw1024/800cdf9ctw1eq0vir137xj20si0gewgu.jpg)\n"
  },
  {
    "path": "Pods/Pods.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t026CCF569A2125FCB0EE8F152731259E /* NSObject+MJClass.m in Sources */ = {isa = PBXBuildFile; fileRef = B4A882AB3EC99CA1333907E68CA2F825 /* NSObject+MJClass.m */; };\n\t\t059C8D4C41A51DCF37382DF1D7B5A68F /* SDWebImagePrefetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 7FEACAE89E0C0908EB67F604B6D2AE96 /* SDWebImagePrefetcher.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t0639FA6BF12B902585A0C348C3B48DD1 /* NSData+ImageContentType.m in Sources */ = {isa = PBXBuildFile; fileRef = DFA72BF7013C392B1B19E28ACCE570E2 /* NSData+ImageContentType.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t06BBA4863915184B1225C2E6CCE61802 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\t09D04A9AB71B5A4FE9175F80496EA5FD /* UIScrollView+MJRefresh.m in Sources */ = {isa = PBXBuildFile; fileRef = 0F82C77B214AB33CD5DB5FF1E2B34D61 /* UIScrollView+MJRefresh.m */; };\n\t\t09D3BF4E4630C97147E7EDE313E60CAA /* SDWebImageDownloaderOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 65327B5CF246124E29AE037C118C9470 /* SDWebImageDownloaderOperation.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t0A08FC71C4E3B8E0F8734BCDA7CCA7CB /* AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C27A28882A0E23C87BB63BC93351A90 /* AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t0AC9D09FEB14E892F219BD49E8087D7D /* UIView+SDExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FBEBC2EACFC9FFD6E83927B9C15B618 /* UIView+SDExtension.m */; };\n\t\t0D838AC5286929E053A4632DFF97ABB4 /* SDWebImagePrefetcher.m in Sources */ = {isa = PBXBuildFile; fileRef = F820019022EE9B294327BE9AE51E4567 /* SDWebImagePrefetcher.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t0F7EC02E944F8719A5EBDC9D29F9E99F /* MJExtensionConst.h in Headers */ = {isa = PBXBuildFile; fileRef = 89FA2294A27F487D4FCFD1990476B061 /* MJExtensionConst.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t10A1A8AC313021B784FC135CB0D8489B /* UIImageView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 99010AC36EC6663638D112BD78C82F98 /* UIImageView+WebCache.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t118227C43F283C87130BEE2BFABC7EBD /* NSObject+MJCoding.h in Headers */ = {isa = PBXBuildFile; fileRef = 2A7EAD119E28A5FEDFBE6A040657D4B4 /* NSObject+MJCoding.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t133B30495D945B737235B107AAE7DAAB /* MJRefreshHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = F5177D5C5DF17862B7BD77E982864F05 /* MJRefreshHeader.m */; };\n\t\t13695CE9BF36F26CA806C5CD2D6ADECA /* MJFoundation.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E7FD4E609EABB0B02D60CE606C97642 /* MJFoundation.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t14CD3DFB4A25BAEFB205730FA6750025 /* AFAutoPurgingImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 2AF8DE891583820DC0F8F8FF51B2736F /* AFAutoPurgingImageCache.m */; };\n\t\t15460ABD372C937E2A07A2FCDF98C473 /* UIActivityIndicatorView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E3A01D07FB5260111DB77D173201C38 /* UIActivityIndicatorView+AFNetworking.m */; };\n\t\t19E6319F6ECED7539AABBD9A211F7AEC /* AFAutoPurgingImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 02A119D7BAE6CD9941B7D67C52DDC9EF /* AFAutoPurgingImageCache.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t1BA3D9FB5D5145BF698C941C0F843518 /* MJRefreshBackGifFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = CCA62C665BC79E62000D026EB74E9127 /* MJRefreshBackGifFooter.m */; };\n\t\t1E6CA1CA61D8B39C01E1F6375602CE7E /* LK_THProgressView.h in Headers */ = {isa = PBXBuildFile; fileRef = B5291D69BF8F6E4D660E1F3F4EF2D109 /* LK_THProgressView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t1F8C557BF3D526457A8CB61AA53D05FC /* TAAbstractDotView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9738F853E1FE9B6736FA12D854F2C162 /* TAAbstractDotView.m */; };\n\t\t200CA5D919CC71EA6A769541C92716D3 /* MJRefreshBackStateFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AC5588EE1921EE2E899F8EFDBCC34BE /* MJRefreshBackStateFooter.m */; };\n\t\t221D5C68B513726067B4A1D6A38464EF /* SDWebImageDecoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 497F5A6ED2F2E9E62C2251F1F49D02FF /* SDWebImageDecoder.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t2280D55B18C853A6AA3AE9565EE91F19 /* UIView+MJExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 50936F863B83FB93C15DD9D1FE19D935 /* UIView+MJExtension.m */; };\n\t\t23415204AA48A02959E4E5245CF96037 /* AFHTTPSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D4F4C48C7FCF63290D515593353CEED0 /* AFHTTPSessionManager.m */; };\n\t\t2359387620C5E815BF0594BC40311734 /* AFURLRequestSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 717B65A57C8BB984049B5F5F5195C35D /* AFURLRequestSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t2894369EF8D702DF360B6763B36E8444 /* MJRefreshAutoFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = B192233FBB61784EBC1EA30869D8F07A /* MJRefreshAutoFooter.m */; };\n\t\t2CC27528C64733F5C0AB4B1B6EE35E8C /* MJExtension-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6108B1D895F58D4AF44C3ED218412A3D /* MJExtension-dummy.m */; };\n\t\t311E5200832E4AE174A193851A2C6317 /* AFSecurityPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = C064A4C8D5CC9B32E4CBDA7935CB074E /* AFSecurityPolicy.m */; };\n\t\t326A543AD4E39A2DAECA1CD385E3AEA2 /* AFImageDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = 0A8445FFB949AF997A6ACBE3B5CB43BD /* AFImageDownloader.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t3341918313BA35BBA8323541ED86D6C2 /* SDCycleScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = D7BD0FF148B72404757C7E71939BE0D5 /* SDCycleScrollView.m */; };\n\t\t3511AE7ADBB71D05565854F0E70B7D08 /* AFURLSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3FFF0047291EB6C09B86A5E0D5CF50CB /* AFURLSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t366A613AE07EAA35B5789F6123FB48AF /* MJPropertyKey.h in Headers */ = {isa = PBXBuildFile; fileRef = BB05D3A6680AE2AB69FA7AF872BF5EAE /* MJPropertyKey.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t38EEA9ED6B922946C54AD6BAC93B73AD /* UIProgressView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 5859036282ADFFF9E3C82DD6EB2CED52 /* UIProgressView+AFNetworking.m */; };\n\t\t38F4D26ACE5AA9079DB0E94D8A625A0E /* UIImageView+LK.m in Sources */ = {isa = PBXBuildFile; fileRef = AAFC776D91F4FC55AFB65E08F047C80F /* UIImageView+LK.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t3939531EB270B4145C7ADFBAB2E5695F /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 7122328073A5D1983E075C0F07530B17 /* AFNetworkActivityIndicatorManager.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t3BD22351EA00DA7E3B40CBB0FEC1AB78 /* SDWebImageDownloaderOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 0949EFD213421A8F6A1D3649D143FA98 /* SDWebImageDownloaderOperation.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t3D82B864A0E7F53F9C4D4CBB5A06F6BD /* TAAbstractDotView.h in Headers */ = {isa = PBXBuildFile; fileRef = 04539333D3FCDAE5DA25C11B3256AD3F /* TAAbstractDotView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t43098B12DF5546CB576986E68DBCAFCA /* AFNetworkReachabilityManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FC17D54AEDE7F447BDCCC849A947413B /* AFNetworkReachabilityManager.m */; };\n\t\t4330562BA1A299CBD37F4602B1A4C95A /* NSObject+MJKeyValue.h in Headers */ = {isa = PBXBuildFile; fileRef = A4756D4E02C46747F874C36DE8EFFF4C /* NSObject+MJKeyValue.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t43BFE870F57DC60A8E4723C05D692F5D /* UIView+WebCacheOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = EB7F778A0F003469B8011D28DC8F2560 /* UIView+WebCacheOperation.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t444602F3A422E5EC1DA8EF2A3DFA01EB /* MJRefreshStateHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = AF73E895D20B45D047FF2E701BB2301D /* MJRefreshStateHeader.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t44F50504254959A81B2E96AD6261B2A9 /* MJRefreshFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 2FBEAB39E21620D8C74339432009E07C /* MJRefreshFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t494862EC1231C111E1D4AAFA37745A62 /* SDWebImageDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = 3674329FDF34F83F9A0A598909C767D1 /* SDWebImageDownloader.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t4A565ADA0ED7318964AA59D0E2AE23BA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\t4B310A0CC6611FC9E245A147F94D2DA1 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5758F0CFCAB0AFA80E30B746DC0BC2C0 /* SystemConfiguration.framework */; };\n\t\t4BA19F7DD8F9FDA648137B2CE89E7588 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = CBABE0EE0F06A5277197E7C0F9BD694F /* AFNetworkActivityIndicatorManager.m */; };\n\t\t4BE65CE5F3F752C80A217F085C5DD6C2 /* Pods-SYStickHeaderWaterFallUITests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 03742261C62CF9EF6DFD2F0417D80083 /* Pods-SYStickHeaderWaterFallUITests-dummy.m */; };\n\t\t4BEDD6490152AE7F85BF5D5FB69681EB /* TAPageControl.h in Headers */ = {isa = PBXBuildFile; fileRef = D0E926ECFE4B4FA91FFDA100AEDC704F /* TAPageControl.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t4C32A5F3CEEE6A14762CFB0C93E11738 /* UIButton+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 7191EF7C89A8002729ACFECA8AA5AFC7 /* UIButton+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t4C61B999DF40B1B00449A7AFCBB61D5E /* MJPropertyType.m in Sources */ = {isa = PBXBuildFile; fileRef = C9EEE8A16B549D492189ADED065DCD69 /* MJPropertyType.m */; };\n\t\t4D9C646A8EF089141E0571A220D1311B /* UIView+WebCacheOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E166C12CB92BDEC53107EBDACF537AC /* UIView+WebCacheOperation.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t50937BA69A14D69BBBBF8A8B69F9C6D0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\t585CDAC34F08FB220FF26FF55CA899B7 /* MJRefreshGifHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 403428382D57A354D132C9B58242B330 /* MJRefreshGifHeader.m */; };\n\t\t5AF2408BF89495887BD2B23D9597781E /* UIImageView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 155F407630013064E0F413475CE46ABE /* UIImageView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t5BDBB08CD013792DAFA853C75349CD89 /* UIImage+MultiFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = F9B0CD03D44E4825DB37C74816A1AF49 /* UIImage+MultiFormat.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t5BED8B014D29F070D5768D8FC0D71CEC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\t5CBFDC026AAED77902F3CAC48A96FE69 /* MJRefreshStateHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = C4E13EE5B3D2479CEEC482ECD8730C7E /* MJRefreshStateHeader.m */; };\n\t\t5D52DB6DF2E6C24CECB0015A9177A2E1 /* UIProgressView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = FE77DB997D42752FB7BA90C1C8358DDF /* UIProgressView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t5EB4F27B76513AE918BA5AE0868E87C8 /* MBProgressHUD.h in Headers */ = {isa = PBXBuildFile; fileRef = C6F9BE67AFCF0F475749FCF3F37D9B9F /* MBProgressHUD.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t5FBA673E534DD7485FD75764258C8046 /* MJRefreshAutoStateFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = D657FCEEF39DC7FB63CA96B28BA1C4AA /* MJRefreshAutoStateFooter.m */; };\n\t\t64AE43216800C421E6710AC3D30E4E4D /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AFCF476E4EE3DBCA9EE046DBCA883E6D /* Security.framework */; };\n\t\t6CF9B693754B004AD7FB2F8A6C0C8F36 /* MJRefreshBackGifFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 0E9BECB543E1A213BC42C19EFB0A3087 /* MJRefreshBackGifFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t6E5CF733DAC9369049A47F18525437DA /* TADotView.m in Sources */ = {isa = PBXBuildFile; fileRef = 30F0D210AA13D26BDEC908885FE9885C /* TADotView.m */; };\n\t\t6E80858B842657D04234289E938017AC /* MJRefreshBackNormalFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = CF3E979A2EAFF132B9D8C68C2844CFA1 /* MJRefreshBackNormalFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t6EC97BDB3FC508526F9E388095A7DDCC /* UIImageView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 09A2DC3ACB712C1E011E10289B12CFED /* UIImageView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t6EE360D085C7EDD97B0A48A415012D37 /* MJRefreshFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 0CAD04150C521CB416A7294CCEBCDC47 /* MJRefreshFooter.m */; };\n\t\t6F53672BC5CFE2B17E602FBECE216C77 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65CD32B78502DE8022A588D379B5532D /* CoreGraphics.framework */; };\n\t\t710DA5E9C44A1BC56CD13FC1F2D6E099 /* MJFoundation.m in Sources */ = {isa = PBXBuildFile; fileRef = B5956059A332D1FED3512F7A54785C11 /* MJFoundation.m */; };\n\t\t77F797A5A72065EE7351CF41728C2EC3 /* UIView+MJExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = 959AE308BD52E8E5F876B01611A39350 /* UIView+MJExtension.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t7804C8F07177F2F1C6E39C0DACAEB242 /* SDWebImageManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 9BE3C5AFBB0253AD08E930FF03ED446E /* SDWebImageManager.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t78940A6980F359C4304C695EF6E67C5D /* UIButton+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D054D1353A112CF251AA14747BA8E5A /* UIButton+AFNetworking.m */; };\n\t\t78F4F49983120D375D2F97C57828C759 /* SDWebImageOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 9ACD094F75741F00D699FF9AFBD9CFCA /* SDWebImageOperation.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t7B71F9D82A7529324257FAEEFDE39423 /* SDWebImage-Category-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D796F9BAC2654B346387BCF47294826 /* SDWebImage-Category-dummy.m */; };\n\t\t7F0578A0258E02384F6229C678E60D31 /* UIRefreshControl+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = AE82185CD2C0772573CDE56E2EC19525 /* UIRefreshControl+AFNetworking.m */; };\n\t\t82FC12F67E83874B93592218E9FB4CA0 /* MBProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D970CF873FFC1CDEBF9DC8DB2E5FEEB /* MBProgressHUD.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t830050886B18F54E17F117FD8EFC717B /* UIActivityIndicatorView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 6A21425275FFB884FF5579640AEA9981 /* UIActivityIndicatorView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t85FAB6F1D2FE0598BF2E61D7BB084B8D /* UIKit+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 0BDABBE4C65721E454EC53E45EDF8D79 /* UIKit+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t86D3C675657C8AFE6F73E5D0F209E990 /* NSString+MJExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = 03780F0B03134FE9FFFCEAD644AE5D6F /* NSString+MJExtension.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t8B6E6CCB2C285620C315682C19BC0384 /* UIButton+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 96D944C65CB52A5C93DCC5A1C1C340F9 /* UIButton+WebCache.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t8E82178CC9BD8BE3DBF2C10E33807AEB /* AFURLRequestSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB82A9DB1632B0D2A824AB7BF42D548 /* AFURLRequestSerialization.m */; };\n\t\t8F68B37533C5AC9C8588BD0449D32673 /* MJRefresh-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1778F8F6390659B8DF8BD520AEAE4D39 /* MJRefresh-dummy.m */; };\n\t\t904EC3379A9E226064CB03DC1ACA2EEA /* UIScrollView+MJRefresh.h in Headers */ = {isa = PBXBuildFile; fileRef = 3330D9B7CF2BD148AD73E66F1C0281AB /* UIScrollView+MJRefresh.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t90643A68B395D365B3F266C436860F47 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\t91CAC2B69903F5F3D7C25A95CA77A600 /* MJPropertyType.h in Headers */ = {isa = PBXBuildFile; fileRef = BDBCEA15C81A6F63159634989376EAE5 /* MJPropertyType.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t922ACEFE37E22A36A6F0209742B7B51A /* MJRefreshConst.m in Sources */ = {isa = PBXBuildFile; fileRef = 966948767C8B3F611003DBFF222B36FB /* MJRefreshConst.m */; };\n\t\t9230119085130B273ECF20F076081DA1 /* MJRefreshComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 588E9A54D029E8C3DDDBB0D7EAE7D1E8 /* MJRefreshComponent.m */; };\n\t\t932430D4A2289A39BE7C50EEAA60246A /* UIScrollView+MJExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 6905DBFE962BE7E5ACBF74FB92FCBDD8 /* UIScrollView+MJExtension.m */; };\n\t\t935552BE0FE2E3FA49F896DEACAE5C5C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\t9727DDB7EDF50264B2B949A6F671B8D6 /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D29E5B2D41695DD6354252074013EDF8 /* ImageIO.framework */; };\n\t\t9842861324B9DC6A5E7EF5EB29174B0F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\t99042EA40A7E78F184E4CE20D377213C /* SDWebImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 2EAA81D63912C5FF94B4C0923ADD4B47 /* SDWebImageDownloader.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\t998B9B27B04A32717965DB566133FF34 /* Pods-SYStickHeaderWaterFallTests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 66EE07949CB8A4CC6A459D8826F95E97 /* Pods-SYStickHeaderWaterFallTests-dummy.m */; };\n\t\t9BF8D708AC9892125B0AA4E540361FF8 /* MJRefreshAutoNormalFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC59D480396FB5209E2CA1FB16A9606 /* MJRefreshAutoNormalFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tA030F09B285BE67C41086161199C70B7 /* SDWebImageCompat.h in Headers */ = {isa = PBXBuildFile; fileRef = 441FB5DFA66FF4B83003B096D5F6B6B3 /* SDWebImageCompat.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tA0AD231A11A54F59BC8D486946D2928B /* MJProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = D76136C548459FAC36F33BC55825B424 /* MJProperty.m */; };\n\t\tA60A4B3054017180C0B6C7B24E651E0A /* MJPropertyKey.m in Sources */ = {isa = PBXBuildFile; fileRef = 0473B6F3EBE1F7FFB0F730A5E2009C30 /* MJPropertyKey.m */; };\n\t\tA7EF3F638A049856FCED241087EE43F8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\tA887B787CAEA0DAC5EFEF6E21F596F81 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A702D8C9625800EB7AF83214935DAC22 /* MobileCoreServices.framework */; };\n\t\tA89B33DBDA4E99005E1F1BDB95A296CC /* MJRefreshBackFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 8FA06799CD75D317DC3B9BA01C72C379 /* MJRefreshBackFooter.m */; };\n\t\tA8FC6A53F6C1CB4DEFD972664E1AF3B1 /* AFNetworking-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 68122BC481A576299BD4E6E4D2B922E9 /* AFNetworking-dummy.m */; };\n\t\tABC448750EECAAC48EEBB4F394092EE4 /* UIImageView+HighlightedWebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = D9CD49ABAEDA6468FACA929315F6110B /* UIImageView+HighlightedWebCache.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tACE9C1A6E8D5121C6C5F907C7A9CFCC9 /* UIRefreshControl+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = DA03FC6C6AE92B2E137584A5EE4C8813 /* UIRefreshControl+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tAD359A96DD4AA2C962E50A5CD5524F54 /* UIWebView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 589BD0FA55FD6BA098B19CBC69B879DF /* UIWebView+AFNetworking.m */; };\n\t\tB0BE398350F83A7B0102C3BBAFC51428 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = B162443D4C557BB9F3E1F63E3D49F3B4 /* UIImageView+AFNetworking.m */; };\n\t\tB19CA8B0FD349AEAD2D5A1C6B46AF47D /* MJRefreshNormalHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = C7BA3D8FBE6C0BBD656889B880F545C1 /* MJRefreshNormalHeader.m */; };\n\t\tB309424B5656428CE216787BA0CB0FC1 /* SDImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 52DD0022EA097581D32265EABF8AB646 /* SDImageCache.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\tB51AA1F7701DCDBCC9B88A15320F9C2C /* AFURLResponseSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 03E5B1A5E72B9A4845264FF4C6ACB4D4 /* AFURLResponseSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tB5A6229DEC88B0D18BD56C946478B3CE /* UIImage+GIF.h in Headers */ = {isa = PBXBuildFile; fileRef = D0F1669723EFB2EFF6BF3121809EFF71 /* UIImage+GIF.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tB5A8A60810B99D763E3A3F076F63509D /* MJRefreshBackFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = A63C36BF4857664C0D8B3E77B9120F71 /* MJRefreshBackFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tB5CF67F7870BAB70A76E57479B706B42 /* UIWebView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 0A456706C234210666DBA7A2B7822CD0 /* UIWebView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tB7F042F97355BC6B0511F5874A9638E9 /* UIImageView+LK.h in Headers */ = {isa = PBXBuildFile; fileRef = 96BC8B973C99C40FD9F4BCB661B90395 /* UIImageView+LK.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tB92E0D2A24DE5B6E5D56FBEDF78BEC98 /* SDWebImageManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 1392750019EF6536152D702AF6D876F2 /* SDWebImageManager.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\tB9B44F1EDC36C095666CA0AE98371C09 /* UIScrollView+MJExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = 2782017DE5C4BCD8D64F278D17230EF5 /* UIScrollView+MJExtension.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tB9C36A50069E553B4B8538E291864BB5 /* NSObject+MJKeyValue.m in Sources */ = {isa = PBXBuildFile; fileRef = E2411100641D9BA56663CA21170F3491 /* NSObject+MJKeyValue.m */; };\n\t\tBED25BC538FC164689639CC846E2CD13 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65CD32B78502DE8022A588D379B5532D /* CoreGraphics.framework */; };\n\t\tC008CEE1DB11E725039646E8978A12D8 /* UIView+SDExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = 1DD017E66994647329B47EBDA0107D1E /* UIView+SDExtension.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tC16442D25F534C602780E6FD44C6A698 /* NSObject+MJProperty.h in Headers */ = {isa = PBXBuildFile; fileRef = 6448180D051AE5735B4C2A867AE40A7D /* NSObject+MJProperty.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tC1B65C3D849FEE4FB5298A8135A765DA /* UIImage+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 397506CB5949E92F27532829BE99E5A4 /* UIImage+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tC2201E34603B014192F0967473518496 /* AFURLResponseSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B6C85F7982F09D41478019A9CE088D /* AFURLResponseSerialization.m */; };\n\t\tC262E878E903689F2196806A2773AA77 /* SDCollectionViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EA15D5327C61CEAA65DB157C0F6EF7A /* SDCollectionViewCell.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tC37D2F9A62232C28DAF2E51CF1364F21 /* MJExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = 5804A46CD9C1DFC31AC7649EEF1D248F /* MJExtension.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tC4D6F3598DA3E427EA9AF1E0BC4B8CD6 /* Pods-SYStickHeaderWaterFall-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 87A30B0D21A171A9AA4C26BCCF9BFDE8 /* Pods-SYStickHeaderWaterFall-dummy.m */; };\n\t\tC64703AE573F9CD9F742B3639E31AF3D /* SDWebImage-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = FC5223A138B3434A058C63E1C0140689 /* SDWebImage-dummy.m */; };\n\t\tC66A994F14BA080776BB3E2AD8CC55B4 /* MJRefreshAutoStateFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 44159F705C59F8D127435381A967C39F /* MJRefreshAutoStateFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tC67F32FF951D1979EF0E6B4ADED5E8A8 /* MJRefreshNormalHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 53D896996B9B312951AAEF7B746E2AC7 /* MJRefreshNormalHeader.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tC7A4F06D2AD624BEAED06515BF8C9F0C /* UIImage+GIF.m in Sources */ = {isa = PBXBuildFile; fileRef = C558684FD8967F7BD6AC1BCB8D6044A5 /* UIImage+GIF.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\tC85455195A338728FAF81E783F96E416 /* SDCycleScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = CB3E8450B827F5CC531FAF520B158DD0 /* SDCycleScrollView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tCA1EB1DB5C89E63A19ED05C55E35AF23 /* NSObject+MJClass.h in Headers */ = {isa = PBXBuildFile; fileRef = 689D9B45F288DB62B12B34C652BE8FF5 /* NSObject+MJClass.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tCD4CF5F1389281BCE40DF30AD1945D03 /* NSObject+MJProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = C1A7E81A9399EDBC165BF84D27FD6C90 /* NSObject+MJProperty.m */; };\n\t\tCDA4DB994BAC351F4CD71EC283055E57 /* NSObject+MJCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = B395737299D7120E9ED5EAD2456C2694 /* NSObject+MJCoding.m */; };\n\t\tCE97FE5BA0E174A81960F1842C836D37 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\tD054768D94E678B8A0D7F2AB4FF45E54 /* MJRefresh.h in Headers */ = {isa = PBXBuildFile; fileRef = AE525EC93CC874875F8BEA64AC78905D /* MJRefresh.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tD1D1F11808DACCA88C55636F85A58FD8 /* NSString+MJExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 8CB42092EA5F5E6069B32BAB8509F5D9 /* NSString+MJExtension.m */; };\n\t\tD2BB4DFE734A679813ACAB874897B160 /* SDWebImageDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = B55809DE336BE3076ACFC6F221779BED /* SDWebImageDecoder.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tD31FEE51AF4BE2A6CC059F80B983CD3B /* AFImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = B38F63AF2EB9254956F3E981AEA85F53 /* AFImageDownloader.m */; };\n\t\tD595C17C62C58E80EEC6F9EBCCF4050A /* MJRefreshGifHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = B3050C2F51CE1BD66414FCEA30969F83 /* MJRefreshGifHeader.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tD5D3721CDE9C2523AA2F562D8B609047 /* LK_THProgressView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9564FF1FC03E2FAE8DA08E9CEC284AB6 /* LK_THProgressView.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\tD8469F0F54215018DFBF2BB298478741 /* NSData+ImageContentType.h in Headers */ = {isa = PBXBuildFile; fileRef = CBE49A77B30D9FC71CB6B0311C50C6F6 /* NSData+ImageContentType.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tDA8BAA5F8E5949555BC8B94E309E23D8 /* MJRefreshAutoGifFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 49E41B87DA6A8A81C5991653484F13B5 /* MJRefreshAutoGifFooter.m */; };\n\t\tDAF1CE8756287B465E0DE48A6133FB79 /* MJProperty.h in Headers */ = {isa = PBXBuildFile; fileRef = 9F0911910E70B06CB37748B622096558 /* MJProperty.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tDEE9B93BB1BD09C973F16BF36CF015B6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */; };\n\t\tDFDAC8245626953C4BCE5A2DA6BE2A5B /* AFSecurityPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A5566E3DC969CB6C6ED902E88BCA69C /* AFSecurityPolicy.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE0529B7C623EB5752662665A05DAAFBA /* MJRefreshAutoNormalFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 11807D73A4B41757F9456BA20C38168A /* MJRefreshAutoNormalFooter.m */; };\n\t\tE1CAAC491F015A6567402B13D12449C6 /* TAAnimatedDotView.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A7BAECDE8341CD38FE0F9169F01B226 /* TAAnimatedDotView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE212C2AA95E8F6EFB69A5F1455F291F8 /* UIButton+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = F4DE7C1D1391BC28AF4AA853F4677131 /* UIButton+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE23430756F70BBCA96CE8D0C54EB5177 /* SDWebImageCompat.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AB9AA6F0DA2B9A05CF9693B405ABA51 /* SDWebImageCompat.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\tEA03AF12E0E3E8ADC50DA70F2C5BF39E /* MJRefreshHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FFB75B293637728C3B7227BB3556E /* MJRefreshHeader.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tEB4BCECA120006D123FB6DF7F8965844 /* TAAnimatedDotView.m in Sources */ = {isa = PBXBuildFile; fileRef = B67E732031A8F8CB87204F73A1565F72 /* TAAnimatedDotView.m */; };\n\t\tED13D8AAEBE839B765E819E64CC5AF79 /* SDCycleScrollView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DC6690F69BC098EF61540DAA24C44DAC /* SDCycleScrollView-dummy.m */; };\n\t\tED69D9B5A342FE9BD3F170D5CDDEC948 /* AFNetworkReachabilityManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A28E737006F7F01A56B439F0E736388 /* AFNetworkReachabilityManager.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tEF4C10DEA974174C1CF84BBEB669F207 /* UIImageView+HighlightedWebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = C9C58AF6CE1E7EF70249FCC5EF1775FC /* UIImageView+HighlightedWebCache.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\tEFA6EDA4DC962DB29CEA5603B25F0489 /* TADotView.h in Headers */ = {isa = PBXBuildFile; fileRef = 87C9E80A9E3CA944D0A6E3CFEEFA621E /* TADotView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tEFCDCCD66269CA908494B11E024DC736 /* MJRefreshAutoGifFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 456D94174B914D8FB47EF17D19923BDE /* MJRefreshAutoGifFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tF0D01ED940723EED434E4EF4BCFF53F9 /* MJRefreshBackNormalFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = E436230F7960FA07CDD51216481E9E09 /* MJRefreshBackNormalFooter.m */; };\n\t\tF3520971CAA99362336B25728D04BDDC /* UIImage+MultiFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A5FE3A3B2F50E3BE95422663F5F73A2 /* UIImage+MultiFormat.m */; settings = {COMPILER_FLAGS = \"-DOS_OBJECT_USE_OBJC=0\"; }; };\n\t\tF3774B1449FCE5B3CA3E1B336E11D284 /* AFHTTPSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 8768BBC5EB6C8641A9B8BF5213B51448 /* AFHTTPSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tF432A374A040EBAB69C9EABC6C4D699A /* MJRefreshComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 47F7E9D29CB8C01E70280774EADE72BA /* MJRefreshComponent.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tF58455418F190BC37D1FD19EA3EA5B01 /* MJRefreshBackStateFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = DBDECE7F05FA473FA9192F97FF22C7BD /* MJRefreshBackStateFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tF66B2DD79BAF6F23047916BFB4C8876B /* TAPageControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E4B524F86F5E521C5152600A1162666 /* TAPageControl.m */; };\n\t\tF7B852F0917A6D6540DAB54F736D681B /* MJRefreshConst.h in Headers */ = {isa = PBXBuildFile; fileRef = 3CF21C72A121D980742810C4C001AE4F /* MJRefreshConst.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tFBAB76106B60FB9A6DC7F176D0CC2508 /* SDCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B99CCA068F3670667EA7A3A916D0C4A /* SDCollectionViewCell.m */; };\n\t\tFC214077677D4F02E03C6C85F774E028 /* MBProgressHUD-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 50BED54FA1D6256227C9ACD546992FD8 /* MBProgressHUD-dummy.m */; };\n\t\tFCAEB14193C6A07E282A55FD2D860550 /* SDImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 101E5B4C83196A5826725F76469FF22F /* SDImageCache.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tFCDDD3BC67EA205C87238A2A87D5C36C /* AFURLSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 922661DC8AEBD3B57F90FC80E211C291 /* AFURLSessionManager.m */; };\n\t\tFDF30F97BDF167F0B956DED0F2C8DA69 /* MJExtensionConst.m in Sources */ = {isa = PBXBuildFile; fileRef = 8108C4B30B8397D7FD8F1CB6B7F0C7E2 /* MJExtensionConst.m */; };\n\t\tFF1FEB28260D52C222E2F87FBBC05277 /* MJRefreshAutoFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 52B107076D94D1A7A3E71EC29BF47F00 /* MJRefreshAutoFooter.h */; settings = {ATTRIBUTES = (Public, ); }; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t1C4F21BC2FF699BFC9190F345C681BFD /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 2F99E1802D3328098F141B9C5FE66BD0;\n\t\t\tremoteInfo = SDWebImage;\n\t\t};\n\t\t353EA2E496A4771CEDADBB94DFDDB5DD /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 928353533005A4198EBDA5B700D37B64;\n\t\t\tremoteInfo = AFNetworking;\n\t\t};\n\t\t53759292D80A1072B8DAE998251C3782 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 57441E031E53B51D4E728A8C52F734FD;\n\t\t\tremoteInfo = SDCycleScrollView;\n\t\t};\n\t\t5DB5E43123DA5A30D4634213A705024C /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = FB2D445CCB0D8124808BBE68AF47222E;\n\t\t\tremoteInfo = \"SDWebImage-Category\";\n\t\t};\n\t\t655532DE004A424BBC6880C7C4F9028F /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 9EAB3E42EF957541E6C3C76D35FD008E;\n\t\t\tremoteInfo = MJExtension;\n\t\t};\n\t\t7011582A5929D67AF36CE62A3DEE54FA /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = FE2F1D7B9D9FCEA148517E4657B243F4;\n\t\t\tremoteInfo = MBProgressHUD;\n\t\t};\n\t\tAA6D4892B0C1B1EDEE93BF60E671A21B /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 2F99E1802D3328098F141B9C5FE66BD0;\n\t\t\tremoteInfo = SDWebImage;\n\t\t};\n\t\tEC730CA0A1E9B39B768F3AD1F0236447 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 8F74D9EA91F4C43190670066BAC37D44;\n\t\t\tremoteInfo = MJRefresh;\n\t\t};\n\t\tF886CF12A711F384218C29265E7200AE /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 2F99E1802D3328098F141B9C5FE66BD0;\n\t\t\tremoteInfo = SDWebImage;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t00E393B2E91830D68DCFE8CE0AAC3BBD /* SDWebImage-Category-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"SDWebImage-Category-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\t02A119D7BAE6CD9941B7D67C52DDC9EF /* AFAutoPurgingImageCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFAutoPurgingImageCache.h; path = \"UIKit+AFNetworking/AFAutoPurgingImageCache.h\"; sourceTree = \"<group>\"; };\n\t\t03742261C62CF9EF6DFD2F0417D80083 /* Pods-SYStickHeaderWaterFallUITests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"Pods-SYStickHeaderWaterFallUITests-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t03780F0B03134FE9FFFCEAD644AE5D6F /* NSString+MJExtension.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSString+MJExtension.h\"; path = \"MJExtension/NSString+MJExtension.h\"; sourceTree = \"<group>\"; };\n\t\t03E5B1A5E72B9A4845264FF4C6ACB4D4 /* AFURLResponseSerialization.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLResponseSerialization.h; path = AFNetworking/AFURLResponseSerialization.h; sourceTree = \"<group>\"; };\n\t\t04539333D3FCDAE5DA25C11B3256AD3F /* TAAbstractDotView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = TAAbstractDotView.h; path = SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAAbstractDotView.h; sourceTree = \"<group>\"; };\n\t\t0473B6F3EBE1F7FFB0F730A5E2009C30 /* MJPropertyKey.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJPropertyKey.m; path = MJExtension/MJPropertyKey.m; sourceTree = \"<group>\"; };\n\t\t0949EFD213421A8F6A1D3649D143FA98 /* SDWebImageDownloaderOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDownloaderOperation.h; path = SDWebImage/SDWebImageDownloaderOperation.h; sourceTree = \"<group>\"; };\n\t\t09A2DC3ACB712C1E011E10289B12CFED /* UIImageView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIImageView+AFNetworking.h\"; path = \"UIKit+AFNetworking/UIImageView+AFNetworking.h\"; sourceTree = \"<group>\"; };\n\t\t0A456706C234210666DBA7A2B7822CD0 /* UIWebView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIWebView+AFNetworking.h\"; path = \"UIKit+AFNetworking/UIWebView+AFNetworking.h\"; sourceTree = \"<group>\"; };\n\t\t0A8445FFB949AF997A6ACBE3B5CB43BD /* AFImageDownloader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFImageDownloader.h; path = \"UIKit+AFNetworking/AFImageDownloader.h\"; sourceTree = \"<group>\"; };\n\t\t0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };\n\t\t0BDABBE4C65721E454EC53E45EDF8D79 /* UIKit+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIKit+AFNetworking.h\"; path = \"UIKit+AFNetworking/UIKit+AFNetworking.h\"; sourceTree = \"<group>\"; };\n\t\t0CAD04150C521CB416A7294CCEBCDC47 /* MJRefreshFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshFooter.m; path = MJRefresh/Base/MJRefreshFooter.m; sourceTree = \"<group>\"; };\n\t\t0D970CF873FFC1CDEBF9DC8DB2E5FEEB /* MBProgressHUD.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = MBProgressHUD.m; sourceTree = \"<group>\"; };\n\t\t0E9BECB543E1A213BC42C19EFB0A3087 /* MJRefreshBackGifFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshBackGifFooter.h; path = MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h; sourceTree = \"<group>\"; };\n\t\t0F82C77B214AB33CD5DB5FF1E2B34D61 /* UIScrollView+MJRefresh.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIScrollView+MJRefresh.m\"; path = \"MJRefresh/UIScrollView+MJRefresh.m\"; sourceTree = \"<group>\"; };\n\t\t101E5B4C83196A5826725F76469FF22F /* SDImageCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDImageCache.h; path = SDWebImage/SDImageCache.h; sourceTree = \"<group>\"; };\n\t\t11807D73A4B41757F9456BA20C38168A /* MJRefreshAutoNormalFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshAutoNormalFooter.m; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.m; sourceTree = \"<group>\"; };\n\t\t1392750019EF6536152D702AF6D876F2 /* SDWebImageManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageManager.m; path = SDWebImage/SDWebImageManager.m; sourceTree = \"<group>\"; };\n\t\t155F407630013064E0F413475CE46ABE /* UIImageView+WebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIImageView+WebCache.h\"; path = \"SDWebImage/UIImageView+WebCache.h\"; sourceTree = \"<group>\"; };\n\t\t1778F8F6390659B8DF8BD520AEAE4D39 /* MJRefresh-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"MJRefresh-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t1A7DD86BCEC210D5368C18BC116B59CE /* Pods-SYStickHeaderWaterFallUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-SYStickHeaderWaterFallUITests.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t1AC59D480396FB5209E2CA1FB16A9606 /* MJRefreshAutoNormalFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshAutoNormalFooter.h; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h; sourceTree = \"<group>\"; };\n\t\t1BB8A6395197210DF05AE7A64BD47C07 /* libPods-SYStickHeaderWaterFall.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-SYStickHeaderWaterFall.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t1C27A28882A0E23C87BB63BC93351A90 /* AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworking.h; path = AFNetworking/AFNetworking.h; sourceTree = \"<group>\"; };\n\t\t1C2F91B394C490EAF39D07D9F65558CF /* lk_click_image@3x.png */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = image.png; name = \"lk_click_image@3x.png\"; path = \"SDWebImage-Category/Resource/lk_click_image@3x.png\"; sourceTree = \"<group>\"; };\n\t\t1DD017E66994647329B47EBDA0107D1E /* UIView+SDExtension.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIView+SDExtension.h\"; path = \"SDCycleScrollView/Lib/SDCycleScrollView/UIView+SDExtension.h\"; sourceTree = \"<group>\"; };\n\t\t1FFFFD7D8CB9BB74DF72EAB59239766E /* libSDWebImage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDWebImage.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t2782017DE5C4BCD8D64F278D17230EF5 /* UIScrollView+MJExtension.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIScrollView+MJExtension.h\"; path = \"MJRefresh/UIScrollView+MJExtension.h\"; sourceTree = \"<group>\"; };\n\t\t29E8CCF9B96FD9C94DC8B8A7F388E272 /* libAFNetworking.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAFNetworking.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t2A5316B7D34B978E6F16F8A25E58D1D2 /* MJExtension.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MJExtension.xcconfig; sourceTree = \"<group>\"; };\n\t\t2A7EAD119E28A5FEDFBE6A040657D4B4 /* NSObject+MJCoding.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSObject+MJCoding.h\"; path = \"MJExtension/NSObject+MJCoding.h\"; sourceTree = \"<group>\"; };\n\t\t2AF8DE891583820DC0F8F8FF51B2736F /* AFAutoPurgingImageCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFAutoPurgingImageCache.m; path = \"UIKit+AFNetworking/AFAutoPurgingImageCache.m\"; sourceTree = \"<group>\"; };\n\t\t2EA15D5327C61CEAA65DB157C0F6EF7A /* SDCollectionViewCell.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDCollectionViewCell.h; path = SDCycleScrollView/Lib/SDCycleScrollView/SDCollectionViewCell.h; sourceTree = \"<group>\"; };\n\t\t2EAA81D63912C5FF94B4C0923ADD4B47 /* SDWebImageDownloader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDownloader.m; path = SDWebImage/SDWebImageDownloader.m; sourceTree = \"<group>\"; };\n\t\t2FBEAB39E21620D8C74339432009E07C /* MJRefreshFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshFooter.h; path = MJRefresh/Base/MJRefreshFooter.h; sourceTree = \"<group>\"; };\n\t\t30AC3FBF1F9DB2526398F4B47E48B4D3 /* libSDCycleScrollView.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDCycleScrollView.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t30F0D210AA13D26BDEC908885FE9885C /* TADotView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = TADotView.m; path = SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TADotView.m; sourceTree = \"<group>\"; };\n\t\t315AB9B67170328C1C82D4631C0B8BCD /* MJExtension-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"MJExtension-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\t3330D9B7CF2BD148AD73E66F1C0281AB /* UIScrollView+MJRefresh.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIScrollView+MJRefresh.h\"; path = \"MJRefresh/UIScrollView+MJRefresh.h\"; sourceTree = \"<group>\"; };\n\t\t3674329FDF34F83F9A0A598909C767D1 /* SDWebImageDownloader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDownloader.h; path = SDWebImage/SDWebImageDownloader.h; sourceTree = \"<group>\"; };\n\t\t372AB1B94903F0986874CA523F12D64B /* libSDWebImage-Category.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libSDWebImage-Category.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t397506CB5949E92F27532829BE99E5A4 /* UIImage+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIImage+AFNetworking.h\"; path = \"UIKit+AFNetworking/UIImage+AFNetworking.h\"; sourceTree = \"<group>\"; };\n\t\t3A5566E3DC969CB6C6ED902E88BCA69C /* AFSecurityPolicy.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFSecurityPolicy.h; path = AFNetworking/AFSecurityPolicy.h; sourceTree = \"<group>\"; };\n\t\t3A5FE3A3B2F50E3BE95422663F5F73A2 /* UIImage+MultiFormat.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIImage+MultiFormat.m\"; path = \"SDWebImage/UIImage+MultiFormat.m\"; sourceTree = \"<group>\"; };\n\t\t3B8E1FDD20E8E8C3B400B67BF3A37494 /* libMJExtension.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMJExtension.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t3CF21C72A121D980742810C4C001AE4F /* MJRefreshConst.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshConst.h; path = MJRefresh/MJRefreshConst.h; sourceTree = \"<group>\"; };\n\t\t3D1E8559BD812F4BA5C45D5265974C36 /* Pods-SYStickHeaderWaterFall.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-SYStickHeaderWaterFall.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t3FBEBC2EACFC9FFD6E83927B9C15B618 /* UIView+SDExtension.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIView+SDExtension.m\"; path = \"SDCycleScrollView/Lib/SDCycleScrollView/UIView+SDExtension.m\"; sourceTree = \"<group>\"; };\n\t\t3FFF0047291EB6C09B86A5E0D5CF50CB /* AFURLSessionManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLSessionManager.h; path = AFNetworking/AFURLSessionManager.h; sourceTree = \"<group>\"; };\n\t\t403428382D57A354D132C9B58242B330 /* MJRefreshGifHeader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshGifHeader.m; path = MJRefresh/Custom/Header/MJRefreshGifHeader.m; sourceTree = \"<group>\"; };\n\t\t44159F705C59F8D127435381A967C39F /* MJRefreshAutoStateFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshAutoStateFooter.h; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h; sourceTree = \"<group>\"; };\n\t\t441FB5DFA66FF4B83003B096D5F6B6B3 /* SDWebImageCompat.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageCompat.h; path = SDWebImage/SDWebImageCompat.h; sourceTree = \"<group>\"; };\n\t\t44C70F766A438C03A9EB908E8B924D79 /* Pods-SYStickHeaderWaterFall-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = \"Pods-SYStickHeaderWaterFall-acknowledgements.markdown\"; sourceTree = \"<group>\"; };\n\t\t456D94174B914D8FB47EF17D19923BDE /* MJRefreshAutoGifFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshAutoGifFooter.h; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h; sourceTree = \"<group>\"; };\n\t\t46FF877C8D42B67574AB8F74D16EB2C2 /* MBProgressHUD.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MBProgressHUD.xcconfig; sourceTree = \"<group>\"; };\n\t\t47F7E9D29CB8C01E70280774EADE72BA /* MJRefreshComponent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshComponent.h; path = MJRefresh/Base/MJRefreshComponent.h; sourceTree = \"<group>\"; };\n\t\t497F5A6ED2F2E9E62C2251F1F49D02FF /* SDWebImageDecoder.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDecoder.m; path = SDWebImage/SDWebImageDecoder.m; sourceTree = \"<group>\"; };\n\t\t49E41B87DA6A8A81C5991653484F13B5 /* MJRefreshAutoGifFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshAutoGifFooter.m; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.m; sourceTree = \"<group>\"; };\n\t\t4A87D7957F14C025FAA142265C6C4BF3 /* MJRefresh.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MJRefresh.xcconfig; sourceTree = \"<group>\"; };\n\t\t4B99CCA068F3670667EA7A3A916D0C4A /* SDCollectionViewCell.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDCollectionViewCell.m; path = SDCycleScrollView/Lib/SDCycleScrollView/SDCollectionViewCell.m; sourceTree = \"<group>\"; };\n\t\t4E4B524F86F5E521C5152600A1162666 /* TAPageControl.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = TAPageControl.m; path = SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAPageControl.m; sourceTree = \"<group>\"; };\n\t\t508FD5C42977604389820DBF293F128C /* Pods-SYStickHeaderWaterFallUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-SYStickHeaderWaterFallUITests.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t50936F863B83FB93C15DD9D1FE19D935 /* UIView+MJExtension.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIView+MJExtension.m\"; path = \"MJRefresh/UIView+MJExtension.m\"; sourceTree = \"<group>\"; };\n\t\t50BED54FA1D6256227C9ACD546992FD8 /* MBProgressHUD-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"MBProgressHUD-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t512BCA86692301FB997323E634910FDB /* Pods-SYStickHeaderWaterFallTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-SYStickHeaderWaterFallTests.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t52B107076D94D1A7A3E71EC29BF47F00 /* MJRefreshAutoFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshAutoFooter.h; path = MJRefresh/Base/MJRefreshAutoFooter.h; sourceTree = \"<group>\"; };\n\t\t52DD0022EA097581D32265EABF8AB646 /* SDImageCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDImageCache.m; path = SDWebImage/SDImageCache.m; sourceTree = \"<group>\"; };\n\t\t53D896996B9B312951AAEF7B746E2AC7 /* MJRefreshNormalHeader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshNormalHeader.h; path = MJRefresh/Custom/Header/MJRefreshNormalHeader.h; sourceTree = \"<group>\"; };\n\t\t5758F0CFCAB0AFA80E30B746DC0BC2C0 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; };\n\t\t5804A46CD9C1DFC31AC7649EEF1D248F /* MJExtension.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJExtension.h; path = MJExtension/MJExtension.h; sourceTree = \"<group>\"; };\n\t\t5859036282ADFFF9E3C82DD6EB2CED52 /* UIProgressView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIProgressView+AFNetworking.m\"; path = \"UIKit+AFNetworking/UIProgressView+AFNetworking.m\"; sourceTree = \"<group>\"; };\n\t\t588E9A54D029E8C3DDDBB0D7EAE7D1E8 /* MJRefreshComponent.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshComponent.m; path = MJRefresh/Base/MJRefreshComponent.m; sourceTree = \"<group>\"; };\n\t\t589BD0FA55FD6BA098B19CBC69B879DF /* UIWebView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIWebView+AFNetworking.m\"; path = \"UIKit+AFNetworking/UIWebView+AFNetworking.m\"; sourceTree = \"<group>\"; };\n\t\t599FFB75B293637728C3B7227BB3556E /* MJRefreshHeader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshHeader.h; path = MJRefresh/Base/MJRefreshHeader.h; sourceTree = \"<group>\"; };\n\t\t5B44607C6EA0B1BE7737FD0AE5E4BC35 /* SDWebImage-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"SDWebImage-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\t5E166C12CB92BDEC53107EBDACF537AC /* UIView+WebCacheOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIView+WebCacheOperation.h\"; path = \"SDWebImage/UIView+WebCacheOperation.h\"; sourceTree = \"<group>\"; };\n\t\t6108B1D895F58D4AF44C3ED218412A3D /* MJExtension-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"MJExtension-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t6424513A25D8C6E89BC58C325855307E /* lk_click_image.png */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = image.png; name = lk_click_image.png; path = \"SDWebImage-Category/Resource/lk_click_image.png\"; sourceTree = \"<group>\"; };\n\t\t6448180D051AE5735B4C2A867AE40A7D /* NSObject+MJProperty.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSObject+MJProperty.h\"; path = \"MJExtension/NSObject+MJProperty.h\"; sourceTree = \"<group>\"; };\n\t\t65327B5CF246124E29AE037C118C9470 /* SDWebImageDownloaderOperation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageDownloaderOperation.m; path = SDWebImage/SDWebImageDownloaderOperation.m; sourceTree = \"<group>\"; };\n\t\t65CD32B78502DE8022A588D379B5532D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; };\n\t\t66EE07949CB8A4CC6A459D8826F95E97 /* Pods-SYStickHeaderWaterFallTests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"Pods-SYStickHeaderWaterFallTests-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t68122BC481A576299BD4E6E4D2B922E9 /* AFNetworking-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"AFNetworking-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t689D9B45F288DB62B12B34C652BE8FF5 /* NSObject+MJClass.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSObject+MJClass.h\"; path = \"MJExtension/NSObject+MJClass.h\"; sourceTree = \"<group>\"; };\n\t\t6905DBFE962BE7E5ACBF74FB92FCBDD8 /* UIScrollView+MJExtension.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIScrollView+MJExtension.m\"; path = \"MJRefresh/UIScrollView+MJExtension.m\"; sourceTree = \"<group>\"; };\n\t\t6A21425275FFB884FF5579640AEA9981 /* UIActivityIndicatorView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIActivityIndicatorView+AFNetworking.h\"; path = \"UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h\"; sourceTree = \"<group>\"; };\n\t\t6AEE3D45E1954C6E0EA3EF81A48205B0 /* libPods-SYStickHeaderWaterFallTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-SYStickHeaderWaterFallTests.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t6D04701D07DAB8E699783B6A52AB7CC4 /* Pods-SYStickHeaderWaterFallTests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-SYStickHeaderWaterFallTests-frameworks.sh\"; sourceTree = \"<group>\"; };\n\t\t6D054D1353A112CF251AA14747BA8E5A /* UIButton+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIButton+AFNetworking.m\"; path = \"UIKit+AFNetworking/UIButton+AFNetworking.m\"; sourceTree = \"<group>\"; };\n\t\t6D796F9BAC2654B346387BCF47294826 /* SDWebImage-Category-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"SDWebImage-Category-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t6F59847F2E0058F66104EE94E7DFFD94 /* Pods-SYStickHeaderWaterFall.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-SYStickHeaderWaterFall.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t7122328073A5D1983E075C0F07530B17 /* AFNetworkActivityIndicatorManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworkActivityIndicatorManager.h; path = \"UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h\"; sourceTree = \"<group>\"; };\n\t\t717B65A57C8BB984049B5F5F5195C35D /* AFURLRequestSerialization.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLRequestSerialization.h; path = AFNetworking/AFURLRequestSerialization.h; sourceTree = \"<group>\"; };\n\t\t7191EF7C89A8002729ACFECA8AA5AFC7 /* UIButton+WebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIButton+WebCache.h\"; path = \"SDWebImage/UIButton+WebCache.h\"; sourceTree = \"<group>\"; };\n\t\t7AB9AA6F0DA2B9A05CF9693B405ABA51 /* SDWebImageCompat.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImageCompat.m; path = SDWebImage/SDWebImageCompat.m; sourceTree = \"<group>\"; };\n\t\t7E7FD4E609EABB0B02D60CE606C97642 /* MJFoundation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJFoundation.h; path = MJExtension/MJFoundation.h; sourceTree = \"<group>\"; };\n\t\t7FEACAE89E0C0908EB67F604B6D2AE96 /* SDWebImagePrefetcher.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImagePrefetcher.h; path = SDWebImage/SDWebImagePrefetcher.h; sourceTree = \"<group>\"; };\n\t\t805B4957F1242DCE608C62F31063A86B /* Pods-SYStickHeaderWaterFallUITests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = \"Pods-SYStickHeaderWaterFallUITests-acknowledgements.plist\"; sourceTree = \"<group>\"; };\n\t\t8108C4B30B8397D7FD8F1CB6B7F0C7E2 /* MJExtensionConst.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJExtensionConst.m; path = MJExtension/MJExtensionConst.m; sourceTree = \"<group>\"; };\n\t\t841AE75C53F4C2EF864EBA3145631330 /* libMBProgressHUD.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMBProgressHUD.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t8754F6756CEA50ACF82BBD4FCDD5DB0C /* Pods-SYStickHeaderWaterFallUITests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-SYStickHeaderWaterFallUITests-frameworks.sh\"; sourceTree = \"<group>\"; };\n\t\t8768BBC5EB6C8641A9B8BF5213B51448 /* AFHTTPSessionManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFHTTPSessionManager.h; path = AFNetworking/AFHTTPSessionManager.h; sourceTree = \"<group>\"; };\n\t\t87A30B0D21A171A9AA4C26BCCF9BFDE8 /* Pods-SYStickHeaderWaterFall-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"Pods-SYStickHeaderWaterFall-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t87C9E80A9E3CA944D0A6E3CFEEFA621E /* TADotView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = TADotView.h; path = SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TADotView.h; sourceTree = \"<group>\"; };\n\t\t89FA2294A27F487D4FCFD1990476B061 /* MJExtensionConst.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJExtensionConst.h; path = MJExtension/MJExtensionConst.h; sourceTree = \"<group>\"; };\n\t\t8A7BAECDE8341CD38FE0F9169F01B226 /* TAAnimatedDotView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = TAAnimatedDotView.h; path = SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAAnimatedDotView.h; sourceTree = \"<group>\"; };\n\t\t8A964119DA1B686740FF9873E494A70D /* MJRefresh-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"MJRefresh-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\t8CB42092EA5F5E6069B32BAB8509F5D9 /* NSString+MJExtension.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"NSString+MJExtension.m\"; path = \"MJExtension/NSString+MJExtension.m\"; sourceTree = \"<group>\"; };\n\t\t8FA06799CD75D317DC3B9BA01C72C379 /* MJRefreshBackFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshBackFooter.m; path = MJRefresh/Base/MJRefreshBackFooter.m; sourceTree = \"<group>\"; };\n\t\t922661DC8AEBD3B57F90FC80E211C291 /* AFURLSessionManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLSessionManager.m; path = AFNetworking/AFURLSessionManager.m; sourceTree = \"<group>\"; };\n\t\t94B6C85F7982F09D41478019A9CE088D /* AFURLResponseSerialization.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLResponseSerialization.m; path = AFNetworking/AFURLResponseSerialization.m; sourceTree = \"<group>\"; };\n\t\t954DA0D7E530C7DB2E5CCF831A80CBFF /* MBProgressHUD-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"MBProgressHUD-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\t9564FF1FC03E2FAE8DA08E9CEC284AB6 /* LK_THProgressView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = LK_THProgressView.m; path = \"SDWebImage-Category/THProgressView/LK_THProgressView.m\"; sourceTree = \"<group>\"; };\n\t\t959AE308BD52E8E5F876B01611A39350 /* UIView+MJExtension.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIView+MJExtension.h\"; path = \"MJRefresh/UIView+MJExtension.h\"; sourceTree = \"<group>\"; };\n\t\t966948767C8B3F611003DBFF222B36FB /* MJRefreshConst.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshConst.m; path = MJRefresh/MJRefreshConst.m; sourceTree = \"<group>\"; };\n\t\t96BC8B973C99C40FD9F4BCB661B90395 /* UIImageView+LK.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIImageView+LK.h\"; path = \"SDWebImage-Category/UIImageView+LK.h\"; sourceTree = \"<group>\"; };\n\t\t96D944C65CB52A5C93DCC5A1C1C340F9 /* UIButton+WebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIButton+WebCache.m\"; path = \"SDWebImage/UIButton+WebCache.m\"; sourceTree = \"<group>\"; };\n\t\t9738F853E1FE9B6736FA12D854F2C162 /* TAAbstractDotView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = TAAbstractDotView.m; path = SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAAbstractDotView.m; sourceTree = \"<group>\"; };\n\t\t99010AC36EC6663638D112BD78C82F98 /* UIImageView+WebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIImageView+WebCache.m\"; path = \"SDWebImage/UIImageView+WebCache.m\"; sourceTree = \"<group>\"; };\n\t\t9997B97EA40B2B39230EA13F46530DE1 /* lk_click_image@2x.png */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = image.png; name = \"lk_click_image@2x.png\"; path = \"SDWebImage-Category/Resource/lk_click_image@2x.png\"; sourceTree = \"<group>\"; };\n\t\t9A28E737006F7F01A56B439F0E736388 /* AFNetworkReachabilityManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworkReachabilityManager.h; path = AFNetworking/AFNetworkReachabilityManager.h; sourceTree = \"<group>\"; };\n\t\t9AC5588EE1921EE2E899F8EFDBCC34BE /* MJRefreshBackStateFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshBackStateFooter.m; path = MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.m; sourceTree = \"<group>\"; };\n\t\t9ACD094F75741F00D699FF9AFBD9CFCA /* SDWebImageOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageOperation.h; path = SDWebImage/SDWebImageOperation.h; sourceTree = \"<group>\"; };\n\t\t9BE3C5AFBB0253AD08E930FF03ED446E /* SDWebImageManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageManager.h; path = SDWebImage/SDWebImageManager.h; sourceTree = \"<group>\"; };\n\t\t9E3A01D07FB5260111DB77D173201C38 /* UIActivityIndicatorView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIActivityIndicatorView+AFNetworking.m\"; path = \"UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m\"; sourceTree = \"<group>\"; };\n\t\t9E4013995CF501DD31408485AFAC2582 /* SDWebImage-Category.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"SDWebImage-Category.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t9F0911910E70B06CB37748B622096558 /* MJProperty.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJProperty.h; path = MJExtension/MJProperty.h; sourceTree = \"<group>\"; };\n\t\tA153E078D1BFA11B4A32E315C5B34B05 /* lk_noimage.png */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = image.png; name = lk_noimage.png; path = \"SDWebImage-Category/Resource/lk_noimage.png\"; sourceTree = \"<group>\"; };\n\t\tA4756D4E02C46747F874C36DE8EFFF4C /* NSObject+MJKeyValue.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSObject+MJKeyValue.h\"; path = \"MJExtension/NSObject+MJKeyValue.h\"; sourceTree = \"<group>\"; };\n\t\tA5645621E2928E47DF187110CFE2FD93 /* Pods-SYStickHeaderWaterFallTests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = \"Pods-SYStickHeaderWaterFallTests-acknowledgements.markdown\"; sourceTree = \"<group>\"; };\n\t\tA63C36BF4857664C0D8B3E77B9120F71 /* MJRefreshBackFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshBackFooter.h; path = MJRefresh/Base/MJRefreshBackFooter.h; sourceTree = \"<group>\"; };\n\t\tA702D8C9625800EB7AF83214935DAC22 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/MobileCoreServices.framework; sourceTree = DEVELOPER_DIR; };\n\t\tA975B8B4818E704941B144C8956F1A0F /* SDCycleScrollView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"SDCycleScrollView-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\tAAFC776D91F4FC55AFB65E08F047C80F /* UIImageView+LK.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIImageView+LK.m\"; path = \"SDWebImage-Category/UIImageView+LK.m\"; sourceTree = \"<group>\"; };\n\t\tAE525EC93CC874875F8BEA64AC78905D /* MJRefresh.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefresh.h; path = MJRefresh/MJRefresh.h; sourceTree = \"<group>\"; };\n\t\tAE82185CD2C0772573CDE56E2EC19525 /* UIRefreshControl+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIRefreshControl+AFNetworking.m\"; path = \"UIKit+AFNetworking/UIRefreshControl+AFNetworking.m\"; sourceTree = \"<group>\"; };\n\t\tAF73E895D20B45D047FF2E701BB2301D /* MJRefreshStateHeader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshStateHeader.h; path = MJRefresh/Custom/Header/MJRefreshStateHeader.h; sourceTree = \"<group>\"; };\n\t\tAFCF476E4EE3DBCA9EE046DBCA883E6D /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; };\n\t\tB162443D4C557BB9F3E1F63E3D49F3B4 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIImageView+AFNetworking.m\"; path = \"UIKit+AFNetworking/UIImageView+AFNetworking.m\"; sourceTree = \"<group>\"; };\n\t\tB192233FBB61784EBC1EA30869D8F07A /* MJRefreshAutoFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshAutoFooter.m; path = MJRefresh/Base/MJRefreshAutoFooter.m; sourceTree = \"<group>\"; };\n\t\tB3050C2F51CE1BD66414FCEA30969F83 /* MJRefreshGifHeader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshGifHeader.h; path = MJRefresh/Custom/Header/MJRefreshGifHeader.h; sourceTree = \"<group>\"; };\n\t\tB38F63AF2EB9254956F3E981AEA85F53 /* AFImageDownloader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFImageDownloader.m; path = \"UIKit+AFNetworking/AFImageDownloader.m\"; sourceTree = \"<group>\"; };\n\t\tB395737299D7120E9ED5EAD2456C2694 /* NSObject+MJCoding.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"NSObject+MJCoding.m\"; path = \"MJExtension/NSObject+MJCoding.m\"; sourceTree = \"<group>\"; };\n\t\tB4A882AB3EC99CA1333907E68CA2F825 /* NSObject+MJClass.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"NSObject+MJClass.m\"; path = \"MJExtension/NSObject+MJClass.m\"; sourceTree = \"<group>\"; };\n\t\tB5291D69BF8F6E4D660E1F3F4EF2D109 /* LK_THProgressView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = LK_THProgressView.h; path = \"SDWebImage-Category/THProgressView/LK_THProgressView.h\"; sourceTree = \"<group>\"; };\n\t\tB55809DE336BE3076ACFC6F221779BED /* SDWebImageDecoder.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDWebImageDecoder.h; path = SDWebImage/SDWebImageDecoder.h; sourceTree = \"<group>\"; };\n\t\tB5956059A332D1FED3512F7A54785C11 /* MJFoundation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJFoundation.m; path = MJExtension/MJFoundation.m; sourceTree = \"<group>\"; };\n\t\tB67E732031A8F8CB87204F73A1565F72 /* TAAnimatedDotView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = TAAnimatedDotView.m; path = SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAAnimatedDotView.m; sourceTree = \"<group>\"; };\n\t\tB7A2490C7BEF1E4E8CB66AEB60B3FFE4 /* Pods-SYStickHeaderWaterFallUITests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-SYStickHeaderWaterFallUITests-resources.sh\"; sourceTree = \"<group>\"; };\n\t\tBA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };\n\t\tBB05D3A6680AE2AB69FA7AF872BF5EAE /* MJPropertyKey.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJPropertyKey.h; path = MJExtension/MJPropertyKey.h; sourceTree = \"<group>\"; };\n\t\tBB2992B50C2FC9943F796F2E3671DA10 /* SDWebImage.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SDWebImage.xcconfig; sourceTree = \"<group>\"; };\n\t\tBDBCEA15C81A6F63159634989376EAE5 /* MJPropertyType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJPropertyType.h; path = MJExtension/MJPropertyType.h; sourceTree = \"<group>\"; };\n\t\tBE945C926FF3A36E4E456A69EB9789BE /* AFNetworking-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"AFNetworking-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\tC064A4C8D5CC9B32E4CBDA7935CB074E /* AFSecurityPolicy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFSecurityPolicy.m; path = AFNetworking/AFSecurityPolicy.m; sourceTree = \"<group>\"; };\n\t\tC1A7E81A9399EDBC165BF84D27FD6C90 /* NSObject+MJProperty.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"NSObject+MJProperty.m\"; path = \"MJExtension/NSObject+MJProperty.m\"; sourceTree = \"<group>\"; };\n\t\tC4E13EE5B3D2479CEEC482ECD8730C7E /* MJRefreshStateHeader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshStateHeader.m; path = MJRefresh/Custom/Header/MJRefreshStateHeader.m; sourceTree = \"<group>\"; };\n\t\tC558684FD8967F7BD6AC1BCB8D6044A5 /* UIImage+GIF.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIImage+GIF.m\"; path = \"SDWebImage/UIImage+GIF.m\"; sourceTree = \"<group>\"; };\n\t\tC6F9BE67AFCF0F475749FCF3F37D9B9F /* MBProgressHUD.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = MBProgressHUD.h; sourceTree = \"<group>\"; };\n\t\tC7BA3D8FBE6C0BBD656889B880F545C1 /* MJRefreshNormalHeader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshNormalHeader.m; path = MJRefresh/Custom/Header/MJRefreshNormalHeader.m; sourceTree = \"<group>\"; };\n\t\tC9C58AF6CE1E7EF70249FCC5EF1775FC /* UIImageView+HighlightedWebCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIImageView+HighlightedWebCache.m\"; path = \"SDWebImage/UIImageView+HighlightedWebCache.m\"; sourceTree = \"<group>\"; };\n\t\tC9EEE8A16B549D492189ADED065DCD69 /* MJPropertyType.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJPropertyType.m; path = MJExtension/MJPropertyType.m; sourceTree = \"<group>\"; };\n\t\tCB3E8450B827F5CC531FAF520B158DD0 /* SDCycleScrollView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SDCycleScrollView.h; path = SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h; sourceTree = \"<group>\"; };\n\t\tCBABE0EE0F06A5277197E7C0F9BD694F /* AFNetworkActivityIndicatorManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFNetworkActivityIndicatorManager.m; path = \"UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m\"; sourceTree = \"<group>\"; };\n\t\tCBB82A9DB1632B0D2A824AB7BF42D548 /* AFURLRequestSerialization.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLRequestSerialization.m; path = AFNetworking/AFURLRequestSerialization.m; sourceTree = \"<group>\"; };\n\t\tCBE49A77B30D9FC71CB6B0311C50C6F6 /* NSData+ImageContentType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"NSData+ImageContentType.h\"; path = \"SDWebImage/NSData+ImageContentType.h\"; sourceTree = \"<group>\"; };\n\t\tCCA62C665BC79E62000D026EB74E9127 /* MJRefreshBackGifFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshBackGifFooter.m; path = MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.m; sourceTree = \"<group>\"; };\n\t\tCF3E979A2EAFF132B9D8C68C2844CFA1 /* MJRefreshBackNormalFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshBackNormalFooter.h; path = MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h; sourceTree = \"<group>\"; };\n\t\tD0E926ECFE4B4FA91FFDA100AEDC704F /* TAPageControl.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = TAPageControl.h; path = SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAPageControl.h; sourceTree = \"<group>\"; };\n\t\tD0F1669723EFB2EFF6BF3121809EFF71 /* UIImage+GIF.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIImage+GIF.h\"; path = \"SDWebImage/UIImage+GIF.h\"; sourceTree = \"<group>\"; };\n\t\tD163305209FF154BEE670F2ECA82458D /* lk_noimage@2x.png */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = image.png; name = \"lk_noimage@2x.png\"; path = \"SDWebImage-Category/Resource/lk_noimage@2x.png\"; sourceTree = \"<group>\"; };\n\t\tD29E5B2D41695DD6354252074013EDF8 /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/ImageIO.framework; sourceTree = DEVELOPER_DIR; };\n\t\tD392F51B01BB0FA09E7D7766EE27C558 /* AFNetworking.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AFNetworking.xcconfig; sourceTree = \"<group>\"; };\n\t\tD48DB53FE1FFFA23CE16FEB6FFBBC44C /* MJRefresh.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = \"wrapper.plug-in\"; name = MJRefresh.bundle; path = MJRefresh/MJRefresh.bundle; sourceTree = \"<group>\"; };\n\t\tD4F4C48C7FCF63290D515593353CEED0 /* AFHTTPSessionManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFHTTPSessionManager.m; path = AFNetworking/AFHTTPSessionManager.m; sourceTree = \"<group>\"; };\n\t\tD5FE7E72C5BA14788EC2B0EE0E94D95E /* SDCycleScrollView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SDCycleScrollView.xcconfig; sourceTree = \"<group>\"; };\n\t\tD657FCEEF39DC7FB63CA96B28BA1C4AA /* MJRefreshAutoStateFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshAutoStateFooter.m; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.m; sourceTree = \"<group>\"; };\n\t\tD76136C548459FAC36F33BC55825B424 /* MJProperty.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJProperty.m; path = MJExtension/MJProperty.m; sourceTree = \"<group>\"; };\n\t\tD7BD0FF148B72404757C7E71939BE0D5 /* SDCycleScrollView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDCycleScrollView.m; path = SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m; sourceTree = \"<group>\"; };\n\t\tD91DA76594FD709E835C53732679AAC5 /* Pods-SYStickHeaderWaterFallTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-SYStickHeaderWaterFallTests.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\tD9CD49ABAEDA6468FACA929315F6110B /* UIImageView+HighlightedWebCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIImageView+HighlightedWebCache.h\"; path = \"SDWebImage/UIImageView+HighlightedWebCache.h\"; sourceTree = \"<group>\"; };\n\t\tDA03FC6C6AE92B2E137584A5EE4C8813 /* UIRefreshControl+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIRefreshControl+AFNetworking.h\"; path = \"UIKit+AFNetworking/UIRefreshControl+AFNetworking.h\"; sourceTree = \"<group>\"; };\n\t\tDBDECE7F05FA473FA9192F97FF22C7BD /* MJRefreshBackStateFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshBackStateFooter.h; path = MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h; sourceTree = \"<group>\"; };\n\t\tDC6690F69BC098EF61540DAA24C44DAC /* SDCycleScrollView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"SDCycleScrollView-dummy.m\"; sourceTree = \"<group>\"; };\n\t\tDFA72BF7013C392B1B19E28ACCE570E2 /* NSData+ImageContentType.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"NSData+ImageContentType.m\"; path = \"SDWebImage/NSData+ImageContentType.m\"; sourceTree = \"<group>\"; };\n\t\tE2411100641D9BA56663CA21170F3491 /* NSObject+MJKeyValue.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"NSObject+MJKeyValue.m\"; path = \"MJExtension/NSObject+MJKeyValue.m\"; sourceTree = \"<group>\"; };\n\t\tE436230F7960FA07CDD51216481E9E09 /* MJRefreshBackNormalFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshBackNormalFooter.m; path = MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.m; sourceTree = \"<group>\"; };\n\t\tE97E06F9B0A5CEB483A2B2851C9F290E /* libPods-SYStickHeaderWaterFallUITests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-SYStickHeaderWaterFallUITests.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tEB7F778A0F003469B8011D28DC8F2560 /* UIView+WebCacheOperation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = \"UIView+WebCacheOperation.m\"; path = \"SDWebImage/UIView+WebCacheOperation.m\"; sourceTree = \"<group>\"; };\n\t\tEF002E91C9DDC4F11DDF4E1B4508CF32 /* Pods-SYStickHeaderWaterFallTests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-SYStickHeaderWaterFallTests-resources.sh\"; sourceTree = \"<group>\"; };\n\t\tF0950102ECE525B6A4D603ABCB969200 /* Pods-SYStickHeaderWaterFallTests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = \"Pods-SYStickHeaderWaterFallTests-acknowledgements.plist\"; sourceTree = \"<group>\"; };\n\t\tF11E9C75D5962EA715CB4E88DE401A79 /* Pods-SYStickHeaderWaterFall-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = \"Pods-SYStickHeaderWaterFall-acknowledgements.plist\"; sourceTree = \"<group>\"; };\n\t\tF3E8AEC3D8A0F3E561041734367D2752 /* Pods-SYStickHeaderWaterFall-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-SYStickHeaderWaterFall-frameworks.sh\"; sourceTree = \"<group>\"; };\n\t\tF4DE7C1D1391BC28AF4AA853F4677131 /* UIButton+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIButton+AFNetworking.h\"; path = \"UIKit+AFNetworking/UIButton+AFNetworking.h\"; sourceTree = \"<group>\"; };\n\t\tF5177D5C5DF17862B7BD77E982864F05 /* MJRefreshHeader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshHeader.m; path = MJRefresh/Base/MJRefreshHeader.m; sourceTree = \"<group>\"; };\n\t\tF54B7FEE0771EC0497F18DD0FFE2B1AC /* Pods-SYStickHeaderWaterFall-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-SYStickHeaderWaterFall-resources.sh\"; sourceTree = \"<group>\"; };\n\t\tF820019022EE9B294327BE9AE51E4567 /* SDWebImagePrefetcher.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SDWebImagePrefetcher.m; path = SDWebImage/SDWebImagePrefetcher.m; sourceTree = \"<group>\"; };\n\t\tF9B0CD03D44E4825DB37C74816A1AF49 /* UIImage+MultiFormat.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIImage+MultiFormat.h\"; path = \"SDWebImage/UIImage+MultiFormat.h\"; sourceTree = \"<group>\"; };\n\t\tF9E2730EAB2283AB5A466B121E7F7B70 /* libMJRefresh.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMJRefresh.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tFBBB5092E5153FE9046A526CC106A7E8 /* Pods-SYStickHeaderWaterFallUITests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = \"Pods-SYStickHeaderWaterFallUITests-acknowledgements.markdown\"; sourceTree = \"<group>\"; };\n\t\tFC17D54AEDE7F447BDCCC849A947413B /* AFNetworkReachabilityManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFNetworkReachabilityManager.m; path = AFNetworking/AFNetworkReachabilityManager.m; sourceTree = \"<group>\"; };\n\t\tFC5223A138B3434A058C63E1C0140689 /* SDWebImage-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"SDWebImage-dummy.m\"; sourceTree = \"<group>\"; };\n\t\tFE77DB997D42752FB7BA90C1C8358DDF /* UIProgressView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = \"UIProgressView+AFNetworking.h\"; path = \"UIKit+AFNetworking/UIProgressView+AFNetworking.h\"; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t2AA83B78AB0AD789DD40CBFE1F5720F3 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tA7EF3F638A049856FCED241087EE43F8 /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t2C21471DC74CEB01326E46B31B7F93FB /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t4A565ADA0ED7318964AA59D0E2AE23BA /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t508C962B3E08E8DA04956BF349A3CDFD /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tBED25BC538FC164689639CC846E2CD13 /* CoreGraphics.framework in Frameworks */,\n\t\t\t\t5BED8B014D29F070D5768D8FC0D71CEC /* Foundation.framework in Frameworks */,\n\t\t\t\tA887B787CAEA0DAC5EFEF6E21F596F81 /* MobileCoreServices.framework in Frameworks */,\n\t\t\t\t64AE43216800C421E6710AC3D30E4E4D /* Security.framework in Frameworks */,\n\t\t\t\t4B310A0CC6611FC9E245A147F94D2DA1 /* SystemConfiguration.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t5DDE4ACD83B7F70091C8FAB57BC7FD37 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t9842861324B9DC6A5E7EF5EB29174B0F /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t747242460B935FEA3E994652BD8C2E0B /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t90643A68B395D365B3F266C436860F47 /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t74D76A4575BF2AC685D3E5ED4E004541 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tCE97FE5BA0E174A81960F1842C836D37 /* Foundation.framework in Frameworks */,\n\t\t\t\t9727DDB7EDF50264B2B949A6F671B8D6 /* ImageIO.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t84186DDBDF1AD8DE01D6BFC3414D2936 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tDEE9B93BB1BD09C973F16BF36CF015B6 /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE81C08F5CCC0A5FBFF4559E2173164C7 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t6F53672BC5CFE2B17E602FBECE216C77 /* CoreGraphics.framework in Frameworks */,\n\t\t\t\t935552BE0FE2E3FA49F896DEACAE5C5C /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tF5A0709EE6733899D027BC7A84A13726 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t06BBA4863915184B1225C2E6CCE61802 /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tF6AAF5593D0C5E24B3377E5C3999D0AA /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t50937BA69A14D69BBBBF8A8B69F9C6D0 /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t0BB33B9904842605990B995DB41D8E2E /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t2A5316B7D34B978E6F16F8A25E58D1D2 /* MJExtension.xcconfig */,\n\t\t\t\t6108B1D895F58D4AF44C3ED218412A3D /* MJExtension-dummy.m */,\n\t\t\t\t315AB9B67170328C1C82D4631C0B8BCD /* MJExtension-prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/MJExtension\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0F75DF6C7C5F002280EC53F48E80B587 /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t3B8B344C5E21823535A8ADF648D0C815 /* iOS */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t2094437F7862F17F61529F13356571AE /* Serialization */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t717B65A57C8BB984049B5F5F5195C35D /* AFURLRequestSerialization.h */,\n\t\t\t\tCBB82A9DB1632B0D2A824AB7BF42D548 /* AFURLRequestSerialization.m */,\n\t\t\t\t03E5B1A5E72B9A4845264FF4C6ACB4D4 /* AFURLResponseSerialization.h */,\n\t\t\t\t94B6C85F7982F09D41478019A9CE088D /* AFURLResponseSerialization.m */,\n\t\t\t);\n\t\t\tname = Serialization;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t28F539C693BE469E97BF850ECC916AD9 /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tD392F51B01BB0FA09E7D7766EE27C558 /* AFNetworking.xcconfig */,\n\t\t\t\t68122BC481A576299BD4E6E4D2B922E9 /* AFNetworking-dummy.m */,\n\t\t\t\tBE945C926FF3A36E4E456A69EB9789BE /* AFNetworking-prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/AFNetworking\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t3B8B344C5E21823535A8ADF648D0C815 /* iOS */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t65CD32B78502DE8022A588D379B5532D /* CoreGraphics.framework */,\n\t\t\t\t0B7F3218BF7EB7696F278F18DB12C14E /* Foundation.framework */,\n\t\t\t\tD29E5B2D41695DD6354252074013EDF8 /* ImageIO.framework */,\n\t\t\t\tA702D8C9625800EB7AF83214935DAC22 /* MobileCoreServices.framework */,\n\t\t\t\tAFCF476E4EE3DBCA9EE046DBCA883E6D /* Security.framework */,\n\t\t\t\t5758F0CFCAB0AFA80E30B746DC0BC2C0 /* SystemConfiguration.framework */,\n\t\t\t);\n\t\t\tname = iOS;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t3FB5C653153BBE71442904DAB484F285 /* Security */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t3A5566E3DC969CB6C6ED902E88BCA69C /* AFSecurityPolicy.h */,\n\t\t\t\tC064A4C8D5CC9B32E4CBDA7935CB074E /* AFSecurityPolicy.m */,\n\t\t\t);\n\t\t\tname = Security;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t41A8604EB6FDDD2DC869D5DDB3F7D289 /* Targets Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tA0CEAB8FF2A96F5E85590A475679D878 /* Pods-SYStickHeaderWaterFall */,\n\t\t\t\t50A4031A65B3C848591CB4F056835F01 /* Pods-SYStickHeaderWaterFallTests */,\n\t\t\t\t97802852899A9181E5B6861A3A2C448A /* Pods-SYStickHeaderWaterFallUITests */,\n\t\t\t);\n\t\t\tname = \"Targets Support Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t487E286266002801D062A8B52B63DB00 /* Resources */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tD48DB53FE1FFFA23CE16FEB6FFBBC44C /* MJRefresh.bundle */,\n\t\t\t);\n\t\t\tname = Resources;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t50A4031A65B3C848591CB4F056835F01 /* Pods-SYStickHeaderWaterFallTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tA5645621E2928E47DF187110CFE2FD93 /* Pods-SYStickHeaderWaterFallTests-acknowledgements.markdown */,\n\t\t\t\tF0950102ECE525B6A4D603ABCB969200 /* Pods-SYStickHeaderWaterFallTests-acknowledgements.plist */,\n\t\t\t\t66EE07949CB8A4CC6A459D8826F95E97 /* Pods-SYStickHeaderWaterFallTests-dummy.m */,\n\t\t\t\t6D04701D07DAB8E699783B6A52AB7CC4 /* Pods-SYStickHeaderWaterFallTests-frameworks.sh */,\n\t\t\t\tEF002E91C9DDC4F11DDF4E1B4508CF32 /* Pods-SYStickHeaderWaterFallTests-resources.sh */,\n\t\t\t\t512BCA86692301FB997323E634910FDB /* Pods-SYStickHeaderWaterFallTests.debug.xcconfig */,\n\t\t\t\tD91DA76594FD709E835C53732679AAC5 /* Pods-SYStickHeaderWaterFallTests.release.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Pods-SYStickHeaderWaterFallTests\";\n\t\t\tpath = \"Target Support Files/Pods-SYStickHeaderWaterFallTests\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t5F284859380DEE5A3E83FAF0E5ABF570 /* SDWebImage */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t849FC17F2CB6E90B0AC795518F259988 /* Core */,\n\t\t\t\tA2FB7D2CEE620FD19B355DDF00D7782A /* Support Files */,\n\t\t\t);\n\t\t\tpath = SDWebImage;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t73DD2AC16D80DB24F959E2E7C4F8F90D /* Resources */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t6424513A25D8C6E89BC58C325855307E /* lk_click_image.png */,\n\t\t\t\t9997B97EA40B2B39230EA13F46530DE1 /* lk_click_image@2x.png */,\n\t\t\t\t1C2F91B394C490EAF39D07D9F65558CF /* lk_click_image@3x.png */,\n\t\t\t\tA153E078D1BFA11B4A32E315C5B34B05 /* lk_noimage.png */,\n\t\t\t\tD163305209FF154BEE670F2ECA82458D /* lk_noimage@2x.png */,\n\t\t\t);\n\t\t\tname = Resources;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7D09A9D2A02B164495685A22C2D88262 /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9E4013995CF501DD31408485AFAC2582 /* SDWebImage-Category.xcconfig */,\n\t\t\t\t6D796F9BAC2654B346387BCF47294826 /* SDWebImage-Category-dummy.m */,\n\t\t\t\t00E393B2E91830D68DCFE8CE0AAC3BBD /* SDWebImage-Category-prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/SDWebImage-Category\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t7DB346D0F39D3F0E887471402A8071AB = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tBA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */,\n\t\t\t\t0F75DF6C7C5F002280EC53F48E80B587 /* Frameworks */,\n\t\t\t\tF25AF2CC5CE3BB4A7157FA391E95D7A5 /* Pods */,\n\t\t\t\t81C6A4E53CE2EC41CF60512999C5F893 /* Products */,\n\t\t\t\t41A8604EB6FDDD2DC869D5DDB3F7D289 /* Targets Support Files */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t81C6A4E53CE2EC41CF60512999C5F893 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t29E8CCF9B96FD9C94DC8B8A7F388E272 /* libAFNetworking.a */,\n\t\t\t\t841AE75C53F4C2EF864EBA3145631330 /* libMBProgressHUD.a */,\n\t\t\t\t3B8E1FDD20E8E8C3B400B67BF3A37494 /* libMJExtension.a */,\n\t\t\t\tF9E2730EAB2283AB5A466B121E7F7B70 /* libMJRefresh.a */,\n\t\t\t\t1BB8A6395197210DF05AE7A64BD47C07 /* libPods-SYStickHeaderWaterFall.a */,\n\t\t\t\t6AEE3D45E1954C6E0EA3EF81A48205B0 /* libPods-SYStickHeaderWaterFallTests.a */,\n\t\t\t\tE97E06F9B0A5CEB483A2B2851C9F290E /* libPods-SYStickHeaderWaterFallUITests.a */,\n\t\t\t\t30AC3FBF1F9DB2526398F4B47E48B4D3 /* libSDCycleScrollView.a */,\n\t\t\t\t1FFFFD7D8CB9BB74DF72EAB59239766E /* libSDWebImage.a */,\n\t\t\t\t372AB1B94903F0986874CA523F12D64B /* libSDWebImage-Category.a */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t849FC17F2CB6E90B0AC795518F259988 /* Core */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCBE49A77B30D9FC71CB6B0311C50C6F6 /* NSData+ImageContentType.h */,\n\t\t\t\tDFA72BF7013C392B1B19E28ACCE570E2 /* NSData+ImageContentType.m */,\n\t\t\t\t101E5B4C83196A5826725F76469FF22F /* SDImageCache.h */,\n\t\t\t\t52DD0022EA097581D32265EABF8AB646 /* SDImageCache.m */,\n\t\t\t\t441FB5DFA66FF4B83003B096D5F6B6B3 /* SDWebImageCompat.h */,\n\t\t\t\t7AB9AA6F0DA2B9A05CF9693B405ABA51 /* SDWebImageCompat.m */,\n\t\t\t\tB55809DE336BE3076ACFC6F221779BED /* SDWebImageDecoder.h */,\n\t\t\t\t497F5A6ED2F2E9E62C2251F1F49D02FF /* SDWebImageDecoder.m */,\n\t\t\t\t3674329FDF34F83F9A0A598909C767D1 /* SDWebImageDownloader.h */,\n\t\t\t\t2EAA81D63912C5FF94B4C0923ADD4B47 /* SDWebImageDownloader.m */,\n\t\t\t\t0949EFD213421A8F6A1D3649D143FA98 /* SDWebImageDownloaderOperation.h */,\n\t\t\t\t65327B5CF246124E29AE037C118C9470 /* SDWebImageDownloaderOperation.m */,\n\t\t\t\t9BE3C5AFBB0253AD08E930FF03ED446E /* SDWebImageManager.h */,\n\t\t\t\t1392750019EF6536152D702AF6D876F2 /* SDWebImageManager.m */,\n\t\t\t\t9ACD094F75741F00D699FF9AFBD9CFCA /* SDWebImageOperation.h */,\n\t\t\t\t7FEACAE89E0C0908EB67F604B6D2AE96 /* SDWebImagePrefetcher.h */,\n\t\t\t\tF820019022EE9B294327BE9AE51E4567 /* SDWebImagePrefetcher.m */,\n\t\t\t\t7191EF7C89A8002729ACFECA8AA5AFC7 /* UIButton+WebCache.h */,\n\t\t\t\t96D944C65CB52A5C93DCC5A1C1C340F9 /* UIButton+WebCache.m */,\n\t\t\t\tD0F1669723EFB2EFF6BF3121809EFF71 /* UIImage+GIF.h */,\n\t\t\t\tC558684FD8967F7BD6AC1BCB8D6044A5 /* UIImage+GIF.m */,\n\t\t\t\tF9B0CD03D44E4825DB37C74816A1AF49 /* UIImage+MultiFormat.h */,\n\t\t\t\t3A5FE3A3B2F50E3BE95422663F5F73A2 /* UIImage+MultiFormat.m */,\n\t\t\t\tD9CD49ABAEDA6468FACA929315F6110B /* UIImageView+HighlightedWebCache.h */,\n\t\t\t\tC9C58AF6CE1E7EF70249FCC5EF1775FC /* UIImageView+HighlightedWebCache.m */,\n\t\t\t\t155F407630013064E0F413475CE46ABE /* UIImageView+WebCache.h */,\n\t\t\t\t99010AC36EC6663638D112BD78C82F98 /* UIImageView+WebCache.m */,\n\t\t\t\t5E166C12CB92BDEC53107EBDACF537AC /* UIView+WebCacheOperation.h */,\n\t\t\t\tEB7F778A0F003469B8011D28DC8F2560 /* UIView+WebCacheOperation.m */,\n\t\t\t);\n\t\t\tname = Core;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t972A658355ADEAB6DA91DF616EB1E939 /* MJExtension */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5804A46CD9C1DFC31AC7649EEF1D248F /* MJExtension.h */,\n\t\t\t\t89FA2294A27F487D4FCFD1990476B061 /* MJExtensionConst.h */,\n\t\t\t\t8108C4B30B8397D7FD8F1CB6B7F0C7E2 /* MJExtensionConst.m */,\n\t\t\t\t7E7FD4E609EABB0B02D60CE606C97642 /* MJFoundation.h */,\n\t\t\t\tB5956059A332D1FED3512F7A54785C11 /* MJFoundation.m */,\n\t\t\t\t9F0911910E70B06CB37748B622096558 /* MJProperty.h */,\n\t\t\t\tD76136C548459FAC36F33BC55825B424 /* MJProperty.m */,\n\t\t\t\tBB05D3A6680AE2AB69FA7AF872BF5EAE /* MJPropertyKey.h */,\n\t\t\t\t0473B6F3EBE1F7FFB0F730A5E2009C30 /* MJPropertyKey.m */,\n\t\t\t\tBDBCEA15C81A6F63159634989376EAE5 /* MJPropertyType.h */,\n\t\t\t\tC9EEE8A16B549D492189ADED065DCD69 /* MJPropertyType.m */,\n\t\t\t\t689D9B45F288DB62B12B34C652BE8FF5 /* NSObject+MJClass.h */,\n\t\t\t\tB4A882AB3EC99CA1333907E68CA2F825 /* NSObject+MJClass.m */,\n\t\t\t\t2A7EAD119E28A5FEDFBE6A040657D4B4 /* NSObject+MJCoding.h */,\n\t\t\t\tB395737299D7120E9ED5EAD2456C2694 /* NSObject+MJCoding.m */,\n\t\t\t\tA4756D4E02C46747F874C36DE8EFFF4C /* NSObject+MJKeyValue.h */,\n\t\t\t\tE2411100641D9BA56663CA21170F3491 /* NSObject+MJKeyValue.m */,\n\t\t\t\t6448180D051AE5735B4C2A867AE40A7D /* NSObject+MJProperty.h */,\n\t\t\t\tC1A7E81A9399EDBC165BF84D27FD6C90 /* NSObject+MJProperty.m */,\n\t\t\t\t03780F0B03134FE9FFFCEAD644AE5D6F /* NSString+MJExtension.h */,\n\t\t\t\t8CB42092EA5F5E6069B32BAB8509F5D9 /* NSString+MJExtension.m */,\n\t\t\t\t0BB33B9904842605990B995DB41D8E2E /* Support Files */,\n\t\t\t);\n\t\t\tpath = MJExtension;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97802852899A9181E5B6861A3A2C448A /* Pods-SYStickHeaderWaterFallUITests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tFBBB5092E5153FE9046A526CC106A7E8 /* Pods-SYStickHeaderWaterFallUITests-acknowledgements.markdown */,\n\t\t\t\t805B4957F1242DCE608C62F31063A86B /* Pods-SYStickHeaderWaterFallUITests-acknowledgements.plist */,\n\t\t\t\t03742261C62CF9EF6DFD2F0417D80083 /* Pods-SYStickHeaderWaterFallUITests-dummy.m */,\n\t\t\t\t8754F6756CEA50ACF82BBD4FCDD5DB0C /* Pods-SYStickHeaderWaterFallUITests-frameworks.sh */,\n\t\t\t\tB7A2490C7BEF1E4E8CB66AEB60B3FFE4 /* Pods-SYStickHeaderWaterFallUITests-resources.sh */,\n\t\t\t\t1A7DD86BCEC210D5368C18BC116B59CE /* Pods-SYStickHeaderWaterFallUITests.debug.xcconfig */,\n\t\t\t\t508FD5C42977604389820DBF293F128C /* Pods-SYStickHeaderWaterFallUITests.release.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Pods-SYStickHeaderWaterFallUITests\";\n\t\t\tpath = \"Target Support Files/Pods-SYStickHeaderWaterFallUITests\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tA0CEAB8FF2A96F5E85590A475679D878 /* Pods-SYStickHeaderWaterFall */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t44C70F766A438C03A9EB908E8B924D79 /* Pods-SYStickHeaderWaterFall-acknowledgements.markdown */,\n\t\t\t\tF11E9C75D5962EA715CB4E88DE401A79 /* Pods-SYStickHeaderWaterFall-acknowledgements.plist */,\n\t\t\t\t87A30B0D21A171A9AA4C26BCCF9BFDE8 /* Pods-SYStickHeaderWaterFall-dummy.m */,\n\t\t\t\tF3E8AEC3D8A0F3E561041734367D2752 /* Pods-SYStickHeaderWaterFall-frameworks.sh */,\n\t\t\t\tF54B7FEE0771EC0497F18DD0FFE2B1AC /* Pods-SYStickHeaderWaterFall-resources.sh */,\n\t\t\t\t3D1E8559BD812F4BA5C45D5265974C36 /* Pods-SYStickHeaderWaterFall.debug.xcconfig */,\n\t\t\t\t6F59847F2E0058F66104EE94E7DFFD94 /* Pods-SYStickHeaderWaterFall.release.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Pods-SYStickHeaderWaterFall\";\n\t\t\tpath = \"Target Support Files/Pods-SYStickHeaderWaterFall\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tA2FB7D2CEE620FD19B355DDF00D7782A /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tBB2992B50C2FC9943F796F2E3671DA10 /* SDWebImage.xcconfig */,\n\t\t\t\tFC5223A138B3434A058C63E1C0140689 /* SDWebImage-dummy.m */,\n\t\t\t\t5B44607C6EA0B1BE7737FD0AE5E4BC35 /* SDWebImage-prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/SDWebImage\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tA6702D79E5D6392C67E333D9D18E9B9C /* SDWebImage-Category */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tB5291D69BF8F6E4D660E1F3F4EF2D109 /* LK_THProgressView.h */,\n\t\t\t\t9564FF1FC03E2FAE8DA08E9CEC284AB6 /* LK_THProgressView.m */,\n\t\t\t\t96BC8B973C99C40FD9F4BCB661B90395 /* UIImageView+LK.h */,\n\t\t\t\tAAFC776D91F4FC55AFB65E08F047C80F /* UIImageView+LK.m */,\n\t\t\t\t73DD2AC16D80DB24F959E2E7C4F8F90D /* Resources */,\n\t\t\t\t7D09A9D2A02B164495685A22C2D88262 /* Support Files */,\n\t\t\t);\n\t\t\tpath = \"SDWebImage-Category\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tAD955016AC4327DD82F9225606880500 /* NSURLSession */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t8768BBC5EB6C8641A9B8BF5213B51448 /* AFHTTPSessionManager.h */,\n\t\t\t\tD4F4C48C7FCF63290D515593353CEED0 /* AFHTTPSessionManager.m */,\n\t\t\t\t3FFF0047291EB6C09B86A5E0D5CF50CB /* AFURLSessionManager.h */,\n\t\t\t\t922661DC8AEBD3B57F90FC80E211C291 /* AFURLSessionManager.m */,\n\t\t\t);\n\t\t\tname = NSURLSession;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tB5C6B0C9E1F9CA2729BF51C74319DA95 /* Reachability */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9A28E737006F7F01A56B439F0E736388 /* AFNetworkReachabilityManager.h */,\n\t\t\t\tFC17D54AEDE7F447BDCCC849A947413B /* AFNetworkReachabilityManager.m */,\n\t\t\t);\n\t\t\tname = Reachability;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tBCEB8A27F389988214B124664E4A1ED5 /* UIKit */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t02A119D7BAE6CD9941B7D67C52DDC9EF /* AFAutoPurgingImageCache.h */,\n\t\t\t\t2AF8DE891583820DC0F8F8FF51B2736F /* AFAutoPurgingImageCache.m */,\n\t\t\t\t0A8445FFB949AF997A6ACBE3B5CB43BD /* AFImageDownloader.h */,\n\t\t\t\tB38F63AF2EB9254956F3E981AEA85F53 /* AFImageDownloader.m */,\n\t\t\t\t7122328073A5D1983E075C0F07530B17 /* AFNetworkActivityIndicatorManager.h */,\n\t\t\t\tCBABE0EE0F06A5277197E7C0F9BD694F /* AFNetworkActivityIndicatorManager.m */,\n\t\t\t\t6A21425275FFB884FF5579640AEA9981 /* UIActivityIndicatorView+AFNetworking.h */,\n\t\t\t\t9E3A01D07FB5260111DB77D173201C38 /* UIActivityIndicatorView+AFNetworking.m */,\n\t\t\t\tF4DE7C1D1391BC28AF4AA853F4677131 /* UIButton+AFNetworking.h */,\n\t\t\t\t6D054D1353A112CF251AA14747BA8E5A /* UIButton+AFNetworking.m */,\n\t\t\t\t397506CB5949E92F27532829BE99E5A4 /* UIImage+AFNetworking.h */,\n\t\t\t\t09A2DC3ACB712C1E011E10289B12CFED /* UIImageView+AFNetworking.h */,\n\t\t\t\tB162443D4C557BB9F3E1F63E3D49F3B4 /* UIImageView+AFNetworking.m */,\n\t\t\t\t0BDABBE4C65721E454EC53E45EDF8D79 /* UIKit+AFNetworking.h */,\n\t\t\t\tFE77DB997D42752FB7BA90C1C8358DDF /* UIProgressView+AFNetworking.h */,\n\t\t\t\t5859036282ADFFF9E3C82DD6EB2CED52 /* UIProgressView+AFNetworking.m */,\n\t\t\t\tDA03FC6C6AE92B2E137584A5EE4C8813 /* UIRefreshControl+AFNetworking.h */,\n\t\t\t\tAE82185CD2C0772573CDE56E2EC19525 /* UIRefreshControl+AFNetworking.m */,\n\t\t\t\t0A456706C234210666DBA7A2B7822CD0 /* UIWebView+AFNetworking.h */,\n\t\t\t\t589BD0FA55FD6BA098B19CBC69B879DF /* UIWebView+AFNetworking.m */,\n\t\t\t);\n\t\t\tname = UIKit;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tC50D5059C04EE5B834CA813556DA975C /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t4A87D7957F14C025FAA142265C6C4BF3 /* MJRefresh.xcconfig */,\n\t\t\t\t1778F8F6390659B8DF8BD520AEAE4D39 /* MJRefresh-dummy.m */,\n\t\t\t\t8A964119DA1B686740FF9873E494A70D /* MJRefresh-prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/MJRefresh\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tC8FF1076B04ED63984C334FA815D5E0B /* SDCycleScrollView */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t2EA15D5327C61CEAA65DB157C0F6EF7A /* SDCollectionViewCell.h */,\n\t\t\t\t4B99CCA068F3670667EA7A3A916D0C4A /* SDCollectionViewCell.m */,\n\t\t\t\tCB3E8450B827F5CC531FAF520B158DD0 /* SDCycleScrollView.h */,\n\t\t\t\tD7BD0FF148B72404757C7E71939BE0D5 /* SDCycleScrollView.m */,\n\t\t\t\t04539333D3FCDAE5DA25C11B3256AD3F /* TAAbstractDotView.h */,\n\t\t\t\t9738F853E1FE9B6736FA12D854F2C162 /* TAAbstractDotView.m */,\n\t\t\t\t8A7BAECDE8341CD38FE0F9169F01B226 /* TAAnimatedDotView.h */,\n\t\t\t\tB67E732031A8F8CB87204F73A1565F72 /* TAAnimatedDotView.m */,\n\t\t\t\t87C9E80A9E3CA944D0A6E3CFEEFA621E /* TADotView.h */,\n\t\t\t\t30F0D210AA13D26BDEC908885FE9885C /* TADotView.m */,\n\t\t\t\tD0E926ECFE4B4FA91FFDA100AEDC704F /* TAPageControl.h */,\n\t\t\t\t4E4B524F86F5E521C5152600A1162666 /* TAPageControl.m */,\n\t\t\t\t1DD017E66994647329B47EBDA0107D1E /* UIView+SDExtension.h */,\n\t\t\t\t3FBEBC2EACFC9FFD6E83927B9C15B618 /* UIView+SDExtension.m */,\n\t\t\t\tD77254E65866FBACED7D6B8E28BE2064 /* Support Files */,\n\t\t\t);\n\t\t\tpath = SDCycleScrollView;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tD77254E65866FBACED7D6B8E28BE2064 /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tD5FE7E72C5BA14788EC2B0EE0E94D95E /* SDCycleScrollView.xcconfig */,\n\t\t\t\tDC6690F69BC098EF61540DAA24C44DAC /* SDCycleScrollView-dummy.m */,\n\t\t\t\tA975B8B4818E704941B144C8956F1A0F /* SDCycleScrollView-prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/SDCycleScrollView\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tEB3A26CC3A24C05DD8A44AEBFCCDCA1E /* AFNetworking */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t1C27A28882A0E23C87BB63BC93351A90 /* AFNetworking.h */,\n\t\t\t\tAD955016AC4327DD82F9225606880500 /* NSURLSession */,\n\t\t\t\tB5C6B0C9E1F9CA2729BF51C74319DA95 /* Reachability */,\n\t\t\t\t3FB5C653153BBE71442904DAB484F285 /* Security */,\n\t\t\t\t2094437F7862F17F61529F13356571AE /* Serialization */,\n\t\t\t\t28F539C693BE469E97BF850ECC916AD9 /* Support Files */,\n\t\t\t\tBCEB8A27F389988214B124664E4A1ED5 /* UIKit */,\n\t\t\t);\n\t\t\tpath = AFNetworking;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tEEA04A2CAEEE0F824918033C21060A88 /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t46FF877C8D42B67574AB8F74D16EB2C2 /* MBProgressHUD.xcconfig */,\n\t\t\t\t50BED54FA1D6256227C9ACD546992FD8 /* MBProgressHUD-dummy.m */,\n\t\t\t\t954DA0D7E530C7DB2E5CCF831A80CBFF /* MBProgressHUD-prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/MBProgressHUD\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tF25AF2CC5CE3BB4A7157FA391E95D7A5 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tEB3A26CC3A24C05DD8A44AEBFCCDCA1E /* AFNetworking */,\n\t\t\t\tF8ED162ACE9DA78080F4EBDB0DFF31A8 /* MBProgressHUD */,\n\t\t\t\t972A658355ADEAB6DA91DF616EB1E939 /* MJExtension */,\n\t\t\t\tF4017F63B2A07221570285020477CD98 /* MJRefresh */,\n\t\t\t\tC8FF1076B04ED63984C334FA815D5E0B /* SDCycleScrollView */,\n\t\t\t\t5F284859380DEE5A3E83FAF0E5ABF570 /* SDWebImage */,\n\t\t\t\tA6702D79E5D6392C67E333D9D18E9B9C /* SDWebImage-Category */,\n\t\t\t);\n\t\t\tname = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tF4017F63B2A07221570285020477CD98 /* MJRefresh */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tAE525EC93CC874875F8BEA64AC78905D /* MJRefresh.h */,\n\t\t\t\t52B107076D94D1A7A3E71EC29BF47F00 /* MJRefreshAutoFooter.h */,\n\t\t\t\tB192233FBB61784EBC1EA30869D8F07A /* MJRefreshAutoFooter.m */,\n\t\t\t\t456D94174B914D8FB47EF17D19923BDE /* MJRefreshAutoGifFooter.h */,\n\t\t\t\t49E41B87DA6A8A81C5991653484F13B5 /* MJRefreshAutoGifFooter.m */,\n\t\t\t\t1AC59D480396FB5209E2CA1FB16A9606 /* MJRefreshAutoNormalFooter.h */,\n\t\t\t\t11807D73A4B41757F9456BA20C38168A /* MJRefreshAutoNormalFooter.m */,\n\t\t\t\t44159F705C59F8D127435381A967C39F /* MJRefreshAutoStateFooter.h */,\n\t\t\t\tD657FCEEF39DC7FB63CA96B28BA1C4AA /* MJRefreshAutoStateFooter.m */,\n\t\t\t\tA63C36BF4857664C0D8B3E77B9120F71 /* MJRefreshBackFooter.h */,\n\t\t\t\t8FA06799CD75D317DC3B9BA01C72C379 /* MJRefreshBackFooter.m */,\n\t\t\t\t0E9BECB543E1A213BC42C19EFB0A3087 /* MJRefreshBackGifFooter.h */,\n\t\t\t\tCCA62C665BC79E62000D026EB74E9127 /* MJRefreshBackGifFooter.m */,\n\t\t\t\tCF3E979A2EAFF132B9D8C68C2844CFA1 /* MJRefreshBackNormalFooter.h */,\n\t\t\t\tE436230F7960FA07CDD51216481E9E09 /* MJRefreshBackNormalFooter.m */,\n\t\t\t\tDBDECE7F05FA473FA9192F97FF22C7BD /* MJRefreshBackStateFooter.h */,\n\t\t\t\t9AC5588EE1921EE2E899F8EFDBCC34BE /* MJRefreshBackStateFooter.m */,\n\t\t\t\t47F7E9D29CB8C01E70280774EADE72BA /* MJRefreshComponent.h */,\n\t\t\t\t588E9A54D029E8C3DDDBB0D7EAE7D1E8 /* MJRefreshComponent.m */,\n\t\t\t\t3CF21C72A121D980742810C4C001AE4F /* MJRefreshConst.h */,\n\t\t\t\t966948767C8B3F611003DBFF222B36FB /* MJRefreshConst.m */,\n\t\t\t\t2FBEAB39E21620D8C74339432009E07C /* MJRefreshFooter.h */,\n\t\t\t\t0CAD04150C521CB416A7294CCEBCDC47 /* MJRefreshFooter.m */,\n\t\t\t\tB3050C2F51CE1BD66414FCEA30969F83 /* MJRefreshGifHeader.h */,\n\t\t\t\t403428382D57A354D132C9B58242B330 /* MJRefreshGifHeader.m */,\n\t\t\t\t599FFB75B293637728C3B7227BB3556E /* MJRefreshHeader.h */,\n\t\t\t\tF5177D5C5DF17862B7BD77E982864F05 /* MJRefreshHeader.m */,\n\t\t\t\t53D896996B9B312951AAEF7B746E2AC7 /* MJRefreshNormalHeader.h */,\n\t\t\t\tC7BA3D8FBE6C0BBD656889B880F545C1 /* MJRefreshNormalHeader.m */,\n\t\t\t\tAF73E895D20B45D047FF2E701BB2301D /* MJRefreshStateHeader.h */,\n\t\t\t\tC4E13EE5B3D2479CEEC482ECD8730C7E /* MJRefreshStateHeader.m */,\n\t\t\t\t2782017DE5C4BCD8D64F278D17230EF5 /* UIScrollView+MJExtension.h */,\n\t\t\t\t6905DBFE962BE7E5ACBF74FB92FCBDD8 /* UIScrollView+MJExtension.m */,\n\t\t\t\t3330D9B7CF2BD148AD73E66F1C0281AB /* UIScrollView+MJRefresh.h */,\n\t\t\t\t0F82C77B214AB33CD5DB5FF1E2B34D61 /* UIScrollView+MJRefresh.m */,\n\t\t\t\t959AE308BD52E8E5F876B01611A39350 /* UIView+MJExtension.h */,\n\t\t\t\t50936F863B83FB93C15DD9D1FE19D935 /* UIView+MJExtension.m */,\n\t\t\t\t487E286266002801D062A8B52B63DB00 /* Resources */,\n\t\t\t\tC50D5059C04EE5B834CA813556DA975C /* Support Files */,\n\t\t\t);\n\t\t\tpath = MJRefresh;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tF8ED162ACE9DA78080F4EBDB0DFF31A8 /* MBProgressHUD */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tC6F9BE67AFCF0F475749FCF3F37D9B9F /* MBProgressHUD.h */,\n\t\t\t\t0D970CF873FFC1CDEBF9DC8DB2E5FEEB /* MBProgressHUD.m */,\n\t\t\t\tEEA04A2CAEEE0F824918033C21060A88 /* Support Files */,\n\t\t\t);\n\t\t\tpath = MBProgressHUD;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXHeadersBuildPhase section */\n\t\t0B678E4E7D716E2C6EC64BDB96418C7E /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tD054768D94E678B8A0D7F2AB4FF45E54 /* MJRefresh.h in Headers */,\n\t\t\t\tFF1FEB28260D52C222E2F87FBBC05277 /* MJRefreshAutoFooter.h in Headers */,\n\t\t\t\tEFCDCCD66269CA908494B11E024DC736 /* MJRefreshAutoGifFooter.h in Headers */,\n\t\t\t\t9BF8D708AC9892125B0AA4E540361FF8 /* MJRefreshAutoNormalFooter.h in Headers */,\n\t\t\t\tC66A994F14BA080776BB3E2AD8CC55B4 /* MJRefreshAutoStateFooter.h in Headers */,\n\t\t\t\tB5A8A60810B99D763E3A3F076F63509D /* MJRefreshBackFooter.h in Headers */,\n\t\t\t\t6CF9B693754B004AD7FB2F8A6C0C8F36 /* MJRefreshBackGifFooter.h in Headers */,\n\t\t\t\t6E80858B842657D04234289E938017AC /* MJRefreshBackNormalFooter.h in Headers */,\n\t\t\t\tF58455418F190BC37D1FD19EA3EA5B01 /* MJRefreshBackStateFooter.h in Headers */,\n\t\t\t\tF432A374A040EBAB69C9EABC6C4D699A /* MJRefreshComponent.h in Headers */,\n\t\t\t\tF7B852F0917A6D6540DAB54F736D681B /* MJRefreshConst.h in Headers */,\n\t\t\t\t44F50504254959A81B2E96AD6261B2A9 /* MJRefreshFooter.h in Headers */,\n\t\t\t\tD595C17C62C58E80EEC6F9EBCCF4050A /* MJRefreshGifHeader.h in Headers */,\n\t\t\t\tEA03AF12E0E3E8ADC50DA70F2C5BF39E /* MJRefreshHeader.h in Headers */,\n\t\t\t\tC67F32FF951D1979EF0E6B4ADED5E8A8 /* MJRefreshNormalHeader.h in Headers */,\n\t\t\t\t444602F3A422E5EC1DA8EF2A3DFA01EB /* MJRefreshStateHeader.h in Headers */,\n\t\t\t\tB9B44F1EDC36C095666CA0AE98371C09 /* UIScrollView+MJExtension.h in Headers */,\n\t\t\t\t904EC3379A9E226064CB03DC1ACA2EEA /* UIScrollView+MJRefresh.h in Headers */,\n\t\t\t\t77F797A5A72065EE7351CF41728C2EC3 /* UIView+MJExtension.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t4841D94C3902C663AB3166B0ADEDA97A /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t1E6CA1CA61D8B39C01E1F6375602CE7E /* LK_THProgressView.h in Headers */,\n\t\t\t\tB7F042F97355BC6B0511F5874A9638E9 /* UIImageView+LK.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tB981229135DBE9773A86BDB116C368D1 /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t19E6319F6ECED7539AABBD9A211F7AEC /* AFAutoPurgingImageCache.h in Headers */,\n\t\t\t\tF3774B1449FCE5B3CA3E1B336E11D284 /* AFHTTPSessionManager.h in Headers */,\n\t\t\t\t326A543AD4E39A2DAECA1CD385E3AEA2 /* AFImageDownloader.h in Headers */,\n\t\t\t\t3939531EB270B4145C7ADFBAB2E5695F /* AFNetworkActivityIndicatorManager.h in Headers */,\n\t\t\t\t0A08FC71C4E3B8E0F8734BCDA7CCA7CB /* AFNetworking.h in Headers */,\n\t\t\t\tED69D9B5A342FE9BD3F170D5CDDEC948 /* AFNetworkReachabilityManager.h in Headers */,\n\t\t\t\tDFDAC8245626953C4BCE5A2DA6BE2A5B /* AFSecurityPolicy.h in Headers */,\n\t\t\t\t2359387620C5E815BF0594BC40311734 /* AFURLRequestSerialization.h in Headers */,\n\t\t\t\tB51AA1F7701DCDBCC9B88A15320F9C2C /* AFURLResponseSerialization.h in Headers */,\n\t\t\t\t3511AE7ADBB71D05565854F0E70B7D08 /* AFURLSessionManager.h in Headers */,\n\t\t\t\t830050886B18F54E17F117FD8EFC717B /* UIActivityIndicatorView+AFNetworking.h in Headers */,\n\t\t\t\tE212C2AA95E8F6EFB69A5F1455F291F8 /* UIButton+AFNetworking.h in Headers */,\n\t\t\t\tC1B65C3D849FEE4FB5298A8135A765DA /* UIImage+AFNetworking.h in Headers */,\n\t\t\t\t6EC97BDB3FC508526F9E388095A7DDCC /* UIImageView+AFNetworking.h in Headers */,\n\t\t\t\t85FAB6F1D2FE0598BF2E61D7BB084B8D /* UIKit+AFNetworking.h in Headers */,\n\t\t\t\t5D52DB6DF2E6C24CECB0015A9177A2E1 /* UIProgressView+AFNetworking.h in Headers */,\n\t\t\t\tACE9C1A6E8D5121C6C5F907C7A9CFCC9 /* UIRefreshControl+AFNetworking.h in Headers */,\n\t\t\t\tB5CF67F7870BAB70A76E57479B706B42 /* UIWebView+AFNetworking.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE1306FA1B21230370A481119AEC7044F /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tD8469F0F54215018DFBF2BB298478741 /* NSData+ImageContentType.h in Headers */,\n\t\t\t\tFCAEB14193C6A07E282A55FD2D860550 /* SDImageCache.h in Headers */,\n\t\t\t\tA030F09B285BE67C41086161199C70B7 /* SDWebImageCompat.h in Headers */,\n\t\t\t\tD2BB4DFE734A679813ACAB874897B160 /* SDWebImageDecoder.h in Headers */,\n\t\t\t\t494862EC1231C111E1D4AAFA37745A62 /* SDWebImageDownloader.h in Headers */,\n\t\t\t\t3BD22351EA00DA7E3B40CBB0FEC1AB78 /* SDWebImageDownloaderOperation.h in Headers */,\n\t\t\t\t7804C8F07177F2F1C6E39C0DACAEB242 /* SDWebImageManager.h in Headers */,\n\t\t\t\t78F4F49983120D375D2F97C57828C759 /* SDWebImageOperation.h in Headers */,\n\t\t\t\t059C8D4C41A51DCF37382DF1D7B5A68F /* SDWebImagePrefetcher.h in Headers */,\n\t\t\t\t4C32A5F3CEEE6A14762CFB0C93E11738 /* UIButton+WebCache.h in Headers */,\n\t\t\t\tB5A6229DEC88B0D18BD56C946478B3CE /* UIImage+GIF.h in Headers */,\n\t\t\t\t5BDBB08CD013792DAFA853C75349CD89 /* UIImage+MultiFormat.h in Headers */,\n\t\t\t\tABC448750EECAAC48EEBB4F394092EE4 /* UIImageView+HighlightedWebCache.h in Headers */,\n\t\t\t\t5AF2408BF89495887BD2B23D9597781E /* UIImageView+WebCache.h in Headers */,\n\t\t\t\t4D9C646A8EF089141E0571A220D1311B /* UIView+WebCacheOperation.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tEF1C003613925663F17E023C73AF519C /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t5EB4F27B76513AE918BA5AE0868E87C8 /* MBProgressHUD.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tF95AF419D96CDED026D79CDD7A3B3023 /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tC37D2F9A62232C28DAF2E51CF1364F21 /* MJExtension.h in Headers */,\n\t\t\t\t0F7EC02E944F8719A5EBDC9D29F9E99F /* MJExtensionConst.h in Headers */,\n\t\t\t\t13695CE9BF36F26CA806C5CD2D6ADECA /* MJFoundation.h in Headers */,\n\t\t\t\tDAF1CE8756287B465E0DE48A6133FB79 /* MJProperty.h in Headers */,\n\t\t\t\t366A613AE07EAA35B5789F6123FB48AF /* MJPropertyKey.h in Headers */,\n\t\t\t\t91CAC2B69903F5F3D7C25A95CA77A600 /* MJPropertyType.h in Headers */,\n\t\t\t\tCA1EB1DB5C89E63A19ED05C55E35AF23 /* NSObject+MJClass.h in Headers */,\n\t\t\t\t118227C43F283C87130BEE2BFABC7EBD /* NSObject+MJCoding.h in Headers */,\n\t\t\t\t4330562BA1A299CBD37F4602B1A4C95A /* NSObject+MJKeyValue.h in Headers */,\n\t\t\t\tC16442D25F534C602780E6FD44C6A698 /* NSObject+MJProperty.h in Headers */,\n\t\t\t\t86D3C675657C8AFE6F73E5D0F209E990 /* NSString+MJExtension.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tFB5463114CB1FCA603E14D0C69944F6C /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tC262E878E903689F2196806A2773AA77 /* SDCollectionViewCell.h in Headers */,\n\t\t\t\tC85455195A338728FAF81E783F96E416 /* SDCycleScrollView.h in Headers */,\n\t\t\t\t3D82B864A0E7F53F9C4D4CBB5A06F6BD /* TAAbstractDotView.h in Headers */,\n\t\t\t\tE1CAAC491F015A6567402B13D12449C6 /* TAAnimatedDotView.h in Headers */,\n\t\t\t\tEFA6EDA4DC962DB29CEA5603B25F0489 /* TADotView.h in Headers */,\n\t\t\t\t4BEDD6490152AE7F85BF5D5FB69681EB /* TAPageControl.h in Headers */,\n\t\t\t\tC008CEE1DB11E725039646E8978A12D8 /* UIView+SDExtension.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXHeadersBuildPhase section */\n\n/* Begin PBXNativeTarget section */\n\t\t2F99E1802D3328098F141B9C5FE66BD0 /* SDWebImage */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 22E3E9CEAAAB0BD959E6FE3D200ACD37 /* Build configuration list for PBXNativeTarget \"SDWebImage\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tD6C8C5347252EFF1611CCCBDBC44CFC0 /* Sources */,\n\t\t\t\t74D76A4575BF2AC685D3E5ED4E004541 /* Frameworks */,\n\t\t\t\tE1306FA1B21230370A481119AEC7044F /* Headers */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = SDWebImage;\n\t\t\tproductName = SDWebImage;\n\t\t\tproductReference = 1FFFFD7D8CB9BB74DF72EAB59239766E /* libSDWebImage.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\t57441E031E53B51D4E728A8C52F734FD /* SDCycleScrollView */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 6A5996891C6AD94F96A3E2666D5EE66E /* Build configuration list for PBXNativeTarget \"SDCycleScrollView\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t65C5E5A0AAFC29FD2719EBB543CC2EA7 /* Sources */,\n\t\t\t\t84186DDBDF1AD8DE01D6BFC3414D2936 /* Frameworks */,\n\t\t\t\tFB5463114CB1FCA603E14D0C69944F6C /* Headers */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tDDFF1264999DAD473FDE285EB1B008A2 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = SDCycleScrollView;\n\t\t\tproductName = SDCycleScrollView;\n\t\t\tproductReference = 30AC3FBF1F9DB2526398F4B47E48B4D3 /* libSDCycleScrollView.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\t8F74D9EA91F4C43190670066BAC37D44 /* MJRefresh */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 3D32356147D239362A3FF7DCAB918205 /* Build configuration list for PBXNativeTarget \"MJRefresh\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t346003011339A97DDE1A394DF0A3BB91 /* Sources */,\n\t\t\t\tF6AAF5593D0C5E24B3377E5C3999D0AA /* Frameworks */,\n\t\t\t\t0B678E4E7D716E2C6EC64BDB96418C7E /* Headers */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = MJRefresh;\n\t\t\tproductName = MJRefresh;\n\t\t\tproductReference = F9E2730EAB2283AB5A466B121E7F7B70 /* libMJRefresh.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\t917199FA38ED7E44E0BA484C1E9712A2 /* Pods-SYStickHeaderWaterFallUITests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = A2FA60E97482697B691F2A926C7435A4 /* Build configuration list for PBXNativeTarget \"Pods-SYStickHeaderWaterFallUITests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t64FDD63EB9D8B15635CACAE80BEF3D62 /* Sources */,\n\t\t\t\t2AA83B78AB0AD789DD40CBFE1F5720F3 /* Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = \"Pods-SYStickHeaderWaterFallUITests\";\n\t\t\tproductName = \"Pods-SYStickHeaderWaterFallUITests\";\n\t\t\tproductReference = E97E06F9B0A5CEB483A2B2851C9F290E /* libPods-SYStickHeaderWaterFallUITests.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\t928353533005A4198EBDA5B700D37B64 /* AFNetworking */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 77CF2A7107BC61A2E90025871305961D /* Build configuration list for PBXNativeTarget \"AFNetworking\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tDE0BAD758C6F291CE7E10DA077987C62 /* Sources */,\n\t\t\t\t508C962B3E08E8DA04956BF349A3CDFD /* Frameworks */,\n\t\t\t\tB981229135DBE9773A86BDB116C368D1 /* Headers */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = AFNetworking;\n\t\t\tproductName = AFNetworking;\n\t\t\tproductReference = 29E8CCF9B96FD9C94DC8B8A7F388E272 /* libAFNetworking.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\t932C672616605B15B4BEBCE72CA91CDA /* Pods-SYStickHeaderWaterFall */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 8653BB7436626E70EFB9CB3D2AA15DBB /* Build configuration list for PBXNativeTarget \"Pods-SYStickHeaderWaterFall\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tF1F7CDB84D6850267B1ADB65560C20E4 /* Sources */,\n\t\t\t\tF5A0709EE6733899D027BC7A84A13726 /* Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t3352DCE3F60BCE1CEF158328BAA5E2E2 /* PBXTargetDependency */,\n\t\t\t\t84DFB6BDB629884849ADDABDE21B5D35 /* PBXTargetDependency */,\n\t\t\t\t80D74B1828F009009ED6DF2C1087C258 /* PBXTargetDependency */,\n\t\t\t\t2A476BD887D66FCE11EA523E55B19C66 /* PBXTargetDependency */,\n\t\t\t\tE859D494CEF95C67A968E9CAF2B976AB /* PBXTargetDependency */,\n\t\t\t\t323EA68CD44848CA44DF276162A34328 /* PBXTargetDependency */,\n\t\t\t\tC0450ED1571AC86DCB62D66978AC2435 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = \"Pods-SYStickHeaderWaterFall\";\n\t\t\tproductName = \"Pods-SYStickHeaderWaterFall\";\n\t\t\tproductReference = 1BB8A6395197210DF05AE7A64BD47C07 /* libPods-SYStickHeaderWaterFall.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\t9EAB3E42EF957541E6C3C76D35FD008E /* MJExtension */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = ECCC06F4F1551987F0834A094FDCB1CA /* Build configuration list for PBXNativeTarget \"MJExtension\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t2CBFB844B4D7FEB4FF2F11CAE31CAD75 /* Sources */,\n\t\t\t\t747242460B935FEA3E994652BD8C2E0B /* Frameworks */,\n\t\t\t\tF95AF419D96CDED026D79CDD7A3B3023 /* Headers */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = MJExtension;\n\t\t\tproductName = MJExtension;\n\t\t\tproductReference = 3B8E1FDD20E8E8C3B400B67BF3A37494 /* libMJExtension.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\tA2A73EB14329C73B53B83B95E029E3F9 /* Pods-SYStickHeaderWaterFallTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = FE7A6799B94716D4A49A648C8FB655CC /* Build configuration list for PBXNativeTarget \"Pods-SYStickHeaderWaterFallTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE3DE274CB750DD0E305DF4F2E85EE3C3 /* Sources */,\n\t\t\t\t2C21471DC74CEB01326E46B31B7F93FB /* Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = \"Pods-SYStickHeaderWaterFallTests\";\n\t\t\tproductName = \"Pods-SYStickHeaderWaterFallTests\";\n\t\t\tproductReference = 6AEE3D45E1954C6E0EA3EF81A48205B0 /* libPods-SYStickHeaderWaterFallTests.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\tFB2D445CCB0D8124808BBE68AF47222E /* SDWebImage-Category */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 4FD05357961E342FE97F0D8E7950F762 /* Build configuration list for PBXNativeTarget \"SDWebImage-Category\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t064AEF1DCC3B55467C0226B0A4B8EB0B /* Sources */,\n\t\t\t\t5DDE4ACD83B7F70091C8FAB57BC7FD37 /* Frameworks */,\n\t\t\t\t4841D94C3902C663AB3166B0ADEDA97A /* Headers */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tD13E988A7C79EAE42F76803A87704749 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = \"SDWebImage-Category\";\n\t\t\tproductName = \"SDWebImage-Category\";\n\t\t\tproductReference = 372AB1B94903F0986874CA523F12D64B /* libSDWebImage-Category.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n\t\tFE2F1D7B9D9FCEA148517E4657B243F4 /* MBProgressHUD */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = F2F5671C4613023EE94A2E62DA06031D /* Build configuration list for PBXNativeTarget \"MBProgressHUD\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t098439AB598DDF1AF51146A2E3E2E562 /* Sources */,\n\t\t\t\tE81C08F5CCC0A5FBFF4559E2173164C7 /* Frameworks */,\n\t\t\t\tEF1C003613925663F17E023C73AF519C /* Headers */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = MBProgressHUD;\n\t\t\tproductName = MBProgressHUD;\n\t\t\tproductReference = 841AE75C53F4C2EF864EBA3145631330 /* libMBProgressHUD.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tD41D8CD98F00B204E9800998ECF8427E /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0720;\n\t\t\t\tLastUpgradeCheck = 0700;\n\t\t\t};\n\t\t\tbuildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject \"Pods\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t);\n\t\t\tmainGroup = 7DB346D0F39D3F0E887471402A8071AB;\n\t\t\tproductRefGroup = 81C6A4E53CE2EC41CF60512999C5F893 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t928353533005A4198EBDA5B700D37B64 /* AFNetworking */,\n\t\t\t\tFE2F1D7B9D9FCEA148517E4657B243F4 /* MBProgressHUD */,\n\t\t\t\t9EAB3E42EF957541E6C3C76D35FD008E /* MJExtension */,\n\t\t\t\t8F74D9EA91F4C43190670066BAC37D44 /* MJRefresh */,\n\t\t\t\t932C672616605B15B4BEBCE72CA91CDA /* Pods-SYStickHeaderWaterFall */,\n\t\t\t\tA2A73EB14329C73B53B83B95E029E3F9 /* Pods-SYStickHeaderWaterFallTests */,\n\t\t\t\t917199FA38ED7E44E0BA484C1E9712A2 /* Pods-SYStickHeaderWaterFallUITests */,\n\t\t\t\t57441E031E53B51D4E728A8C52F734FD /* SDCycleScrollView */,\n\t\t\t\t2F99E1802D3328098F141B9C5FE66BD0 /* SDWebImage */,\n\t\t\t\tFB2D445CCB0D8124808BBE68AF47222E /* SDWebImage-Category */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t064AEF1DCC3B55467C0226B0A4B8EB0B /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tD5D3721CDE9C2523AA2F562D8B609047 /* LK_THProgressView.m in Sources */,\n\t\t\t\t7B71F9D82A7529324257FAEEFDE39423 /* SDWebImage-Category-dummy.m in Sources */,\n\t\t\t\t38F4D26ACE5AA9079DB0E94D8A625A0E /* UIImageView+LK.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t098439AB598DDF1AF51146A2E3E2E562 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tFC214077677D4F02E03C6C85F774E028 /* MBProgressHUD-dummy.m in Sources */,\n\t\t\t\t82FC12F67E83874B93592218E9FB4CA0 /* MBProgressHUD.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t2CBFB844B4D7FEB4FF2F11CAE31CAD75 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t2CC27528C64733F5C0AB4B1B6EE35E8C /* MJExtension-dummy.m in Sources */,\n\t\t\t\tFDF30F97BDF167F0B956DED0F2C8DA69 /* MJExtensionConst.m in Sources */,\n\t\t\t\t710DA5E9C44A1BC56CD13FC1F2D6E099 /* MJFoundation.m in Sources */,\n\t\t\t\tA0AD231A11A54F59BC8D486946D2928B /* MJProperty.m in Sources */,\n\t\t\t\tA60A4B3054017180C0B6C7B24E651E0A /* MJPropertyKey.m in Sources */,\n\t\t\t\t4C61B999DF40B1B00449A7AFCBB61D5E /* MJPropertyType.m in Sources */,\n\t\t\t\t026CCF569A2125FCB0EE8F152731259E /* NSObject+MJClass.m in Sources */,\n\t\t\t\tCDA4DB994BAC351F4CD71EC283055E57 /* NSObject+MJCoding.m in Sources */,\n\t\t\t\tB9C36A50069E553B4B8538E291864BB5 /* NSObject+MJKeyValue.m in Sources */,\n\t\t\t\tCD4CF5F1389281BCE40DF30AD1945D03 /* NSObject+MJProperty.m in Sources */,\n\t\t\t\tD1D1F11808DACCA88C55636F85A58FD8 /* NSString+MJExtension.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t346003011339A97DDE1A394DF0A3BB91 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t8F68B37533C5AC9C8588BD0449D32673 /* MJRefresh-dummy.m in Sources */,\n\t\t\t\t2894369EF8D702DF360B6763B36E8444 /* MJRefreshAutoFooter.m in Sources */,\n\t\t\t\tDA8BAA5F8E5949555BC8B94E309E23D8 /* MJRefreshAutoGifFooter.m in Sources */,\n\t\t\t\tE0529B7C623EB5752662665A05DAAFBA /* MJRefreshAutoNormalFooter.m in Sources */,\n\t\t\t\t5FBA673E534DD7485FD75764258C8046 /* MJRefreshAutoStateFooter.m in Sources */,\n\t\t\t\tA89B33DBDA4E99005E1F1BDB95A296CC /* MJRefreshBackFooter.m in Sources */,\n\t\t\t\t1BA3D9FB5D5145BF698C941C0F843518 /* MJRefreshBackGifFooter.m in Sources */,\n\t\t\t\tF0D01ED940723EED434E4EF4BCFF53F9 /* MJRefreshBackNormalFooter.m in Sources */,\n\t\t\t\t200CA5D919CC71EA6A769541C92716D3 /* MJRefreshBackStateFooter.m in Sources */,\n\t\t\t\t9230119085130B273ECF20F076081DA1 /* MJRefreshComponent.m in Sources */,\n\t\t\t\t922ACEFE37E22A36A6F0209742B7B51A /* MJRefreshConst.m in Sources */,\n\t\t\t\t6EE360D085C7EDD97B0A48A415012D37 /* MJRefreshFooter.m in Sources */,\n\t\t\t\t585CDAC34F08FB220FF26FF55CA899B7 /* MJRefreshGifHeader.m in Sources */,\n\t\t\t\t133B30495D945B737235B107AAE7DAAB /* MJRefreshHeader.m in Sources */,\n\t\t\t\tB19CA8B0FD349AEAD2D5A1C6B46AF47D /* MJRefreshNormalHeader.m in Sources */,\n\t\t\t\t5CBFDC026AAED77902F3CAC48A96FE69 /* MJRefreshStateHeader.m in Sources */,\n\t\t\t\t932430D4A2289A39BE7C50EEAA60246A /* UIScrollView+MJExtension.m in Sources */,\n\t\t\t\t09D04A9AB71B5A4FE9175F80496EA5FD /* UIScrollView+MJRefresh.m in Sources */,\n\t\t\t\t2280D55B18C853A6AA3AE9565EE91F19 /* UIView+MJExtension.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t64FDD63EB9D8B15635CACAE80BEF3D62 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t4BE65CE5F3F752C80A217F085C5DD6C2 /* Pods-SYStickHeaderWaterFallUITests-dummy.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t65C5E5A0AAFC29FD2719EBB543CC2EA7 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tFBAB76106B60FB9A6DC7F176D0CC2508 /* SDCollectionViewCell.m in Sources */,\n\t\t\t\tED13D8AAEBE839B765E819E64CC5AF79 /* SDCycleScrollView-dummy.m in Sources */,\n\t\t\t\t3341918313BA35BBA8323541ED86D6C2 /* SDCycleScrollView.m in Sources */,\n\t\t\t\t1F8C557BF3D526457A8CB61AA53D05FC /* TAAbstractDotView.m in Sources */,\n\t\t\t\tEB4BCECA120006D123FB6DF7F8965844 /* TAAnimatedDotView.m in Sources */,\n\t\t\t\t6E5CF733DAC9369049A47F18525437DA /* TADotView.m in Sources */,\n\t\t\t\tF66B2DD79BAF6F23047916BFB4C8876B /* TAPageControl.m in Sources */,\n\t\t\t\t0AC9D09FEB14E892F219BD49E8087D7D /* UIView+SDExtension.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tD6C8C5347252EFF1611CCCBDBC44CFC0 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t0639FA6BF12B902585A0C348C3B48DD1 /* NSData+ImageContentType.m in Sources */,\n\t\t\t\tB309424B5656428CE216787BA0CB0FC1 /* SDImageCache.m in Sources */,\n\t\t\t\tC64703AE573F9CD9F742B3639E31AF3D /* SDWebImage-dummy.m in Sources */,\n\t\t\t\tE23430756F70BBCA96CE8D0C54EB5177 /* SDWebImageCompat.m in Sources */,\n\t\t\t\t221D5C68B513726067B4A1D6A38464EF /* SDWebImageDecoder.m in Sources */,\n\t\t\t\t99042EA40A7E78F184E4CE20D377213C /* SDWebImageDownloader.m in Sources */,\n\t\t\t\t09D3BF4E4630C97147E7EDE313E60CAA /* SDWebImageDownloaderOperation.m in Sources */,\n\t\t\t\tB92E0D2A24DE5B6E5D56FBEDF78BEC98 /* SDWebImageManager.m in Sources */,\n\t\t\t\t0D838AC5286929E053A4632DFF97ABB4 /* SDWebImagePrefetcher.m in Sources */,\n\t\t\t\t8B6E6CCB2C285620C315682C19BC0384 /* UIButton+WebCache.m in Sources */,\n\t\t\t\tC7A4F06D2AD624BEAED06515BF8C9F0C /* UIImage+GIF.m in Sources */,\n\t\t\t\tF3520971CAA99362336B25728D04BDDC /* UIImage+MultiFormat.m in Sources */,\n\t\t\t\tEF4C10DEA974174C1CF84BBEB669F207 /* UIImageView+HighlightedWebCache.m in Sources */,\n\t\t\t\t10A1A8AC313021B784FC135CB0D8489B /* UIImageView+WebCache.m in Sources */,\n\t\t\t\t43BFE870F57DC60A8E4723C05D692F5D /* UIView+WebCacheOperation.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tDE0BAD758C6F291CE7E10DA077987C62 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t14CD3DFB4A25BAEFB205730FA6750025 /* AFAutoPurgingImageCache.m in Sources */,\n\t\t\t\t23415204AA48A02959E4E5245CF96037 /* AFHTTPSessionManager.m in Sources */,\n\t\t\t\tD31FEE51AF4BE2A6CC059F80B983CD3B /* AFImageDownloader.m in Sources */,\n\t\t\t\t4BA19F7DD8F9FDA648137B2CE89E7588 /* AFNetworkActivityIndicatorManager.m in Sources */,\n\t\t\t\tA8FC6A53F6C1CB4DEFD972664E1AF3B1 /* AFNetworking-dummy.m in Sources */,\n\t\t\t\t43098B12DF5546CB576986E68DBCAFCA /* AFNetworkReachabilityManager.m in Sources */,\n\t\t\t\t311E5200832E4AE174A193851A2C6317 /* AFSecurityPolicy.m in Sources */,\n\t\t\t\t8E82178CC9BD8BE3DBF2C10E33807AEB /* AFURLRequestSerialization.m in Sources */,\n\t\t\t\tC2201E34603B014192F0967473518496 /* AFURLResponseSerialization.m in Sources */,\n\t\t\t\tFCDDD3BC67EA205C87238A2A87D5C36C /* AFURLSessionManager.m in Sources */,\n\t\t\t\t15460ABD372C937E2A07A2FCDF98C473 /* UIActivityIndicatorView+AFNetworking.m in Sources */,\n\t\t\t\t78940A6980F359C4304C695EF6E67C5D /* UIButton+AFNetworking.m in Sources */,\n\t\t\t\tB0BE398350F83A7B0102C3BBAFC51428 /* UIImageView+AFNetworking.m in Sources */,\n\t\t\t\t38EEA9ED6B922946C54AD6BAC93B73AD /* UIProgressView+AFNetworking.m in Sources */,\n\t\t\t\t7F0578A0258E02384F6229C678E60D31 /* UIRefreshControl+AFNetworking.m in Sources */,\n\t\t\t\tAD359A96DD4AA2C962E50A5CD5524F54 /* UIWebView+AFNetworking.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE3DE274CB750DD0E305DF4F2E85EE3C3 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t998B9B27B04A32717965DB566133FF34 /* Pods-SYStickHeaderWaterFallTests-dummy.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tF1F7CDB84D6850267B1ADB65560C20E4 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tC4D6F3598DA3E427EA9AF1E0BC4B8CD6 /* Pods-SYStickHeaderWaterFall-dummy.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t2A476BD887D66FCE11EA523E55B19C66 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = MJRefresh;\n\t\t\ttarget = 8F74D9EA91F4C43190670066BAC37D44 /* MJRefresh */;\n\t\t\ttargetProxy = EC730CA0A1E9B39B768F3AD1F0236447 /* PBXContainerItemProxy */;\n\t\t};\n\t\t323EA68CD44848CA44DF276162A34328 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = SDWebImage;\n\t\t\ttarget = 2F99E1802D3328098F141B9C5FE66BD0 /* SDWebImage */;\n\t\t\ttargetProxy = 1C4F21BC2FF699BFC9190F345C681BFD /* PBXContainerItemProxy */;\n\t\t};\n\t\t3352DCE3F60BCE1CEF158328BAA5E2E2 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = AFNetworking;\n\t\t\ttarget = 928353533005A4198EBDA5B700D37B64 /* AFNetworking */;\n\t\t\ttargetProxy = 353EA2E496A4771CEDADBB94DFDDB5DD /* PBXContainerItemProxy */;\n\t\t};\n\t\t80D74B1828F009009ED6DF2C1087C258 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = MJExtension;\n\t\t\ttarget = 9EAB3E42EF957541E6C3C76D35FD008E /* MJExtension */;\n\t\t\ttargetProxy = 655532DE004A424BBC6880C7C4F9028F /* PBXContainerItemProxy */;\n\t\t};\n\t\t84DFB6BDB629884849ADDABDE21B5D35 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = MBProgressHUD;\n\t\t\ttarget = FE2F1D7B9D9FCEA148517E4657B243F4 /* MBProgressHUD */;\n\t\t\ttargetProxy = 7011582A5929D67AF36CE62A3DEE54FA /* PBXContainerItemProxy */;\n\t\t};\n\t\tC0450ED1571AC86DCB62D66978AC2435 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = \"SDWebImage-Category\";\n\t\t\ttarget = FB2D445CCB0D8124808BBE68AF47222E /* SDWebImage-Category */;\n\t\t\ttargetProxy = 5DB5E43123DA5A30D4634213A705024C /* PBXContainerItemProxy */;\n\t\t};\n\t\tD13E988A7C79EAE42F76803A87704749 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = SDWebImage;\n\t\t\ttarget = 2F99E1802D3328098F141B9C5FE66BD0 /* SDWebImage */;\n\t\t\ttargetProxy = AA6D4892B0C1B1EDEE93BF60E671A21B /* PBXContainerItemProxy */;\n\t\t};\n\t\tDDFF1264999DAD473FDE285EB1B008A2 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = SDWebImage;\n\t\t\ttarget = 2F99E1802D3328098F141B9C5FE66BD0 /* SDWebImage */;\n\t\t\ttargetProxy = F886CF12A711F384218C29265E7200AE /* PBXContainerItemProxy */;\n\t\t};\n\t\tE859D494CEF95C67A968E9CAF2B976AB /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = SDCycleScrollView;\n\t\t\ttarget = 57441E031E53B51D4E728A8C52F734FD /* SDCycleScrollView */;\n\t\t\ttargetProxy = 53759292D80A1072B8DAE998251C3782 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin XCBuildConfiguration section */\n\t\t031BE3CF141EE00411D4E168E91D6C6A /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = BB2992B50C2FC9943F796F2E3671DA10 /* SDWebImage.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/SDWebImage/SDWebImage-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 5.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t060E9438BD8840E65D54FB338490C0BA /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = D5FE7E72C5BA14788EC2B0EE0E94D95E /* SDCycleScrollView.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/SDCycleScrollView/SDCycleScrollView-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 7.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t1F1DCE74980303898CB8238C0E8709EE /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 46FF877C8D42B67574AB8F74D16EB2C2 /* MBProgressHUD.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/MBProgressHUD/MBProgressHUD-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 4.3;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t243BBF16E1594C6743FCFAE6A237C373 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 1A7DD86BCEC210D5368C18BC116B59CE /* Pods-SYStickHeaderWaterFallUITests.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t25CACF6DAE08EDED173832238D8A84CF /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 508FD5C42977604389820DBF293F128C /* Pods-SYStickHeaderWaterFallUITests.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t3C51C0C1DF1AF101E0EF749B8E660489 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = D392F51B01BB0FA09E7D7766EE27C558 /* AFNetworking.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/AFNetworking/AFNetworking-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 7.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t400DF81BBC993F8FFAC5FA5CD77C732D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = BB2992B50C2FC9943F796F2E3671DA10 /* SDWebImage.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/SDWebImage/SDWebImage-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 5.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t40698C1D6C03AC22DA6EDEA040F83515 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 3D1E8559BD812F4BA5C45D5265974C36 /* Pods-SYStickHeaderWaterFall.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t4330989A2E1E7CACEBC4B200A9F86887 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = D5FE7E72C5BA14788EC2B0EE0E94D95E /* SDCycleScrollView.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/SDCycleScrollView/SDCycleScrollView-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 7.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t70ED7BA863FEDDFCA6088A0E04B5409E /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"POD_CONFIGURATION_RELEASE=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tSTRIP_INSTALLED_PRODUCT = NO;\n\t\t\t\tSYMROOT = \"${SRCROOT}/../build\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t7F00E0D13B769F8E82C2427951231D07 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 4A87D7957F14C025FAA142265C6C4BF3 /* MJRefresh.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/MJRefresh/MJRefresh-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 6.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t99E4742C71374C30BEFC8419CF7F39B6 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 2A5316B7D34B978E6F16F8A25E58D1D2 /* MJExtension.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/MJExtension/MJExtension-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 6.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t9F7069EF70B95CCFA8B3B4F540A09D0C /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 4A87D7957F14C025FAA142265C6C4BF3 /* MJRefresh.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/MJRefresh/MJRefresh-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 6.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tA5256DDA7D10704941E0981FD76B9149 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 512BCA86692301FB997323E634910FDB /* Pods-SYStickHeaderWaterFallTests.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tC14E31B42496EF5C34C9BF2D27E11E2C /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 46FF877C8D42B67574AB8F74D16EB2C2 /* MBProgressHUD.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/MBProgressHUD/MBProgressHUD-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 4.3;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tCC6200B3A571BCA50A4F865DD81068F2 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 6F59847F2E0058F66104EE94E7DFFD94 /* Pods-SYStickHeaderWaterFall.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tD9C97EB576CE94D4E00FD675005D2868 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = D392F51B01BB0FA09E7D7766EE27C558 /* AFNetworking.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/AFNetworking/AFNetworking-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 7.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tDD9D44E427A00C8F3682BB62923A2341 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 9E4013995CF501DD31408485AFAC2582 /* SDWebImage-Category.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/SDWebImage-Category/SDWebImage-Category-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 5.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tDEF77D0713347E4939E127602F325659 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 2A5316B7D34B978E6F16F8A25E58D1D2 /* MJExtension.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/MJExtension/MJExtension-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 6.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE1B685D9073CDF53C548503CD4FD8B53 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"POD_CONFIGURATION_DEBUG=1\",\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSTRIP_INSTALLED_PRODUCT = NO;\n\t\t\t\tSYMROOT = \"${SRCROOT}/../build\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE970D39B398D1C6D4E1A838C6A8F9CD7 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = D91DA76594FD709E835C53732679AAC5 /* Pods-SYStickHeaderWaterFallTests.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tFAB104B72F3A1AC40CD27BF5802CF7B4 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 9E4013995CF501DD31408485AFAC2582 /* SDWebImage-Category.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/SDWebImage-Category/SDWebImage-Category-prefix.pch\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 5.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPRIVATE_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPUBLIC_HEADERS_FOLDER_PATH = \"\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t22E3E9CEAAAB0BD959E6FE3D200ACD37 /* Build configuration list for PBXNativeTarget \"SDWebImage\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t400DF81BBC993F8FFAC5FA5CD77C732D /* Debug */,\n\t\t\t\t031BE3CF141EE00411D4E168E91D6C6A /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject \"Pods\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE1B685D9073CDF53C548503CD4FD8B53 /* Debug */,\n\t\t\t\t70ED7BA863FEDDFCA6088A0E04B5409E /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t3D32356147D239362A3FF7DCAB918205 /* Build configuration list for PBXNativeTarget \"MJRefresh\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t9F7069EF70B95CCFA8B3B4F540A09D0C /* Debug */,\n\t\t\t\t7F00E0D13B769F8E82C2427951231D07 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t4FD05357961E342FE97F0D8E7950F762 /* Build configuration list for PBXNativeTarget \"SDWebImage-Category\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tFAB104B72F3A1AC40CD27BF5802CF7B4 /* Debug */,\n\t\t\t\tDD9D44E427A00C8F3682BB62923A2341 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t6A5996891C6AD94F96A3E2666D5EE66E /* Build configuration list for PBXNativeTarget \"SDCycleScrollView\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t060E9438BD8840E65D54FB338490C0BA /* Debug */,\n\t\t\t\t4330989A2E1E7CACEBC4B200A9F86887 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t77CF2A7107BC61A2E90025871305961D /* Build configuration list for PBXNativeTarget \"AFNetworking\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tD9C97EB576CE94D4E00FD675005D2868 /* Debug */,\n\t\t\t\t3C51C0C1DF1AF101E0EF749B8E660489 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t8653BB7436626E70EFB9CB3D2AA15DBB /* Build configuration list for PBXNativeTarget \"Pods-SYStickHeaderWaterFall\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t40698C1D6C03AC22DA6EDEA040F83515 /* Debug */,\n\t\t\t\tCC6200B3A571BCA50A4F865DD81068F2 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tA2FA60E97482697B691F2A926C7435A4 /* Build configuration list for PBXNativeTarget \"Pods-SYStickHeaderWaterFallUITests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t243BBF16E1594C6743FCFAE6A237C373 /* Debug */,\n\t\t\t\t25CACF6DAE08EDED173832238D8A84CF /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tECCC06F4F1551987F0834A094FDCB1CA /* Build configuration list for PBXNativeTarget \"MJExtension\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tDEF77D0713347E4939E127602F325659 /* Debug */,\n\t\t\t\t99E4742C71374C30BEFC8419CF7F39B6 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tF2F5671C4613023EE94A2E62DA06031D /* Build configuration list for PBXNativeTarget \"MBProgressHUD\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tC14E31B42496EF5C34C9BF2D27E11E2C /* Debug */,\n\t\t\t\t1F1DCE74980303898CB8238C0E8709EE /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tFE7A6799B94716D4A49A648C8FB655CC /* Build configuration list for PBXNativeTarget \"Pods-SYStickHeaderWaterFallTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tA5256DDA7D10704941E0981FD76B9149 /* Debug */,\n\t\t\t\tE970D39B398D1C6D4E1A838C6A8F9CD7 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */;\n}\n"
  },
  {
    "path": "Pods/SDCycleScrollView/LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015 GSD_iOS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"
  },
  {
    "path": "Pods/SDCycleScrollView/README.md",
    "content": "# SDCycleScrollView（新建QQ交流群：185534916）\n## ☆☆☆ “iOS第一图片轮播器” ☆☆☆\n\n### 更改记录：\n\n2016.01.21 -- 修复加载时出现item size zero提示问题\n\n2016.01.15 -- 兼容assets存放的本地图片\n\n2016.01.06 -- 0.图片管理使用SDWebImage；1.优化内存，提升性能；2.添加图片contentmode接口；3.block监听点击接口；4.滚动到某张图片监听；5.增加自定义图片pageControl接口；6.其他等等。其中有一处接口改动：pagecontrol的小圆点自定义接口改为：currentPageDotColor、pageDotColor、currentPageDotImage、pageDotImage。\n\n           \n### 无限循环自动图片轮播器(一步设置即可使用)\n\n     // 网络加载图片的轮播器\n     SDCycleScrollView *cycleScrollView = [cycleScrollViewWithFrame:frame delegate:delegate placeholderImage:placeholderImage];\n     cycleScrollView.imageURLStringsGroup = imagesURLStrings;\n     \n     // 本地加载图片的轮播器\n     SDCycleScrollView *cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame: imagesGroup:图片数组];\n    \n    \n ---------------------------------------------------------------------------------------------------------------\n \n## ??? 为什么我用这个轮播期会在顶部出现一块空白区域\n以下是本库的使用者给出的一些解决方法放在这里供大家参考：\n在iOS 7以后，controller 会对其中唯一的scrollView或其子类调整内边距，从而导致位置不准确。设置self.automaticallyAdjustsScrollViewInsets = NO;或者controller中放置不止一个scrollView或其子类时，就不会出现这种问题。以上原因是我的猜测，只要我设置了 self.automaticallyAdjustsScrollViewInsets = NO就没有那个问题了。\n \n#PS:\n \n 现已支持cocoapods导入：pod 'SDCycleScrollView','~> 1.6'\n \n \n 如需更详细的设置，参考如下：\n \n 1. cycleScrollView.pageControlAliment = SDCycleScrollViewPageContolAlimentRight; // 设置pageControl居右，默认居中\n \n 2. cycleScrollView.titlesGroup =  标题数组（数组元素个数必须和图片数组元素个数保持一致）; // 如果设置title数组，则会在图片下面添加标题\n \n 3. cycleScrollView.delegate = ; // 如需监听图片点击，请设置代理，实现代理方法\n \n 4. cycleScrollView.autoScrollTimeInterval = ;// 自定义轮播时间间隔 \n\n![](http://ww4.sinaimg.cn/bmiddle/9b8146edjw1esvytq7lwrg208p0fce82.gif)\n\n![](http://cdn.cocimg.com/bbs/attachment/Fid_19/19_441660_d01407e9c4b63d1.gif)\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAAbstractDotView.h",
    "content": "//\n//  TAAbstractDotView.h\n//  TAPageControl\n//\n//  Created by Tanguy Aladenise on 2015-01-22.\n//  Copyright (c) 2015 Tanguy Aladenise. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface TAAbstractDotView : UIView\n\n\n/**\n *  A method call let view know which state appearance it should take. Active meaning it's current page. Inactive not the current page.\n *\n *  @param active BOOL to tell if view is active or not\n */\n- (void)changeActivityState:(BOOL)active;\n\n\n@end\n\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAAbstractDotView.m",
    "content": "//\n//  TAAbstractDotView.m\n//  TAPageControl\n//\n//  Created by Tanguy Aladenise on 2015-01-22.\n//  Copyright (c) 2015 Tanguy Aladenise. All rights reserved.\n//\n\n#import \"TAAbstractDotView.h\"\n\n\n@implementation TAAbstractDotView\n\n\n- (id)init\n{\n    @throw [NSException exceptionWithName:NSInternalInconsistencyException\n                                   reason:[NSString stringWithFormat:@\"You must override %@ in %@\", NSStringFromSelector(_cmd), self.class]\n                                 userInfo:nil];\n}\n\n\n- (void)changeActivityState:(BOOL)active\n{\n    @throw [NSException exceptionWithName:NSInternalInconsistencyException\n                                   reason:[NSString stringWithFormat:@\"You must override %@ in %@\", NSStringFromSelector(_cmd), self.class]\n                                 userInfo:nil];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAAnimatedDotView.h",
    "content": "//\n//  TAAnimatedDotView.h\n//  TAPageControl\n//\n//  Created by Tanguy Aladenise on 2015-01-22.\n//  Copyright (c) 2015 Tanguy Aladenise. All rights reserved.\n//\n\n#import \"TAAbstractDotView.h\"\n\n@interface TAAnimatedDotView : TAAbstractDotView\n\n@property (nonatomic, strong) UIColor *dotColor;\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAAnimatedDotView.m",
    "content": "//\n//  TAAnimatedDotView.m\n//  TAPageControl\n//\n//  Created by Tanguy Aladenise on 2015-01-22.\n//  Copyright (c) 2015 Tanguy Aladenise. All rights reserved.\n//\n\n#import \"TAAnimatedDotView.h\"\n\nstatic CGFloat const kAnimateDuration = 1;\n\n@implementation TAAnimatedDotView\n\n- (instancetype)init\n{\n    self = [super init];\n    if (self) {\n        [self initialization];\n    }\n    \n    return self;\n}\n\n\n- (id)initWithFrame:(CGRect)frame\n{\n    self = [super initWithFrame:frame];\n    if (self) {\n        [self initialization];\n    }\n    return self;\n}\n\n\n- (id)initWithCoder:(NSCoder *)aDecoder\n{\n    self = [super initWithCoder:aDecoder];\n    if (self) {\n        [self initialization];\n    }\n    \n    return self;\n}\n\n- (void)setDotColor:(UIColor *)dotColor\n{\n    _dotColor = dotColor;\n    self.layer.borderColor  = dotColor.CGColor;\n}\n\n- (void)initialization\n{\n    _dotColor = [UIColor whiteColor];\n    self.backgroundColor    = [UIColor clearColor];\n    self.layer.cornerRadius = CGRectGetWidth(self.frame) / 2;\n    self.layer.borderColor  = [UIColor whiteColor].CGColor;\n    self.layer.borderWidth  = 2;\n}\n\n\n- (void)changeActivityState:(BOOL)active\n{\n    if (active) {\n        [self animateToActiveState];\n    } else {\n        [self animateToDeactiveState];\n    }\n}\n\n\n- (void)animateToActiveState\n{\n    [UIView animateWithDuration:kAnimateDuration delay:0 usingSpringWithDamping:.5 initialSpringVelocity:-20 options:UIViewAnimationOptionCurveLinear animations:^{\n        self.backgroundColor = _dotColor;\n        self.transform = CGAffineTransformMakeScale(1.4, 1.4);\n    } completion:nil];\n}\n\n- (void)animateToDeactiveState\n{\n    [UIView animateWithDuration:kAnimateDuration delay:0 usingSpringWithDamping:.5 initialSpringVelocity:0 options:UIViewAnimationOptionCurveLinear animations:^{\n        self.backgroundColor = [UIColor clearColor];\n        self.transform = CGAffineTransformIdentity;\n    } completion:nil];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TADotView.h",
    "content": "//\n//  TADotView.h\n//  TAPageControl\n//\n//  Created by Tanguy Aladenise on 2015-01-22.\n//  Copyright (c) 2015 Tanguy Aladenise. All rights reserved.\n//\n\n#import \"TAAbstractDotView.h\"\n\n@interface TADotView : TAAbstractDotView\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TADotView.m",
    "content": "//\n//  TADotView.m\n//  TAPageControl\n//\n//  Created by Tanguy Aladenise on 2015-01-22.\n//  Copyright (c) 2015 Tanguy Aladenise. All rights reserved.\n//\n\n#import \"TADotView.h\"\n\n@implementation TADotView\n\n\n- (instancetype)init\n{\n    self = [super init];\n    if (self) {\n        [self initialization];\n    }\n    \n    return self;\n}\n\n\n- (id)initWithFrame:(CGRect)frame\n{\n    self = [super initWithFrame:frame];\n    if (self) {\n        [self initialization];\n    }\n    return self;\n}\n\n\n- (id)initWithCoder:(NSCoder *)aDecoder\n{\n    self = [super initWithCoder:aDecoder];\n    if (self) {\n        [self initialization];\n    }\n    \n    return self;\n}\n\n- (void)initialization\n{\n    self.backgroundColor    = [UIColor clearColor];\n    self.layer.cornerRadius = CGRectGetWidth(self.frame) / 2;\n    self.layer.borderColor  = [UIColor whiteColor].CGColor;\n    self.layer.borderWidth  = 2;\n}\n\n\n- (void)changeActivityState:(BOOL)active\n{\n    if (active) {\n        self.backgroundColor = [UIColor whiteColor];\n    } else {\n        self.backgroundColor = [UIColor clearColor];\n    }\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAPageControl.h",
    "content": "//\n//  TAPageControl.h\n//  TAPageControl\n//\n//  Created by Tanguy Aladenise on 2015-01-21.\n//  Copyright (c) 2015 Tanguy Aladenise. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol TAPageControlDelegate;\n\n\n@interface TAPageControl : UIControl\n\n\n/**\n * Dot view customization properties\n */\n\n/**\n *  The Class of your custom UIView, make sure to respect the TAAbstractDotView class.\n */\n@property (nonatomic) Class dotViewClass;\n\n\n/**\n *  UIImage to represent a dot.\n */\n@property (nonatomic) UIImage *dotImage;\n\n\n/**\n *  UIImage to represent current page dot.\n */\n@property (nonatomic) UIImage *currentDotImage;\n\n\n/**\n *  Dot size for dot views. Default is 8 by 8.\n */\n@property (nonatomic) CGSize dotSize;\n\n\n@property (nonatomic, strong) UIColor *dotColor;\n\n/**\n *  Spacing between two dot views. Default is 8.\n */\n@property (nonatomic) NSInteger spacingBetweenDots;\n\n\n/**\n * Page control setup properties\n */\n\n\n/**\n * Delegate for TAPageControl\n */\n@property(nonatomic,assign) id<TAPageControlDelegate> delegate;\n\n\n/**\n *  Number of pages for control. Default is 0.\n */\n@property (nonatomic) NSInteger numberOfPages;\n\n\n/**\n *  Current page on which control is active. Default is 0.\n */\n@property (nonatomic) NSInteger currentPage;\n\n\n/**\n *  Hide the control if there is only one page. Default is NO.\n */\n@property (nonatomic) BOOL hidesForSinglePage;\n\n\n/**\n *  Let the control know if should grow bigger by keeping center, or just get longer (right side expanding). By default YES.\n */\n@property (nonatomic) BOOL shouldResizeFromCenter;\n\n\n/**\n *  Return the minimum size required to display control properly for the given page count.\n *\n *  @param pageCount Number of dots that will require display\n *\n *  @return The CGSize being the minimum size required.\n */\n- (CGSize)sizeForNumberOfPages:(NSInteger)pageCount;\n\n\n@end\n\n\n@protocol TAPageControlDelegate <NSObject>\n\n@optional\n- (void)TAPageControl:(TAPageControl *)pageControl didSelectPageAtIndex:(NSInteger)index;\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TAPageControl.m",
    "content": "//\n//  TAPageControl.m\n//  TAPageControl\n//\n//  Created by Tanguy Aladenise on 2015-01-21.\n//  Copyright (c) 2015 Tanguy Aladenise. All rights reserved.\n//\n\n#import \"TAPageControl.h\"\n#import \"TAAbstractDotView.h\"\n#import \"TAAnimatedDotView.h\"\n#import \"TADotView.h\"\n\n/**\n *  Default number of pages for initialization\n */\nstatic NSInteger const kDefaultNumberOfPages = 0;\n\n/**\n *  Default current page for initialization\n */\nstatic NSInteger const kDefaultCurrentPage = 0;\n\n/**\n *  Default setting for hide for single page feature. For initialization\n */\nstatic BOOL const kDefaultHideForSinglePage = NO;\n\n/**\n *  Default setting for shouldResizeFromCenter. For initialiation\n */\nstatic BOOL const kDefaultShouldResizeFromCenter = YES;\n\n/**\n *  Default spacing between dots\n */\nstatic NSInteger const kDefaultSpacingBetweenDots = 8;\n\n/**\n *  Default dot size\n */\nstatic CGSize const kDefaultDotSize = {8, 8};\n\n\n@interface TAPageControl()\n\n\n/**\n *  Array of dot views for reusability and touch events.\n */\n@property (strong, nonatomic) NSMutableArray *dots;\n\n\n@end\n\n@implementation TAPageControl\n\n\n#pragma mark - Lifecycle\n\n\n- (id)init\n{\n    self = [super init];\n    if (self) {\n        [self initialization];\n    }\n    \n    return self;\n}\n\n\n- (id)initWithFrame:(CGRect)frame\n{\n    self = [super initWithFrame:frame];\n    if (self) {\n        [self initialization];\n    }\n    return self;\n}\n\n\n- (id)initWithCoder:(NSCoder *)aDecoder\n{\n    self = [super initWithCoder:aDecoder];\n    if (self) {\n        [self initialization];\n    }\n    \n    return self;\n}\n\n\n/**\n *  Default setup when initiating control\n */\n- (void)initialization\n{\n    self.dotViewClass           = [TAAnimatedDotView class];\n    self.spacingBetweenDots     = kDefaultSpacingBetweenDots;\n    self.numberOfPages          = kDefaultNumberOfPages;\n    self.currentPage            = kDefaultCurrentPage;\n    self.hidesForSinglePage     = kDefaultHideForSinglePage;\n    self.shouldResizeFromCenter = kDefaultShouldResizeFromCenter;\n}\n\n\n#pragma mark - Touch event\n\n- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event\n{\n    UITouch *touch = [touches anyObject];\n    if (touch.view != self) {\n        NSInteger index = [self.dots indexOfObject:touch.view];\n        if ([self.delegate respondsToSelector:@selector(TAPageControl:didSelectPageAtIndex:)]) {\n            [self.delegate TAPageControl:self didSelectPageAtIndex:index];\n        }\n    }\n}\n\n#pragma mark - Layout\n\n\n/**\n *  Resizes and moves the receiver view so it just encloses its subviews.\n */\n- (void)sizeToFit\n{\n    [self updateFrame:YES];\n}\n\n\n- (CGSize)sizeForNumberOfPages:(NSInteger)pageCount\n{\n    return CGSizeMake((self.dotSize.width + self.spacingBetweenDots) * pageCount - self.spacingBetweenDots , self.dotSize.height);\n}\n\n\n/**\n *  Will update dots display and frame. Reuse existing views or instantiate one if required. Update their position in case frame changed.\n */\n- (void)updateDots\n{\n    if (self.numberOfPages == 0) {\n        return;\n    }\n    \n    for (NSInteger i = 0; i < self.numberOfPages; i++) {\n        \n        UIView *dot;\n        if (i < self.dots.count) {\n            dot = [self.dots objectAtIndex:i];\n        } else {\n            dot = [self generateDotView];\n        }\n        \n        [self updateDotFrame:dot atIndex:i];\n    }\n    \n    [self changeActivity:YES atIndex:self.currentPage];\n    \n    [self hideForSinglePage];\n}\n\n\n/**\n *  Update frame control to fit current number of pages. It will apply required size if authorize and required.\n *\n *  @param overrideExistingFrame BOOL to allow frame to be overriden. Meaning the required size will be apply no mattter what.\n */\n- (void)updateFrame:(BOOL)overrideExistingFrame\n{\n    CGPoint center = self.center;\n    CGSize requiredSize = [self sizeForNumberOfPages:self.numberOfPages];\n    \n    // We apply requiredSize only if authorize to and necessary\n    if (overrideExistingFrame || ((CGRectGetWidth(self.frame) < requiredSize.width || CGRectGetHeight(self.frame) < requiredSize.height) && !overrideExistingFrame)) {\n        self.frame = CGRectMake(CGRectGetMinX(self.frame), CGRectGetMinY(self.frame), requiredSize.width, requiredSize.height);\n        if (self.shouldResizeFromCenter) {\n            self.center = center;\n        }\n    }\n    \n    [self resetDotViews];\n}\n\n\n/**\n *  Update the frame of a specific dot at a specific index\n *\n *  @param dot   Dot view\n *  @param index Page index of dot\n */\n- (void)updateDotFrame:(UIView *)dot atIndex:(NSInteger)index\n{\n    // Dots are always centered within view\n    CGFloat x = (self.dotSize.width + self.spacingBetweenDots) * index + ( (CGRectGetWidth(self.frame) - [self sizeForNumberOfPages:self.numberOfPages].width) / 2);\n    CGFloat y = (CGRectGetHeight(self.frame) - self.dotSize.height) / 2;\n    \n    dot.frame = CGRectMake(x, y, self.dotSize.width, self.dotSize.height);\n}\n\n\n#pragma mark - Utils\n\n\n/**\n *  Generate a dot view and add it to the collection\n *\n *  @return The UIView object representing a dot\n */\n- (UIView *)generateDotView\n{\n    UIView *dotView;\n    \n    if (self.dotViewClass) {\n        dotView = [[self.dotViewClass alloc] initWithFrame:CGRectMake(0, 0, self.dotSize.width, self.dotSize.height)];\n        if ([dotView isKindOfClass:[TAAnimatedDotView class]] && self.dotColor) {\n            ((TAAnimatedDotView *)dotView).dotColor = self.dotColor;\n        }\n    } else {\n        dotView = [[UIImageView alloc] initWithImage:self.dotImage];\n        dotView.frame = CGRectMake(0, 0, self.dotSize.width, self.dotSize.height);\n    }\n    \n    if (dotView) {\n        [self addSubview:dotView];\n        [self.dots addObject:dotView];\n    }\n    \n    dotView.userInteractionEnabled = YES;    \n    return dotView;\n}\n\n\n/**\n *  Change activity state of a dot view. Current/not currrent.\n *\n *  @param active Active state to apply\n *  @param index  Index of dot for state update\n */\n- (void)changeActivity:(BOOL)active atIndex:(NSInteger)index\n{\n    if (self.dotViewClass) {\n        TAAbstractDotView *abstractDotView = (TAAbstractDotView *)[self.dots objectAtIndex:index];\n        if ([abstractDotView respondsToSelector:@selector(changeActivityState:)]) {\n            [abstractDotView changeActivityState:active];\n        } else {\n            NSLog(@\"Custom view : %@ must implement an 'changeActivityState' method or you can subclass %@ to help you.\", self.dotViewClass, [TAAbstractDotView class]);\n        }\n    } else if (self.dotImage && self.currentDotImage) {\n        UIImageView *dotView = (UIImageView *)[self.dots objectAtIndex:index];\n        dotView.image = (active) ? self.currentDotImage : self.dotImage;\n    }\n}\n\n\n- (void)resetDotViews\n{\n    for (UIView *dotView in self.dots) {\n        [dotView removeFromSuperview];\n    }\n    \n    [self.dots removeAllObjects];\n    [self updateDots];\n}\n\n\n- (void)hideForSinglePage\n{\n    if (self.dots.count == 1 && self.hidesForSinglePage) {\n        self.hidden = YES;\n    } else {\n        self.hidden = NO;\n    }\n}\n\n#pragma mark - Setters\n\n\n- (void)setNumberOfPages:(NSInteger)numberOfPages\n{\n    _numberOfPages = numberOfPages;\n    \n    // Update dot position to fit new number of pages\n    [self resetDotViews];\n}\n\n\n- (void)setSpacingBetweenDots:(NSInteger)spacingBetweenDots\n{\n    _spacingBetweenDots = spacingBetweenDots;\n    \n    [self resetDotViews];\n}\n\n\n- (void)setCurrentPage:(NSInteger)currentPage\n{\n    // If no pages, no current page to treat.\n    if (self.numberOfPages == 0 || currentPage == _currentPage) {\n        _currentPage = currentPage;\n        return;\n    }\n    \n    // Pre set\n    [self changeActivity:NO atIndex:_currentPage];\n    _currentPage = currentPage;\n    // Post set\n    [self changeActivity:YES atIndex:_currentPage];\n}\n\n\n- (void)setDotImage:(UIImage *)dotImage\n{\n    _dotImage = dotImage;\n    [self resetDotViews];\n    self.dotViewClass = nil;\n}\n\n\n- (void)setCurrentDotImage:(UIImage *)currentDotimage\n{\n    _currentDotImage = currentDotimage;\n    [self resetDotViews];\n    self.dotViewClass = nil;\n}\n\n\n- (void)setDotViewClass:(Class)dotViewClass\n{\n    _dotViewClass = dotViewClass;\n    self.dotSize = CGSizeZero;\n    [self resetDotViews];\n}\n\n\n#pragma mark - Getters\n\n\n- (NSMutableArray *)dots\n{\n    if (!_dots) {\n        _dots = [[NSMutableArray alloc] init];\n    }\n    \n    return _dots;\n}\n\n\n- (CGSize)dotSize\n{\n    // Dot size logic depending on the source of the dot view\n    if (self.dotImage && CGSizeEqualToSize(_dotSize, CGSizeZero)) {\n        _dotSize = self.dotImage.size;\n    } else if (self.dotViewClass && CGSizeEqualToSize(_dotSize, CGSizeZero)) {\n        _dotSize = kDefaultDotSize;\n        return _dotSize;\n    }\n    \n    return _dotSize;\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/SDCollectionViewCell.h",
    "content": "//\n//  SDCollectionViewCell.h\n//  SDCycleScrollView\n//\n//  Created by aier on 15-3-22.\n//  Copyright (c) 2015年 GSD. All rights reserved.\n//\n\n/*\n \n *********************************************************************************\n *\n * 🌟🌟🌟 新建SDCycleScrollView交流QQ群：185534916 🌟🌟🌟\n *\n * 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式联系我们，我们会及时修复bug并\n * 帮您解决问题。\n * 新浪微博:GSD_iOS\n * Email : gsdios@126.com\n * GitHub: https://github.com/gsdios\n *\n * 另（我的自动布局库SDAutoLayout）：\n *  一行代码搞定自动布局！支持Cell和Tableview高度自适应，Label和ScrollView内容自适应，致力于\n *  做最简单易用的AutoLayout库。\n * 视频教程：http://www.letv.com/ptv/vplay/24038772.html\n * 用法示例：https://github.com/gsdios/SDAutoLayout/blob/master/README.md\n * GitHub：https://github.com/gsdios/SDAutoLayout\n *********************************************************************************\n \n */\n\n\n\n#import <UIKit/UIKit.h>\n\n@interface SDCollectionViewCell : UICollectionViewCell\n\n@property (weak, nonatomic) UIImageView *imageView;\n@property (copy, nonatomic) NSString *title;\n\n@property (nonatomic, strong) UIColor *titleLabelTextColor;\n@property (nonatomic, strong) UIFont *titleLabelTextFont;\n@property (nonatomic, strong) UIColor *titleLabelBackgroundColor;\n@property (nonatomic, assign) CGFloat titleLabelHeight;\n\n@property (nonatomic, assign) BOOL hasConfigured;\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/SDCollectionViewCell.m",
    "content": "//\n//  SDCollectionViewCell.m\n//  SDCycleScrollView\n//\n//  Created by aier on 15-3-22.\n//  Copyright (c) 2015年 GSD. All rights reserved.\n//\n\n\n/*\n \n *********************************************************************************\n *\n * 🌟🌟🌟 新建SDCycleScrollView交流QQ群：185534916 🌟🌟🌟\n *\n * 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式联系我们，我们会及时修复bug并\n * 帮您解决问题。\n * 新浪微博:GSD_iOS\n * Email : gsdios@126.com\n * GitHub: https://github.com/gsdios\n *\n * 另（我的自动布局库SDAutoLayout）：\n *  一行代码搞定自动布局！支持Cell和Tableview高度自适应，Label和ScrollView内容自适应，致力于\n *  做最简单易用的AutoLayout库。\n * 视频教程：http://www.letv.com/ptv/vplay/24038772.html\n * 用法示例：https://github.com/gsdios/SDAutoLayout/blob/master/README.md\n * GitHub：https://github.com/gsdios/SDAutoLayout\n *********************************************************************************\n \n */\n\n\n#import \"SDCollectionViewCell.h\"\n#import \"UIView+SDExtension.h\"\n\n@implementation SDCollectionViewCell\n{\n    __weak UILabel *_titleLabel;\n}\n\n\n- (instancetype)initWithFrame:(CGRect)frame\n{\n    if (self = [super initWithFrame:frame]) {\n        [self setupImageView];\n        [self setupTitleLabel];\n    }\n    \n    return self;\n}\n\n- (void)setTitleLabelBackgroundColor:(UIColor *)titleLabelBackgroundColor\n{\n    _titleLabelBackgroundColor = titleLabelBackgroundColor;\n    _titleLabel.backgroundColor = titleLabelBackgroundColor;\n}\n\n- (void)setTitleLabelTextColor:(UIColor *)titleLabelTextColor\n{\n    _titleLabelTextColor = titleLabelTextColor;\n    _titleLabel.textColor = titleLabelTextColor;\n}\n\n- (void)setTitleLabelTextFont:(UIFont *)titleLabelTextFont\n{\n    _titleLabelTextFont = titleLabelTextFont;\n    _titleLabel.font = titleLabelTextFont;\n}\n\n- (void)setupImageView\n{\n    UIImageView *imageView = [[UIImageView alloc] init];\n    _imageView = imageView;\n    [self.contentView addSubview:imageView];\n}\n\n- (void)setupTitleLabel\n{\n    UILabel *titleLabel = [[UILabel alloc] init];\n    _titleLabel = titleLabel;\n    _titleLabel.hidden = YES;\n    [self.contentView addSubview:titleLabel];\n}\n\n- (void)setTitle:(NSString *)title\n{\n    _title = [title copy];\n    _titleLabel.text = [NSString stringWithFormat:@\"   %@\", title];\n}\n\n\n- (void)layoutSubviews\n{\n    [super layoutSubviews];\n    \n    _imageView.frame = self.bounds;\n    \n    CGFloat titleLabelW = self.sd_width;\n    CGFloat titleLabelH = _titleLabelHeight;\n    CGFloat titleLabelX = 0;\n    CGFloat titleLabelY = self.sd_height - titleLabelH;\n    _titleLabel.frame = CGRectMake(titleLabelX, titleLabelY, titleLabelW, titleLabelH);\n    _titleLabel.hidden = !_titleLabel.text;\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h",
    "content": "//\n//  SDCycleScrollView.h\n//  SDCycleScrollView\n//\n//  Created by aier on 15-3-22.\n//  Copyright (c) 2015年 GSD. All rights reserved.\n//\n\n/*\n \n *********************************************************************************\n *\n * 🌟🌟🌟 新建SDCycleScrollView交流QQ群：185534916 🌟🌟🌟\n *\n * 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式联系我们，我们会及时修复bug并\n * 帮您解决问题。\n * 新浪微博:GSD_iOS\n * Email : gsdios@126.com\n * GitHub: https://github.com/gsdios\n *\n * 另（我的自动布局库SDAutoLayout）：\n *  一行代码搞定自动布局！支持Cell和Tableview高度自适应，Label和ScrollView内容自适应，致力于\n *  做最简单易用的AutoLayout库。\n * 视频教程：http://www.letv.com/ptv/vplay/24038772.html\n * 用法示例：https://github.com/gsdios/SDAutoLayout/blob/master/README.md\n * GitHub：https://github.com/gsdios/SDAutoLayout\n *********************************************************************************\n \n */\n\n/*\n * 当前版本为1.6 \n * 更新日期：2016.01.10\n */\n\n#import <UIKit/UIKit.h>\n\ntypedef enum {\n    SDCycleScrollViewPageContolAlimentRight,\n    SDCycleScrollViewPageContolAlimentCenter\n} SDCycleScrollViewPageContolAliment;\n\ntypedef enum {\n    SDCycleScrollViewPageContolStyleClassic,        // 系统自带经典样式\n    SDCycleScrollViewPageContolStyleAnimated,       // 动画效果pagecontrol\n    SDCycleScrollViewPageContolStyleNone            // 不显示pagecontrol\n} SDCycleScrollViewPageContolStyle;\n\n@class SDCycleScrollView;\n\n@protocol SDCycleScrollViewDelegate <NSObject>\n\n@optional\n\n/** 点击图片回调 */\n- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index;\n\n/** 图片滚动回调 */\n- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didScrollToIndex:(NSInteger)index;\n\n@end\n\n@interface SDCycleScrollView : UIView\n\n\n\n// >>>>>>>>>>>>>>>>>>>>>>>>>>  数据源接口\n\n/** 本地图片数组 */\n@property (nonatomic, strong) NSArray *localizationImageNamesGroup;\n\n/** 网络图片 url string 数组 */\n@property (nonatomic, strong) NSArray *imageURLStringsGroup;\n\n/** 每张图片对应要显示的文字数组 */\n@property (nonatomic, strong) NSArray *titlesGroup;\n\n\n\n\n\n// >>>>>>>>>>>>>>>>>>>>>>>>>  滚动控制接口\n\n/** 自动滚动间隔时间,默认2s */\n@property (nonatomic, assign) CGFloat autoScrollTimeInterval;\n\n/** 是否无限循环,默认Yes */\n@property(nonatomic,assign) BOOL infiniteLoop;\n\n/** 是否自动滚动,默认Yes */\n@property(nonatomic,assign) BOOL autoScroll;\n\n@property (nonatomic, weak) id<SDCycleScrollViewDelegate> delegate;\n\n/** block监听点击方式 */\n@property (nonatomic, copy) void (^clickItemOperationBlock)(NSInteger currentIndex);\n\n\n// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  自定义样式接口\n\n/** 轮播图片的ContentMode，默认为 UIViewContentModeScaleToFill */\n@property (nonatomic, assign) UIViewContentMode bannerImageViewContentMode;\n\n/** 占位图，用于网络未加载到图片时 */\n@property (nonatomic, strong) UIImage *placeholderImage;\n\n\n\n/** 是否显示分页控件 */\n@property (nonatomic, assign) BOOL showPageControl;\n\n/** 是否在只有一张图时隐藏pagecontrol，默认为YES */\n@property(nonatomic) BOOL hidesForSinglePage;\n\n/** pagecontrol 样式，默认为动画样式 */\n@property (nonatomic, assign) SDCycleScrollViewPageContolStyle pageControlStyle;\n\n/** 分页控件位置 */\n@property (nonatomic, assign) SDCycleScrollViewPageContolAliment pageControlAliment;\n\n/** 分页控件小圆标大小 */\n@property (nonatomic, assign) CGSize pageControlDotSize;\n\n/** 当前分页控件小圆标颜色 */\n@property (nonatomic, strong) UIColor *currentPageDotColor;\n\n/** 其他分页控件小圆标颜色 */\n@property (nonatomic, strong) UIColor *pageDotColor;\n\n/** 当前分页控件小圆标图片 */\n@property (nonatomic, strong) UIImage *currentPageDotImage;\n\n/** 其他分页控件小圆标图片 */\n@property (nonatomic, strong) UIImage *pageDotImage;\n\n\n\n/** 轮播文字label字体颜色 */\n@property (nonatomic, strong) UIColor *titleLabelTextColor;\n\n/** 轮播文字label字体大小 */\n@property (nonatomic, strong) UIFont  *titleLabelTextFont;\n\n/** 轮播文字label背景颜色 */\n@property (nonatomic, strong) UIColor *titleLabelBackgroundColor;\n\n/** 轮播文字label高度 */\n@property (nonatomic, assign) CGFloat titleLabelHeight;\n\n\n\n/** 初始轮播图（推荐使用） */\n+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame delegate:(id<SDCycleScrollViewDelegate>)delegate placeholderImage:(UIImage *)placeholderImage;\n\n+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame imageURLStringsGroup:(NSArray *)imageURLStringsGroup;\n\n\n/** 本地图片轮播初始化方式 */\n+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame imageNamesGroup:(NSArray *)imageNamesGroup;\n\n/** 本地图片轮播初始化方式2,infiniteLoop:是否无限循环 */\n+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame shouldInfiniteLoop:(BOOL)infiniteLoop imageNamesGroup:(NSArray *)imageNamesGroup;\n\n// >>>>>>>>>>>>>>>>>>>>>>>>>  清除缓存接口\n\n/** 清除图片缓存（此次升级后统一使用SDWebImage管理图片加载和缓存）  */\n+ (void)clearImagesCache;\n\n/** 清除图片缓存（兼容旧版本方法） */\n- (void)clearCache;\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m",
    "content": "//\n//  SDCycleScrollView.m\n//  SDCycleScrollView\n//\n//  Created by aier on 15-3-22.\n//  Copyright (c) 2015年 GSD. All rights reserved.\n//\n\n/*\n \n *********************************************************************************\n *\n * 🌟🌟🌟 新建SDCycleScrollView交流QQ群：185534916 🌟🌟🌟\n *\n * 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式联系我们，我们会及时修复bug并\n * 帮您解决问题。\n * 新浪微博:GSD_iOS\n * Email : gsdios@126.com\n * GitHub: https://github.com/gsdios\n *\n * 另（我的自动布局库SDAutoLayout）：\n *  一行代码搞定自动布局！支持Cell和Tableview高度自适应，Label和ScrollView内容自适应，致力于\n *  做最简单易用的AutoLayout库。\n * 视频教程：http://www.letv.com/ptv/vplay/24038772.html\n * 用法示例：https://github.com/gsdios/SDAutoLayout/blob/master/README.md\n * GitHub：https://github.com/gsdios/SDAutoLayout\n *********************************************************************************\n \n */\n\n\n#import \"SDCycleScrollView.h\"\n#import \"SDCollectionViewCell.h\"\n#import \"UIView+SDExtension.h\"\n#import \"TAPageControl.h\"\n#import \"UIImageView+WebCache.h\"\n#import \"SDImageCache.h\"\n\n\n\nNSString * const ID = @\"cycleCell\";\n\n@interface SDCycleScrollView () <UICollectionViewDataSource, UICollectionViewDelegate>\n\n\n@property (nonatomic, weak) UICollectionView *mainView; // 显示图片的collectionView\n@property (nonatomic, weak) UICollectionViewFlowLayout *flowLayout;\n@property (nonatomic, strong) NSArray *imagePathsGroup;\n@property (nonatomic, weak) NSTimer *timer;\n@property (nonatomic, assign) NSInteger totalItemsCount;\n@property (nonatomic, weak) UIControl *pageControl;\n\n@property (nonatomic, weak) UIImageView *backgroundImageView; // 当imageURLs为空时的背景图\n\n@property (nonatomic, assign) NSInteger networkFailedRetryCount;\n\n@end\n\n@implementation SDCycleScrollView\n\n- (instancetype)initWithFrame:(CGRect)frame\n{\n    if (self = [super initWithFrame:frame]) {\n        [self initialization];\n        [self setupMainView];\n    }\n    return self;\n}\n\n- (void)awakeFromNib\n{\n    [self initialization];\n    [self setupMainView];\n}\n\n- (void)initialization\n{\n    _pageControlAliment = SDCycleScrollViewPageContolAlimentCenter;\n    _autoScrollTimeInterval = 2.0;\n    _titleLabelTextColor = [UIColor whiteColor];\n    _titleLabelTextFont= [UIFont systemFontOfSize:14];\n    _titleLabelBackgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];\n    _titleLabelHeight = 30;\n    _autoScroll = YES;\n    _infiniteLoop = YES;\n    _showPageControl = YES;\n    _pageControlDotSize = CGSizeMake(10, 10);\n    _pageControlStyle = SDCycleScrollViewPageContolStyleClassic;\n    _hidesForSinglePage = YES;\n    _currentPageDotColor = [UIColor whiteColor];\n    _pageDotColor = [UIColor lightGrayColor];\n    _bannerImageViewContentMode = UIViewContentModeScaleToFill;\n    \n    self.backgroundColor = [UIColor lightGrayColor];\n    \n}\n\n+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame imageNamesGroup:(NSArray *)imageNamesGroup\n{\n    SDCycleScrollView *cycleScrollView = [[self alloc] initWithFrame:frame];\n    cycleScrollView.localizationImageNamesGroup = [NSMutableArray arrayWithArray:imageNamesGroup];\n    return cycleScrollView;\n}\n\n+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame shouldInfiniteLoop:(BOOL)infiniteLoop imageNamesGroup:(NSArray *)imageNamesGroup\n{\n    SDCycleScrollView *cycleScrollView = [[self alloc] initWithFrame:frame];\n    cycleScrollView.infiniteLoop = infiniteLoop;\n    cycleScrollView.localizationImageNamesGroup = [NSMutableArray arrayWithArray:imageNamesGroup];\n    return cycleScrollView;\n}\n\n+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame imageURLStringsGroup:(NSArray *)imageURLsGroup\n{\n    SDCycleScrollView *cycleScrollView = [[self alloc] initWithFrame:frame];\n    cycleScrollView.imageURLStringsGroup = [NSMutableArray arrayWithArray:imageURLsGroup];\n    return cycleScrollView;\n}\n\n+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame delegate:(id<SDCycleScrollViewDelegate>)delegate placeholderImage:(UIImage *)placeholderImage\n{\n    SDCycleScrollView *cycleScrollView = [[self alloc] initWithFrame:frame];\n    cycleScrollView.delegate = delegate;\n    cycleScrollView.placeholderImage = placeholderImage;\n    \n    return cycleScrollView;\n}\n\n// 设置显示图片的collectionView\n- (void)setupMainView\n{\n    UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];\n    flowLayout.minimumLineSpacing = 0;\n    flowLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal;\n    _flowLayout = flowLayout;\n    \n    UICollectionView *mainView = [[UICollectionView alloc] initWithFrame:self.bounds collectionViewLayout:flowLayout];\n    mainView.backgroundColor = [UIColor clearColor];\n    mainView.pagingEnabled = YES;\n    mainView.showsHorizontalScrollIndicator = NO;\n    mainView.showsVerticalScrollIndicator = NO;\n    [mainView registerClass:[SDCollectionViewCell class] forCellWithReuseIdentifier:ID];\n    mainView.dataSource = self;\n    mainView.delegate = self;\n    [self addSubview:mainView];\n    _mainView = mainView;\n}\n\n\n#pragma mark - properties\n\n- (void)setPlaceholderImage:(UIImage *)placeholderImage\n{\n    _placeholderImage = placeholderImage;\n    \n    if (!self.backgroundImageView) {\n        UIImageView *bgImageView = [UIImageView new];\n        bgImageView.contentMode = UIViewContentModeScaleAspectFit;\n        [self insertSubview:bgImageView belowSubview:self.mainView];\n        self.backgroundImageView = bgImageView;\n    }\n    \n    self.backgroundImageView.image = placeholderImage;\n}\n\n- (void)setPageControlDotSize:(CGSize)pageControlDotSize\n{\n    _pageControlDotSize = pageControlDotSize;\n    [self setupPageControl];\n    if ([self.pageControl isKindOfClass:[TAPageControl class]]) {\n        TAPageControl *pageContol = (TAPageControl *)_pageControl;\n        pageContol.dotSize = pageControlDotSize;\n    }\n}\n\n- (void)setShowPageControl:(BOOL)showPageControl\n{\n    _showPageControl = showPageControl;\n    \n    _pageControl.hidden = !showPageControl;\n}\n\n- (void)setCurrentPageDotColor:(UIColor *)currentPageDotColor\n{\n    _currentPageDotColor = currentPageDotColor;\n    if ([self.pageControl isKindOfClass:[TAPageControl class]]) {\n        TAPageControl *pageControl = (TAPageControl *)_pageControl;\n        pageControl.dotColor = currentPageDotColor;\n    } else {\n        UIPageControl *pageControl = (UIPageControl *)_pageControl;\n        pageControl.currentPageIndicatorTintColor = currentPageDotColor;\n    }\n    \n}\n\n- (void)setPageDotColor:(UIColor *)pageDotColor\n{\n    _pageDotColor = pageDotColor;\n    \n    if ([self.pageDotColor isKindOfClass:[UIPageControl class]]) {\n        UIPageControl *pageControl = (UIPageControl *)_pageControl;\n        pageControl.pageIndicatorTintColor = pageDotColor;\n    }\n}\n\n- (void)setCurrentPageDotImage:(UIImage *)currentPageDotImage\n{\n    _currentPageDotImage = currentPageDotImage;\n    \n    [self setCustomPageControlDotImage:currentPageDotImage isCurrentPageDot:YES];\n}\n\n- (void)setPageDotImage:(UIImage *)pageDotImage\n{\n    _pageDotImage = pageDotImage;\n    \n    [self setCustomPageControlDotImage:pageDotImage isCurrentPageDot:NO];\n}\n\n- (void)setCustomPageControlDotImage:(UIImage *)image isCurrentPageDot:(BOOL)isCurrentPageDot\n{\n    if (!image || !self.pageControl) return;\n    \n    if ([self.pageControl isKindOfClass:[TAPageControl class]]) {\n        TAPageControl *pageControl = (TAPageControl *)_pageControl;\n        if (isCurrentPageDot) {\n            pageControl.currentDotImage = image;\n        } else {\n            pageControl.dotImage = image;\n        }\n    } else {\n        UIPageControl *pageControl = (UIPageControl *)_pageControl;\n        if (isCurrentPageDot) {\n            [pageControl setValue:image forKey:@\"_currentPageImage\"];\n        } else {\n            [pageControl setValue:image forKey:@\"_pageImage\"];\n        }\n    }\n}\n\n- (void)setInfiniteLoop:(BOOL)infiniteLoop\n{\n    _infiniteLoop = infiniteLoop;\n    \n    if (self.imagePathsGroup.count) {\n        self.imagePathsGroup = self.imagePathsGroup;\n    }\n}\n\n-(void)setAutoScroll:(BOOL)autoScroll{\n    _autoScroll = autoScroll;\n    [_timer invalidate];\n    _timer = nil;\n    \n    if (_autoScroll) {\n        [self setupTimer];\n    }\n}\n\n- (void)setAutoScrollTimeInterval:(CGFloat)autoScrollTimeInterval\n{\n    _autoScrollTimeInterval = autoScrollTimeInterval;\n    \n    [self setAutoScroll:self.autoScroll];\n}\n\n- (void)setPageControlStyle:(SDCycleScrollViewPageContolStyle)pageControlStyle\n{\n    _pageControlStyle = pageControlStyle;\n    \n    [self setupPageControl];\n}\n\n- (void)setImagePathsGroup:(NSArray *)imagePathsGroup\n{\n    _imagePathsGroup = imagePathsGroup;\n    \n    _totalItemsCount = self.infiniteLoop ? self.imagePathsGroup.count * 100 : self.imagePathsGroup.count;\n    \n    if (imagePathsGroup.count != 1) {\n        self.mainView.scrollEnabled = YES;\n        [self setAutoScroll:self.autoScroll];\n    } else {\n        self.mainView.scrollEnabled = NO;\n    }\n    \n    [self setupPageControl];\n    [self.mainView reloadData];\n}\n\n- (void)setImageURLStringsGroup:(NSArray *)imageURLStringsGroup\n{\n    _imageURLStringsGroup = imageURLStringsGroup;\n    \n    NSMutableArray *temp = [NSMutableArray new];\n    [_imageURLStringsGroup enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL * stop) {\n        NSString *urlString;\n        if ([obj isKindOfClass:[NSString class]]) {\n            urlString = obj;\n        } else if ([obj isKindOfClass:[NSURL class]]) {\n            NSURL *url = (NSURL *)obj;\n            urlString = [url absoluteString];\n        }\n        if (urlString) {\n            [temp addObject:urlString];\n        }\n    }];\n    self.imagePathsGroup = [temp copy];\n}\n\n- (void)setLocalizationImageNamesGroup:(NSArray *)localizationImageNamesGroup\n{\n    _localizationImageNamesGroup = localizationImageNamesGroup;\n    self.imagePathsGroup = [localizationImageNamesGroup copy];\n}\n\n#pragma mark - actions\n\n\n- (void)setupPageControl\n{\n    if (_pageControl) [_pageControl removeFromSuperview]; // 重新加载数据时调整\n    \n    if ((self.imagePathsGroup.count <= 1) && self.hidesForSinglePage) {\n        return;\n    }\n    \n    switch (self.pageControlStyle) {\n        case SDCycleScrollViewPageContolStyleAnimated:\n        {\n            TAPageControl *pageControl = [[TAPageControl alloc] init];\n            pageControl.numberOfPages = self.imagePathsGroup.count;\n            pageControl.dotColor = self.currentPageDotColor;\n            pageControl.userInteractionEnabled = NO;\n            [self addSubview:pageControl];\n            _pageControl = pageControl;\n        }\n            break;\n            \n        case SDCycleScrollViewPageContolStyleClassic:\n        {\n            UIPageControl *pageControl = [[UIPageControl alloc] init];\n            pageControl.numberOfPages = self.imagePathsGroup.count;\n            pageControl.currentPageIndicatorTintColor = self.currentPageDotColor;\n            pageControl.pageIndicatorTintColor = self.pageDotColor;\n            pageControl.userInteractionEnabled = NO;\n            [self addSubview:pageControl];\n            _pageControl = pageControl;\n        }\n            break;\n            \n        default:\n            break;\n    }\n    \n    // 重设pagecontroldot图片\n    self.currentPageDotImage = self.currentPageDotImage;\n    self.pageDotImage = self.pageDotImage;\n}\n\n\n- (void)automaticScroll\n{\n    if (0 == _totalItemsCount) return;\n    int currentIndex = _mainView.contentOffset.x / _flowLayout.itemSize.width;\n    int targetIndex = currentIndex + 1;\n    if (targetIndex == _totalItemsCount) {\n        if (self.infiniteLoop) {\n            targetIndex = _totalItemsCount * 0.5;\n        }else{\n            return;\n        }\n        [_mainView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:targetIndex inSection:0] atScrollPosition:UICollectionViewScrollPositionNone animated:NO];\n        return;\n    }\n    [_mainView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:targetIndex inSection:0] atScrollPosition:UICollectionViewScrollPositionNone animated:YES];\n}\n\n- (void)setupTimer\n{\n    NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:self.autoScrollTimeInterval target:self selector:@selector(automaticScroll) userInfo:nil repeats:YES];\n    _timer = timer;\n    [[NSRunLoop mainRunLoop] addTimer:timer forMode:NSRunLoopCommonModes];\n}\n\n- (void)clearCache\n{\n    [[self class] clearImagesCache];\n}\n\n+ (void)clearImagesCache\n{\n    [[[SDWebImageManager sharedManager] imageCache] clearDisk];\n}\n\n#pragma mark - life circles\n\n- (void)layoutSubviews\n{\n    [super layoutSubviews];\n    \n    _flowLayout.itemSize = self.frame.size;\n    \n    _mainView.frame = self.bounds;\n    if (_mainView.contentOffset.x == 0 &&  _totalItemsCount) {\n        int targetIndex = 0;\n        if (self.infiniteLoop) {\n            targetIndex = _totalItemsCount * 0.5;\n        }else{\n            targetIndex = 0;\n        }\n        [_mainView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:targetIndex inSection:0] atScrollPosition:UICollectionViewScrollPositionNone animated:NO];\n    }\n    \n    CGSize size = CGSizeZero;\n    if ([self.pageControl isKindOfClass:[TAPageControl class]]) {\n        TAPageControl *pageControl = (TAPageControl *)_pageControl;\n        size = [pageControl sizeForNumberOfPages:self.imagePathsGroup.count];\n    } else {\n        size = CGSizeMake(self.imagePathsGroup.count * self.pageControlDotSize.width * 1.2, self.pageControlDotSize.height);\n    }\n    CGFloat x = (self.sd_width - size.width) * 0.5;\n    if (self.pageControlAliment == SDCycleScrollViewPageContolAlimentRight) {\n        x = self.mainView.sd_width - size.width - 10;\n    }\n    CGFloat y = self.mainView.sd_height - size.height - 10;\n    \n    if ([self.pageControl isKindOfClass:[TAPageControl class]]) {\n        TAPageControl *pageControl = (TAPageControl *)_pageControl;\n        [pageControl sizeToFit];\n    }\n    \n    self.pageControl.frame = CGRectMake(x, y, size.width, size.height);\n    self.pageControl.hidden = !_showPageControl;\n    \n    if (self.backgroundImageView) {\n        self.backgroundImageView.frame = self.bounds;\n    }\n    \n}\n\n//解决当父View释放时，当前视图因为被Timer强引用而不能释放的问题\n- (void)willMoveToSuperview:(UIView *)newSuperview\n{\n    if (!newSuperview) {\n        [_timer invalidate];\n        _timer = nil;\n    }\n}\n\n//解决当timer释放后 回调scrollViewDidScroll时访问野指针导致崩溃\n- (void)dealloc {\n    _mainView.delegate = nil;\n    _mainView.dataSource = nil;\n}\n\n#pragma mark - public actions\n\n\n#pragma mark - UICollectionViewDataSource\n\n- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section\n{\n    return _totalItemsCount;\n}\n\n- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    SDCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath];\n    long itemIndex = indexPath.item % self.imagePathsGroup.count;\n    \n    NSString *imagePath = self.imagePathsGroup[itemIndex];\n    \n    if ([imagePath isKindOfClass:[NSString class]]) {\n        if ([imagePath hasPrefix:@\"http\"]) {\n            [cell.imageView sd_setImageWithURL:[NSURL URLWithString:imagePath] placeholderImage:self.placeholderImage];\n        } else {\n            cell.imageView.image = [UIImage imageNamed:imagePath];\n        }\n    } else if ([imagePath isKindOfClass:[UIImage class]]) {\n        cell.imageView.image = (UIImage *)imagePath;\n    }\n    \n    if (_titlesGroup.count && itemIndex < _titlesGroup.count) {\n        cell.title = _titlesGroup[itemIndex];\n    }\n    \n    if (!cell.hasConfigured) {\n        cell.titleLabelBackgroundColor = self.titleLabelBackgroundColor;\n        cell.titleLabelHeight = self.titleLabelHeight;\n        cell.titleLabelTextColor = self.titleLabelTextColor;\n        cell.titleLabelTextFont = self.titleLabelTextFont;\n        cell.hasConfigured = YES;\n        cell.imageView.contentMode = self.bannerImageViewContentMode;\n        cell.clipsToBounds = YES;\n    }\n    \n    return cell;\n}\n\n- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    if ([self.delegate respondsToSelector:@selector(cycleScrollView:didSelectItemAtIndex:)]) {\n        [self.delegate cycleScrollView:self didSelectItemAtIndex:indexPath.item % self.imagePathsGroup.count];\n    }\n    if (self.clickItemOperationBlock) {\n        self.clickItemOperationBlock(indexPath.item % self.imagePathsGroup.count);\n    }\n}\n\n\n#pragma mark - UIScrollViewDelegate\n\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView\n{\n    int itemIndex = (scrollView.contentOffset.x + self.mainView.sd_width * 0.5) / self.mainView.sd_width;\n    if (!self.imagePathsGroup.count) return; // 解决清除timer时偶尔会出现的问题\n    int indexOnPageControl = itemIndex % self.imagePathsGroup.count;\n    \n    if ([self.pageControl isKindOfClass:[TAPageControl class]]) {\n        TAPageControl *pageControl = (TAPageControl *)_pageControl;\n        pageControl.currentPage = indexOnPageControl;\n    } else {\n        UIPageControl *pageControl = (UIPageControl *)_pageControl;\n        pageControl.currentPage = indexOnPageControl;\n    }\n}\n\n- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView\n{\n    if (self.autoScroll) {\n        [_timer invalidate];\n        _timer = nil;\n    }\n}\n\n- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate\n{\n    if (self.autoScroll) {\n        [self setupTimer];\n    }\n}\n\n- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView\n{\n    int itemIndex = (scrollView.contentOffset.x + self.mainView.sd_width * 0.5) / self.mainView.sd_width;\n    if (!self.imagePathsGroup.count) return; // 解决清除timer时偶尔会出现的问题\n    int indexOnPageControl = itemIndex % self.imagePathsGroup.count;\n    \n    if ([self.delegate respondsToSelector:@selector(cycleScrollView:didScrollToIndex:)]) {\n        [self.delegate cycleScrollView:self didScrollToIndex:indexOnPageControl];\n    }\n}\n\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/UIView+SDExtension.h",
    "content": "//\n//  UIView+SDExtension.h\n//  SDRefreshView\n//\n//  Created by aier on 15-2-23.\n//  Copyright (c) 2015年 GSD. All rights reserved.\n//\n\n/*\n \n *********************************************************************************\n *\n * 🌟🌟🌟 新建SDCycleScrollView交流QQ群：185534916 🌟🌟🌟\n *\n * 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式联系我们，我们会及时修复bug并\n * 帮您解决问题。\n * 新浪微博:GSD_iOS\n * Email : gsdios@126.com\n * GitHub: https://github.com/gsdios\n *\n * 另（我的自动布局库SDAutoLayout）：\n *  一行代码搞定自动布局！支持Cell和Tableview高度自适应，Label和ScrollView内容自适应，致力于\n *  做最简单易用的AutoLayout库。\n * 视频教程：http://www.letv.com/ptv/vplay/24038772.html\n * 用法示例：https://github.com/gsdios/SDAutoLayout/blob/master/README.md\n * GitHub：https://github.com/gsdios/SDAutoLayout\n *********************************************************************************\n \n */\n\n#import <UIKit/UIKit.h>\n\n#define SDColorCreater(r, g, b, a) [UIColor colorWithRed:(r / 255.0) green:(g / 255.0) blue:(b / 255.0) alpha:a]\n\n\n@interface UIView (SDExtension)\n\n@property (nonatomic, assign) CGFloat sd_height;\n@property (nonatomic, assign) CGFloat sd_width;\n\n@property (nonatomic, assign) CGFloat sd_y;\n@property (nonatomic, assign) CGFloat sd_x;\n\n@end\n"
  },
  {
    "path": "Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/UIView+SDExtension.m",
    "content": "//\n//  UIView+SDExtension.m\n//  SDRefreshView\n//\n//  Created by aier on 15-2-23.\n//  Copyright (c) 2015年 GSD. All rights reserved.\n//\n\n/*\n \n *********************************************************************************\n *\n * 🌟🌟🌟 新建SDCycleScrollView交流QQ群：185534916 🌟🌟🌟\n *\n * 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式联系我们，我们会及时修复bug并\n * 帮您解决问题。\n * 新浪微博:GSD_iOS\n * Email : gsdios@126.com\n * GitHub: https://github.com/gsdios\n *\n * 另（我的自动布局库SDAutoLayout）：\n *  一行代码搞定自动布局！支持Cell和Tableview高度自适应，Label和ScrollView内容自适应，致力于\n *  做最简单易用的AutoLayout库。\n * 视频教程：http://www.letv.com/ptv/vplay/24038772.html\n * 用法示例：https://github.com/gsdios/SDAutoLayout/blob/master/README.md\n * GitHub：https://github.com/gsdios/SDAutoLayout\n *********************************************************************************\n \n */\n\n/*\n \n *********************************************************************************\n *\n * 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式联系我们，我们会及时修复bug并\n * 帮您解决问题。\n * 新浪微博:GSD_iOS\n * Email : gsdios@126.com\n * GitHub: https://github.com/gsdios\n *\n * 另（我的自动布局库SDAutoLayout）：\n *  一行代码搞定自动布局！支持Cell和Tableview高度自适应，Label和ScrollView内容自适应，致力于\n *  做最简单易用的AutoLayout库。\n * 视频教程：http://www.letv.com/ptv/vplay/24038772.html\n * 用法示例：https://github.com/gsdios/SDAutoLayout/blob/master/README.md\n * GitHub：https://github.com/gsdios/SDAutoLayout\n *********************************************************************************\n \n */\n\n\n#import \"UIView+SDExtension.h\"\n\n@implementation UIView (SDExtension)\n\n- (CGFloat)sd_height\n{\n    return self.frame.size.height;\n}\n\n- (void)setSd_height:(CGFloat)sd_height\n{\n    CGRect temp = self.frame;\n    temp.size.height = sd_height;\n    self.frame = temp;\n}\n\n- (CGFloat)sd_width\n{\n    return self.frame.size.width;\n}\n\n- (void)setSd_width:(CGFloat)sd_width\n{\n    CGRect temp = self.frame;\n    temp.size.width = sd_width;\n    self.frame = temp;\n}\n\n\n- (CGFloat)sd_y\n{\n    return self.frame.origin.y;\n}\n\n- (void)setSd_y:(CGFloat)sd_y\n{\n    CGRect temp = self.frame;\n    temp.origin.y = sd_y;\n    self.frame = temp;\n}\n\n- (CGFloat)sd_x\n{\n    return self.frame.origin.x;\n}\n\n- (void)setSd_x:(CGFloat)sd_x\n{\n    CGRect temp = self.frame;\n    temp.origin.x = sd_x;\n    self.frame = temp;\n}\n\n\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/LICENSE",
    "content": "Copyright (c) 2009 Olivier Poitrey <rs@dailymotion.com>\n \nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n \nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n \nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n"
  },
  {
    "path": "Pods/SDWebImage/README.md",
    "content": "Web Image\n=========\n[![Build Status](http://img.shields.io/travis/rs/SDWebImage/master.svg?style=flat)](https://travis-ci.org/rs/SDWebImage)\n[![Pod Version](http://img.shields.io/cocoapods/v/SDWebImage.svg?style=flat)](http://cocoadocs.org/docsets/SDWebImage/)\n[![Pod Platform](http://img.shields.io/cocoapods/p/SDWebImage.svg?style=flat)](http://cocoadocs.org/docsets/SDWebImage/)\n[![Pod License](http://img.shields.io/cocoapods/l/SDWebImage.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![Dependency Status](https://www.versioneye.com/objective-c/sdwebimage/3.3/badge.svg?style=flat)](https://www.versioneye.com/objective-c/sdwebimage/3.3)\n[![Reference Status](https://www.versioneye.com/objective-c/sdwebimage/reference_badge.svg?style=flat)](https://www.versioneye.com/objective-c/sdwebimage/references)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/rs/SDWebImage)\n\nThis library provides a category for UIImageView with support for remote images coming from the web.\n\nIt provides:\n\n- An `UIImageView` category adding web image and cache management to the Cocoa Touch framework\n- An asynchronous image downloader\n- An asynchronous memory + disk image caching with automatic cache expiration handling\n- Animated GIF support\n- WebP format support\n- A background image decompression\n- A guarantee that the same URL won't be downloaded several times\n- A guarantee that bogus URLs won't be retried again and again\n- A guarantee that main thread will never be blocked\n- Performances!\n- Use GCD and ARC\n- Arm64 support\n\nNOTE: The version 3.0 of SDWebImage isn't fully backward compatible with 2.0 and requires iOS 5.1.1\nminimum deployment version. If you need iOS < 5.0 support, please use the last [2.0 version](https://github.com/rs/SDWebImage/tree/2.0-compat).\n\n[How is SDWebImage better than X?](https://github.com/rs/SDWebImage/wiki/How-is-SDWebImage-better-than-X%3F)\n\nWho Use It\n----------\n\nFind out [who uses SDWebImage](https://github.com/rs/SDWebImage/wiki/Who-Uses-SDWebImage) and add your app to the list.\n\nHow To Use\n----------\n\nAPI documentation is available at [CocoaDocs - SDWebImage](http://cocoadocs.org/docsets/SDWebImage/)\n\n### Using UIImageView+WebCache category with UITableView\n\nJust #import the UIImageView+WebCache.h header, and call the sd_setImageWithURL:placeholderImage:\nmethod from the tableView:cellForRowAtIndexPath: UITableViewDataSource method. Everything will be\nhandled for you, from async downloads to caching management.\n\n```objective-c\n#import <SDWebImage/UIImageView+WebCache.h>\n\n...\n\n- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {\n    static NSString *MyIdentifier = @\"MyIdentifier\";\n\n    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];\n    if (cell == nil) {\n        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault\n                                       reuseIdentifier:MyIdentifier] autorelease];\n    }\n\n    // Here we use the new provided sd_setImageWithURL: method to load the web image\n    [cell.imageView sd_setImageWithURL:[NSURL URLWithString:@\"http://www.domain.com/path/to/image.jpg\"]\n                      placeholderImage:[UIImage imageNamed:@\"placeholder.png\"]];\n\n    cell.textLabel.text = @\"My Text\";\n    return cell;\n}\n```\n\n### Using blocks\n\nWith blocks, you can be notified about the image download progress and whenever the image retrieval\nhas completed with success or not:\n\n```objective-c\n// Here we use the new provided sd_setImageWithURL: method to load the web image\n[cell.imageView sd_setImageWithURL:[NSURL URLWithString:@\"http://www.domain.com/path/to/image.jpg\"]\n                      placeholderImage:[UIImage imageNamed:@\"placeholder.png\"]\n                             completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n                                ... completion code here ...\n                             }];\n```\n\nNote: neither your success nor failure block will be call if your image request is canceled before completion.\n\n### Using SDWebImageManager\n\nThe SDWebImageManager is the class behind the UIImageView+WebCache category. It ties the\nasynchronous downloader with the image cache store. You can use this class directly to benefit\nfrom web image downloading with caching in another context than a UIView (ie: with Cocoa).\n\nHere is a simple example of how to use SDWebImageManager:\n\n```objective-c\nSDWebImageManager *manager = [SDWebImageManager sharedManager];\n[manager downloadImageWithURL:imageURL\n                      options:0\n                     progress:^(NSInteger receivedSize, NSInteger expectedSize) {\n                         // progression tracking code\n                     }\n                     completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n                         if (image) {\n                             // do something with image\n                         }\n                     }];\n```\n\n### Using Asynchronous Image Downloader Independently\n\nIt's also possible to use the async image downloader independently:\n\n```objective-c\nSDWebImageDownloader *downloader = [SDWebImageDownloader sharedDownloader];\n[downloader downloadImageWithURL:imageURL\n                         options:0\n                        progress:^(NSInteger receivedSize, NSInteger expectedSize) {\n                            // progression tracking code\n                        }\n                       completed:^(UIImage *image, NSData *data, NSError *error, BOOL finished) {\n                            if (image && finished) {\n                                // do something with image\n                            }\n                        }];\n```\n\n### Using Asynchronous Image Caching Independently\n\nIt is also possible to use the async based image cache store independently. SDImageCache\nmaintains a memory cache and an optional disk cache. Disk cache write operations are performed\nasynchronous so it doesn't add unnecessary latency to the UI.\n\nThe SDImageCache class provides a singleton instance for convenience but you can create your own\ninstance if you want to create separated cache namespace.\n\nTo lookup the cache, you use the `queryDiskCacheForKey:done:` method. If the method returns nil, it means the cache\ndoesn't currently own the image. You are thus responsible for generating and caching it. The cache\nkey is an application unique identifier for the image to cache. It is generally the absolute URL of\nthe image.\n\n```objective-c\nSDImageCache *imageCache = [[SDImageCache alloc] initWithNamespace:@\"myNamespace\"];\n[imageCache queryDiskCacheForKey:myCacheKey done:^(UIImage *image) {\n    // image is not nil if image was found\n}];\n```\n\nBy default SDImageCache will lookup the disk cache if an image can't be found in the memory cache.\nYou can prevent this from happening by calling the alternative method `imageFromMemoryCacheForKey:`.\n\nTo store an image into the cache, you use the storeImage:forKey: method:\n\n```objective-c\n[[SDImageCache sharedImageCache] storeImage:myImage forKey:myCacheKey];\n```\n\nBy default, the image will be stored in memory cache as well as on disk cache (asynchronously). If\nyou want only the memory cache, use the alternative method storeImage:forKey:toDisk: with a negative\nthird argument.\n\n### Using cache key filter\n\nSometime, you may not want to use the image URL as cache key because part of the URL is dynamic\n(i.e.: for access control purpose). SDWebImageManager provides a way to set a cache key filter that\ntakes the NSURL as input, and output a cache key NSString.\n\nThe following example sets a filter in the application delegate that will remove any query-string from\nthe URL before to use it as a cache key:\n\n```objective-c\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL *url) {\n        url = [[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path];\n        return [url absoluteString];\n    };\n\n    // Your app init code...\n    return YES;\n}\n```\n\n\nCommon Problems\n---------------\n\n### Using dynamic image size with UITableViewCell\n\nUITableView determines the size of the image by the first image set for a cell. If your remote images\ndon't have the same size as your placeholder image, you may experience strange anamorphic scaling issue.\nThe following article gives a way to workaround this issue:\n\n[http://www.wrichards.com/blog/2011/11/sdwebimage-fixed-width-cell-images/](http://www.wrichards.com/blog/2011/11/sdwebimage-fixed-width-cell-images/)\n\n\n### Handle image refresh\n\nSDWebImage does very aggressive caching by default. It ignores all kind of caching control header returned by the HTTP server and cache the returned images with no time restriction. It implies your images URLs are static URLs pointing to images that never change. If the pointed image happen to change, some parts of the URL should change accordingly.\n\nIf you don't control the image server you're using, you may not be able to change the URL when its content is updated. This is the case for Facebook avatar URLs for instance. In such case, you may use the `SDWebImageRefreshCached` flag. This will slightly degrade the performance but will respect the HTTP caching control headers:\n\n``` objective-c\n[imageView sd_setImageWithURL:[NSURL URLWithString:@\"https://graph.facebook.com/olivier.poitrey/picture\"]\n                 placeholderImage:[UIImage imageNamed:@\"avatar-placeholder.png\"]\n                          options:SDWebImageRefreshCached];\n```\n\n### Add a progress indicator\n\nSee this category: https://github.com/JJSaccolo/UIActivityIndicator-for-SDWebImage\n\nInstallation\n------------\n\nThere are three ways to use SDWebImage in your project:\n- using Cocoapods\n- copying all the files into your project\n- importing the project as a static library\n\n### Installation with CocoaPods\n\n[CocoaPods](http://cocoapods.org/) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the [Get Started](http://cocoapods.org/#get_started) section for more details.\n\n#### Podfile\n```\nplatform :ios, '6.1'\npod 'SDWebImage', '~>3.7'\n```\n\nIf you are using Swift, be sure to add `use_frameworks!` and set your target to iOS 8+:\n```\nplatform :ios, '8.0'\nuse_frameworks!\n```\n\n#### Subspecs\n\nThere are 3 subspecs available now: `Core`, `MapKit` and `WebP` (this means you can install only some of the SDWebImage modules. By default, you get just `Core`, so if you need `WebP`, you need to specify it). \n\nPodfile example:\n```\npod 'SDWebImage/WebP'\n```\n\n### Installation with Carthage (iOS 8+)\n\n[Carthage](https://github.com/Carthage/Carthage) is a lightweight dependency manager for Swift and Objective-C. It leverages CocoaTouch modules and is less invasive than CocoaPods.\n\nTo install with carthage, follow the instruction on [Carthage](https://github.com/Carthage/Carthage)\n\n#### Cartfile\n```\ngithub \"rs/SDWebImage\"\n```\n\n#### Usage\nSwift\n\nIf you installed using CocoaPods:\n```\nimport SDWebImage\n```\n\nIf you installed manually:\n```\nimport WebImage\n```\n\nObjective-C\n\n```\n@import WebImage;\n```\n\n### Installation by cloning the repository\n\nIn order to gain access to all the files from the repository, you should clone it.\n```\ngit clone --recursive https://github.com/rs/SDWebImage.git\n```\n\n### Add the SDWebImage project to your project\n\n- Download and unzip the last version of the framework from the [download page](https://github.com/rs/SDWebImage/releases)\n- Right-click on the project navigator and select \"Add Files to \"Your Project\":\n- In the dialog, select SDWebImage.framework:\n- Check the \"Copy items into destination group's folder (if needed)\" checkbox\n\n### Add dependencies\n\n- In you application project app’s target settings, find the \"Build Phases\" section and open the \"Link Binary With Libraries\" block:\n- Click the \"+\" button again and select the \"ImageIO.framework\", this is needed by the progressive download feature:\n\n### Add Linker Flag\n\nOpen the \"Build Settings\" tab, in the \"Linking\" section, locate the \"Other Linker Flags\" setting and add the \"-ObjC\" flag:\n\n![Other Linker Flags](http://dl.dropbox.com/u/123346/SDWebImage/10_other_linker_flags.jpg)\n\nAlternatively, if this causes compilation problems with frameworks that extend optional libraries, such as Parse,  RestKit or opencv2, instead of the -ObjC flag use:\n```\n-force_load SDWebImage.framework/Versions/Current/SDWebImage\n```\n\nIf you're using Cocoa Pods and have any frameworks that extend optional libraries, such as Parsen RestKit or opencv2, instead of the -ObjC flag use:\n```\n-force_load $(TARGET_BUILD_DIR)/libPods.a\n```\nand this:\n```\n$(inherited)\n```\n\n### Import headers in your source files\n\nIn the source files where you need to use the library, import the header file:\n\n```objective-c\n#import <SDWebImage/UIImageView+WebCache.h>\n```\n\n### Build Project\n\nAt this point your workspace should build without error. If you are having problem, post to the Issue and the\ncommunity can help you solve it.\n\nFuture Enhancements\n-------------------\n\n- LRU memory cache cleanup instead of reset on memory warning\n\n## Licenses\n\nAll source code is licensed under the [MIT License](https://raw.github.com/rs/SDWebImage/master/LICENSE).\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/NSData+ImageContentType.h",
    "content": "//\n// Created by Fabrice Aneche on 06/01/14.\n// Copyright (c) 2014 Dailymotion. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSData (ImageContentType)\n\n/**\n *  Compute the content type for an image data\n *\n *  @param data the input data\n *\n *  @return the content type as string (i.e. image/jpeg, image/gif)\n */\n+ (NSString *)sd_contentTypeForImageData:(NSData *)data;\n\n@end\n\n\n@interface NSData (ImageContentTypeDeprecated)\n\n+ (NSString *)contentTypeForImageData:(NSData *)data __deprecated_msg(\"Use `sd_contentTypeForImageData:`\");\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/NSData+ImageContentType.m",
    "content": "//\n// Created by Fabrice Aneche on 06/01/14.\n// Copyright (c) 2014 Dailymotion. All rights reserved.\n//\n\n#import \"NSData+ImageContentType.h\"\n\n\n@implementation NSData (ImageContentType)\n\n+ (NSString *)sd_contentTypeForImageData:(NSData *)data {\n    uint8_t c;\n    [data getBytes:&c length:1];\n    switch (c) {\n        case 0xFF:\n            return @\"image/jpeg\";\n        case 0x89:\n            return @\"image/png\";\n        case 0x47:\n            return @\"image/gif\";\n        case 0x49:\n        case 0x4D:\n            return @\"image/tiff\";\n        case 0x52:\n            // R as RIFF for WEBP\n            if ([data length] < 12) {\n                return nil;\n            }\n\n            NSString *testString = [[NSString alloc] initWithData:[data subdataWithRange:NSMakeRange(0, 12)] encoding:NSASCIIStringEncoding];\n            if ([testString hasPrefix:@\"RIFF\"] && [testString hasSuffix:@\"WEBP\"]) {\n                return @\"image/webp\";\n            }\n\n            return nil;\n    }\n    return nil;\n}\n\n@end\n\n\n@implementation NSData (ImageContentTypeDeprecated)\n\n+ (NSString *)contentTypeForImageData:(NSData *)data {\n    return [self sd_contentTypeForImageData:data];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDImageCache.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <Foundation/Foundation.h>\n#import \"SDWebImageCompat.h\"\n\ntypedef NS_ENUM(NSInteger, SDImageCacheType) {\n    /**\n     * The image wasn't available the SDWebImage caches, but was downloaded from the web.\n     */\n    SDImageCacheTypeNone,\n    /**\n     * The image was obtained from the disk cache.\n     */\n    SDImageCacheTypeDisk,\n    /**\n     * The image was obtained from the memory cache.\n     */\n    SDImageCacheTypeMemory\n};\n\ntypedef void(^SDWebImageQueryCompletedBlock)(UIImage *image, SDImageCacheType cacheType);\n\ntypedef void(^SDWebImageCheckCacheCompletionBlock)(BOOL isInCache);\n\ntypedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger totalSize);\n\n/**\n * SDImageCache maintains a memory cache and an optional disk cache. Disk cache write operations are performed\n * asynchronous so it doesn’t add unnecessary latency to the UI.\n */\n@interface SDImageCache : NSObject\n\n/**\n * Decompressing images that are downloaded and cached can improve performance but can consume lot of memory.\n * Defaults to YES. Set this to NO if you are experiencing a crash due to excessive memory consumption.\n */\n@property (assign, nonatomic) BOOL shouldDecompressImages;\n\n/**\n *  disable iCloud backup [defaults to YES]\n */\n@property (assign, nonatomic) BOOL shouldDisableiCloud;\n\n/**\n * use memory cache [defaults to YES]\n */\n@property (assign, nonatomic) BOOL shouldCacheImagesInMemory;\n\n/**\n * The maximum \"total cost\" of the in-memory image cache. The cost function is the number of pixels held in memory.\n */\n@property (assign, nonatomic) NSUInteger maxMemoryCost;\n\n/**\n * The maximum number of objects the cache should hold.\n */\n@property (assign, nonatomic) NSUInteger maxMemoryCountLimit;\n\n/**\n * The maximum length of time to keep an image in the cache, in seconds\n */\n@property (assign, nonatomic) NSInteger maxCacheAge;\n\n/**\n * The maximum size of the cache, in bytes.\n */\n@property (assign, nonatomic) NSUInteger maxCacheSize;\n\n/**\n * Returns global shared cache instance\n *\n * @return SDImageCache global instance\n */\n+ (SDImageCache *)sharedImageCache;\n\n/**\n * Init a new cache store with a specific namespace\n *\n * @param ns The namespace to use for this cache store\n */\n- (id)initWithNamespace:(NSString *)ns;\n\n/**\n * Init a new cache store with a specific namespace and directory\n *\n * @param ns        The namespace to use for this cache store\n * @param directory Directory to cache disk images in\n */\n- (id)initWithNamespace:(NSString *)ns diskCacheDirectory:(NSString *)directory;\n\n-(NSString *)makeDiskCachePath:(NSString*)fullNamespace;\n\n/**\n * Add a read-only cache path to search for images pre-cached by SDImageCache\n * Useful if you want to bundle pre-loaded images with your app\n *\n * @param path The path to use for this read-only cache path\n */\n- (void)addReadOnlyCachePath:(NSString *)path;\n\n/**\n * Store an image into memory and disk cache at the given key.\n *\n * @param image The image to store\n * @param key   The unique image cache key, usually it's image absolute URL\n */\n- (void)storeImage:(UIImage *)image forKey:(NSString *)key;\n\n/**\n * Store an image into memory and optionally disk cache at the given key.\n *\n * @param image  The image to store\n * @param key    The unique image cache key, usually it's image absolute URL\n * @param toDisk Store the image to disk cache if YES\n */\n- (void)storeImage:(UIImage *)image forKey:(NSString *)key toDisk:(BOOL)toDisk;\n\n/**\n * Store an image into memory and optionally disk cache at the given key.\n *\n * @param image       The image to store\n * @param recalculate BOOL indicates if imageData can be used or a new data should be constructed from the UIImage\n * @param imageData   The image data as returned by the server, this representation will be used for disk storage\n *                    instead of converting the given image object into a storable/compressed image format in order\n *                    to save quality and CPU\n * @param key         The unique image cache key, usually it's image absolute URL\n * @param toDisk      Store the image to disk cache if YES\n */\n- (void)storeImage:(UIImage *)image recalculateFromImage:(BOOL)recalculate imageData:(NSData *)imageData forKey:(NSString *)key toDisk:(BOOL)toDisk;\n\n/**\n * Query the disk cache asynchronously.\n *\n * @param key The unique key used to store the wanted image\n */\n- (NSOperation *)queryDiskCacheForKey:(NSString *)key done:(SDWebImageQueryCompletedBlock)doneBlock;\n\n/**\n * Query the memory cache synchronously.\n *\n * @param key The unique key used to store the wanted image\n */\n- (UIImage *)imageFromMemoryCacheForKey:(NSString *)key;\n\n/**\n * Query the disk cache synchronously after checking the memory cache.\n *\n * @param key The unique key used to store the wanted image\n */\n- (UIImage *)imageFromDiskCacheForKey:(NSString *)key;\n\n/**\n * Remove the image from memory and disk cache synchronously\n *\n * @param key The unique image cache key\n */\n- (void)removeImageForKey:(NSString *)key;\n\n\n/**\n * Remove the image from memory and disk cache asynchronously\n *\n * @param key             The unique image cache key\n * @param completion      An block that should be executed after the image has been removed (optional)\n */\n- (void)removeImageForKey:(NSString *)key withCompletion:(SDWebImageNoParamsBlock)completion;\n\n/**\n * Remove the image from memory and optionally disk cache asynchronously\n *\n * @param key      The unique image cache key\n * @param fromDisk Also remove cache entry from disk if YES\n */\n- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk;\n\n/**\n * Remove the image from memory and optionally disk cache asynchronously\n *\n * @param key             The unique image cache key\n * @param fromDisk        Also remove cache entry from disk if YES\n * @param completion      An block that should be executed after the image has been removed (optional)\n */\n- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletion:(SDWebImageNoParamsBlock)completion;\n\n/**\n * Clear all memory cached images\n */\n- (void)clearMemory;\n\n/**\n * Clear all disk cached images. Non-blocking method - returns immediately.\n * @param completion    An block that should be executed after cache expiration completes (optional)\n */\n- (void)clearDiskOnCompletion:(SDWebImageNoParamsBlock)completion;\n\n/**\n * Clear all disk cached images\n * @see clearDiskOnCompletion:\n */\n- (void)clearDisk;\n\n/**\n * Remove all expired cached image from disk. Non-blocking method - returns immediately.\n * @param completionBlock An block that should be executed after cache expiration completes (optional)\n */\n- (void)cleanDiskWithCompletionBlock:(SDWebImageNoParamsBlock)completionBlock;\n\n/**\n * Remove all expired cached image from disk\n * @see cleanDiskWithCompletionBlock:\n */\n- (void)cleanDisk;\n\n/**\n * Get the size used by the disk cache\n */\n- (NSUInteger)getSize;\n\n/**\n * Get the number of images in the disk cache\n */\n- (NSUInteger)getDiskCount;\n\n/**\n * Asynchronously calculate the disk cache's size.\n */\n- (void)calculateSizeWithCompletionBlock:(SDWebImageCalculateSizeBlock)completionBlock;\n\n/**\n *  Async check if image exists in disk cache already (does not load the image)\n *\n *  @param key             the key describing the url\n *  @param completionBlock the block to be executed when the check is done.\n *  @note the completion block will be always executed on the main queue\n */\n- (void)diskImageExistsWithKey:(NSString *)key completion:(SDWebImageCheckCacheCompletionBlock)completionBlock;\n\n/**\n *  Check if image exists in disk cache already (does not load the image)\n *\n *  @param key the key describing the url\n *\n *  @return YES if an image exists for the given key\n */\n- (BOOL)diskImageExistsWithKey:(NSString *)key;\n\n/**\n *  Get the cache path for a certain key (needs the cache path root folder)\n *\n *  @param key  the key (can be obtained from url using cacheKeyForURL)\n *  @param path the cache path root folder\n *\n *  @return the cache path\n */\n- (NSString *)cachePathForKey:(NSString *)key inPath:(NSString *)path;\n\n/**\n *  Get the default cache path for a certain key\n *\n *  @param key the key (can be obtained from url using cacheKeyForURL)\n *\n *  @return the default cache path\n */\n- (NSString *)defaultCachePathForKey:(NSString *)key;\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDImageCache.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDImageCache.h\"\n#import \"SDWebImageDecoder.h\"\n#import \"UIImage+MultiFormat.h\"\n#import <CommonCrypto/CommonDigest.h>\n\n// See https://github.com/rs/SDWebImage/pull/1141 for discussion\n@interface AutoPurgeCache : NSCache\n@end\n\n@implementation AutoPurgeCache\n\n- (id)init\n{\n    self = [super init];\n    if (self) {\n        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(removeAllObjects) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];\n    }\n    return self;\n}\n\n- (void)dealloc\n{\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidReceiveMemoryWarningNotification object:nil];\n\n}\n\n@end\n\nstatic const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week\n// PNG signature bytes and data (below)\nstatic unsigned char kPNGSignatureBytes[8] = {0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A};\nstatic NSData *kPNGSignatureData = nil;\n\nBOOL ImageDataHasPNGPreffix(NSData *data);\n\nBOOL ImageDataHasPNGPreffix(NSData *data) {\n    NSUInteger pngSignatureLength = [kPNGSignatureData length];\n    if ([data length] >= pngSignatureLength) {\n        if ([[data subdataWithRange:NSMakeRange(0, pngSignatureLength)] isEqualToData:kPNGSignatureData]) {\n            return YES;\n        }\n    }\n\n    return NO;\n}\n\nFOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) {\n    return image.size.height * image.size.width * image.scale * image.scale;\n}\n\n@interface SDImageCache ()\n\n@property (strong, nonatomic) NSCache *memCache;\n@property (strong, nonatomic) NSString *diskCachePath;\n@property (strong, nonatomic) NSMutableArray *customPaths;\n@property (SDDispatchQueueSetterSementics, nonatomic) dispatch_queue_t ioQueue;\n\n@end\n\n\n@implementation SDImageCache {\n    NSFileManager *_fileManager;\n}\n\n+ (SDImageCache *)sharedImageCache {\n    static dispatch_once_t once;\n    static id instance;\n    dispatch_once(&once, ^{\n        instance = [self new];\n    });\n    return instance;\n}\n\n- (id)init {\n    return [self initWithNamespace:@\"default\"];\n}\n\n- (id)initWithNamespace:(NSString *)ns {\n    NSString *path = [self makeDiskCachePath:ns];\n    return [self initWithNamespace:ns diskCacheDirectory:path];\n}\n\n- (id)initWithNamespace:(NSString *)ns diskCacheDirectory:(NSString *)directory {\n    if ((self = [super init])) {\n        NSString *fullNamespace = [@\"com.hackemist.SDWebImageCache.\" stringByAppendingString:ns];\n\n        // initialise PNG signature data\n        kPNGSignatureData = [NSData dataWithBytes:kPNGSignatureBytes length:8];\n\n        // Create IO serial queue\n        _ioQueue = dispatch_queue_create(\"com.hackemist.SDWebImageCache\", DISPATCH_QUEUE_SERIAL);\n\n        // Init default values\n        _maxCacheAge = kDefaultCacheMaxCacheAge;\n\n        // Init the memory cache\n        _memCache = [[AutoPurgeCache alloc] init];\n        _memCache.name = fullNamespace;\n\n        // Init the disk cache\n        if (directory != nil) {\n            _diskCachePath = [directory stringByAppendingPathComponent:fullNamespace];\n        } else {\n            NSString *path = [self makeDiskCachePath:ns];\n            _diskCachePath = path;\n        }\n\n        // Set decompression to YES\n        _shouldDecompressImages = YES;\n\n        // memory cache enabled\n        _shouldCacheImagesInMemory = YES;\n\n        // Disable iCloud\n        _shouldDisableiCloud = YES;\n\n        dispatch_sync(_ioQueue, ^{\n            _fileManager = [NSFileManager new];\n        });\n\n#if TARGET_OS_IPHONE\n        // Subscribe to app events\n        [[NSNotificationCenter defaultCenter] addObserver:self\n                                                 selector:@selector(clearMemory)\n                                                     name:UIApplicationDidReceiveMemoryWarningNotification\n                                                   object:nil];\n\n        [[NSNotificationCenter defaultCenter] addObserver:self\n                                                 selector:@selector(cleanDisk)\n                                                     name:UIApplicationWillTerminateNotification\n                                                   object:nil];\n\n        [[NSNotificationCenter defaultCenter] addObserver:self\n                                                 selector:@selector(backgroundCleanDisk)\n                                                     name:UIApplicationDidEnterBackgroundNotification\n                                                   object:nil];\n#endif\n    }\n\n    return self;\n}\n\n- (void)dealloc {\n    [[NSNotificationCenter defaultCenter] removeObserver:self];\n    SDDispatchQueueRelease(_ioQueue);\n}\n\n- (void)addReadOnlyCachePath:(NSString *)path {\n    if (!self.customPaths) {\n        self.customPaths = [NSMutableArray new];\n    }\n\n    if (![self.customPaths containsObject:path]) {\n        [self.customPaths addObject:path];\n    }\n}\n\n- (NSString *)cachePathForKey:(NSString *)key inPath:(NSString *)path {\n    NSString *filename = [self cachedFileNameForKey:key];\n    return [path stringByAppendingPathComponent:filename];\n}\n\n- (NSString *)defaultCachePathForKey:(NSString *)key {\n    return [self cachePathForKey:key inPath:self.diskCachePath];\n}\n\n#pragma mark SDImageCache (private)\n\n- (NSString *)cachedFileNameForKey:(NSString *)key {\n    const char *str = [key UTF8String];\n    if (str == NULL) {\n        str = \"\";\n    }\n    unsigned char r[CC_MD5_DIGEST_LENGTH];\n    CC_MD5(str, (CC_LONG)strlen(str), r);\n    NSString *filename = [NSString stringWithFormat:@\"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%@\",\n                          r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10],\n                          r[11], r[12], r[13], r[14], r[15], [[key pathExtension] isEqualToString:@\"\"] ? @\"\" : [NSString stringWithFormat:@\".%@\", [key pathExtension]]];\n\n    return filename;\n}\n\n#pragma mark ImageCache\n\n// Init the disk cache\n-(NSString *)makeDiskCachePath:(NSString*)fullNamespace{\n    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);\n    return [paths[0] stringByAppendingPathComponent:fullNamespace];\n}\n\n- (void)storeImage:(UIImage *)image recalculateFromImage:(BOOL)recalculate imageData:(NSData *)imageData forKey:(NSString *)key toDisk:(BOOL)toDisk {\n    if (!image || !key) {\n        return;\n    }\n    // if memory cache is enabled\n    if (self.shouldCacheImagesInMemory) {\n        NSUInteger cost = SDCacheCostForImage(image);\n        [self.memCache setObject:image forKey:key cost:cost];\n    }\n\n    if (toDisk) {\n        dispatch_async(self.ioQueue, ^{\n            NSData *data = imageData;\n\n            if (image && (recalculate || !data)) {\n#if TARGET_OS_IPHONE\n                // We need to determine if the image is a PNG or a JPEG\n                // PNGs are easier to detect because they have a unique signature (http://www.w3.org/TR/PNG-Structure.html)\n                // The first eight bytes of a PNG file always contain the following (decimal) values:\n                // 137 80 78 71 13 10 26 10\n\n                // If the imageData is nil (i.e. if trying to save a UIImage directly or the image was transformed on download)\n                // and the image has an alpha channel, we will consider it PNG to avoid losing the transparency\n                int alphaInfo = CGImageGetAlphaInfo(image.CGImage);\n                BOOL hasAlpha = !(alphaInfo == kCGImageAlphaNone ||\n                                  alphaInfo == kCGImageAlphaNoneSkipFirst ||\n                                  alphaInfo == kCGImageAlphaNoneSkipLast);\n                BOOL imageIsPng = hasAlpha;\n\n                // But if we have an image data, we will look at the preffix\n                if ([imageData length] >= [kPNGSignatureData length]) {\n                    imageIsPng = ImageDataHasPNGPreffix(imageData);\n                }\n\n                if (imageIsPng) {\n                    data = UIImagePNGRepresentation(image);\n                }\n                else {\n                    data = UIImageJPEGRepresentation(image, (CGFloat)1.0);\n                }\n#else\n                data = [NSBitmapImageRep representationOfImageRepsInArray:image.representations usingType: NSJPEGFileType properties:nil];\n#endif\n            }\n\n            if (data) {\n                if (![_fileManager fileExistsAtPath:_diskCachePath]) {\n                    [_fileManager createDirectoryAtPath:_diskCachePath withIntermediateDirectories:YES attributes:nil error:NULL];\n                }\n\n                // get cache Path for image key\n                NSString *cachePathForKey = [self defaultCachePathForKey:key];\n                // transform to NSUrl\n                NSURL *fileURL = [NSURL fileURLWithPath:cachePathForKey];\n\n                [_fileManager createFileAtPath:cachePathForKey contents:data attributes:nil];\n\n                // disable iCloud backup\n                if (self.shouldDisableiCloud) {\n                    [fileURL setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:nil];\n                }\n            }\n        });\n    }\n}\n\n- (void)storeImage:(UIImage *)image forKey:(NSString *)key {\n    [self storeImage:image recalculateFromImage:YES imageData:nil forKey:key toDisk:YES];\n}\n\n- (void)storeImage:(UIImage *)image forKey:(NSString *)key toDisk:(BOOL)toDisk {\n    [self storeImage:image recalculateFromImage:YES imageData:nil forKey:key toDisk:toDisk];\n}\n\n- (BOOL)diskImageExistsWithKey:(NSString *)key {\n    BOOL exists = NO;\n    \n    // this is an exception to access the filemanager on another queue than ioQueue, but we are using the shared instance\n    // from apple docs on NSFileManager: The methods of the shared NSFileManager object can be called from multiple threads safely.\n    exists = [[NSFileManager defaultManager] fileExistsAtPath:[self defaultCachePathForKey:key]];\n\n    // fallback because of https://github.com/rs/SDWebImage/pull/976 that added the extension to the disk file name\n    // checking the key with and without the extension\n    if (!exists) {\n        exists = [[NSFileManager defaultManager] fileExistsAtPath:[[self defaultCachePathForKey:key] stringByDeletingPathExtension]];\n    }\n    \n    return exists;\n}\n\n- (void)diskImageExistsWithKey:(NSString *)key completion:(SDWebImageCheckCacheCompletionBlock)completionBlock {\n    dispatch_async(_ioQueue, ^{\n        BOOL exists = [_fileManager fileExistsAtPath:[self defaultCachePathForKey:key]];\n\n        // fallback because of https://github.com/rs/SDWebImage/pull/976 that added the extension to the disk file name\n        // checking the key with and without the extension\n        if (!exists) {\n            exists = [_fileManager fileExistsAtPath:[[self defaultCachePathForKey:key] stringByDeletingPathExtension]];\n        }\n\n        if (completionBlock) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                completionBlock(exists);\n            });\n        }\n    });\n}\n\n- (UIImage *)imageFromMemoryCacheForKey:(NSString *)key {\n    return [self.memCache objectForKey:key];\n}\n\n- (UIImage *)imageFromDiskCacheForKey:(NSString *)key {\n\n    // First check the in-memory cache...\n    UIImage *image = [self imageFromMemoryCacheForKey:key];\n    if (image) {\n        return image;\n    }\n\n    // Second check the disk cache...\n    UIImage *diskImage = [self diskImageForKey:key];\n    if (diskImage && self.shouldCacheImagesInMemory) {\n        NSUInteger cost = SDCacheCostForImage(diskImage);\n        [self.memCache setObject:diskImage forKey:key cost:cost];\n    }\n\n    return diskImage;\n}\n\n- (NSData *)diskImageDataBySearchingAllPathsForKey:(NSString *)key {\n    NSString *defaultPath = [self defaultCachePathForKey:key];\n    NSData *data = [NSData dataWithContentsOfFile:defaultPath];\n    if (data) {\n        return data;\n    }\n\n    // fallback because of https://github.com/rs/SDWebImage/pull/976 that added the extension to the disk file name\n    // checking the key with and without the extension\n    data = [NSData dataWithContentsOfFile:[defaultPath stringByDeletingPathExtension]];\n    if (data) {\n        return data;\n    }\n\n    NSArray *customPaths = [self.customPaths copy];\n    for (NSString *path in customPaths) {\n        NSString *filePath = [self cachePathForKey:key inPath:path];\n        NSData *imageData = [NSData dataWithContentsOfFile:filePath];\n        if (imageData) {\n            return imageData;\n        }\n\n        // fallback because of https://github.com/rs/SDWebImage/pull/976 that added the extension to the disk file name\n        // checking the key with and without the extension\n        imageData = [NSData dataWithContentsOfFile:[filePath stringByDeletingPathExtension]];\n        if (imageData) {\n            return imageData;\n        }\n    }\n\n    return nil;\n}\n\n- (UIImage *)diskImageForKey:(NSString *)key {\n    NSData *data = [self diskImageDataBySearchingAllPathsForKey:key];\n    if (data) {\n        UIImage *image = [UIImage sd_imageWithData:data];\n        image = [self scaledImageForKey:key image:image];\n        if (self.shouldDecompressImages) {\n            image = [UIImage decodedImageWithImage:image];\n        }\n        return image;\n    }\n    else {\n        return nil;\n    }\n}\n\n- (UIImage *)scaledImageForKey:(NSString *)key image:(UIImage *)image {\n    return SDScaledImageForKey(key, image);\n}\n\n- (NSOperation *)queryDiskCacheForKey:(NSString *)key done:(SDWebImageQueryCompletedBlock)doneBlock {\n    if (!doneBlock) {\n        return nil;\n    }\n\n    if (!key) {\n        doneBlock(nil, SDImageCacheTypeNone);\n        return nil;\n    }\n\n    // First check the in-memory cache...\n    UIImage *image = [self imageFromMemoryCacheForKey:key];\n    if (image) {\n        doneBlock(image, SDImageCacheTypeMemory);\n        return nil;\n    }\n\n    NSOperation *operation = [NSOperation new];\n    dispatch_async(self.ioQueue, ^{\n        if (operation.isCancelled) {\n            return;\n        }\n\n        @autoreleasepool {\n            UIImage *diskImage = [self diskImageForKey:key];\n            if (diskImage && self.shouldCacheImagesInMemory) {\n                NSUInteger cost = SDCacheCostForImage(diskImage);\n                [self.memCache setObject:diskImage forKey:key cost:cost];\n            }\n\n            dispatch_async(dispatch_get_main_queue(), ^{\n                doneBlock(diskImage, SDImageCacheTypeDisk);\n            });\n        }\n    });\n\n    return operation;\n}\n\n- (void)removeImageForKey:(NSString *)key {\n    [self removeImageForKey:key withCompletion:nil];\n}\n\n- (void)removeImageForKey:(NSString *)key withCompletion:(SDWebImageNoParamsBlock)completion {\n    [self removeImageForKey:key fromDisk:YES withCompletion:completion];\n}\n\n- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk {\n    [self removeImageForKey:key fromDisk:fromDisk withCompletion:nil];\n}\n\n- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletion:(SDWebImageNoParamsBlock)completion {\n    \n    if (key == nil) {\n        return;\n    }\n\n    if (self.shouldCacheImagesInMemory) {\n        [self.memCache removeObjectForKey:key];\n    }\n\n    if (fromDisk) {\n        dispatch_async(self.ioQueue, ^{\n            [_fileManager removeItemAtPath:[self defaultCachePathForKey:key] error:nil];\n            \n            if (completion) {\n                dispatch_async(dispatch_get_main_queue(), ^{\n                    completion();\n                });\n            }\n        });\n    } else if (completion){\n        completion();\n    }\n    \n}\n\n- (void)setMaxMemoryCost:(NSUInteger)maxMemoryCost {\n    self.memCache.totalCostLimit = maxMemoryCost;\n}\n\n- (NSUInteger)maxMemoryCost {\n    return self.memCache.totalCostLimit;\n}\n\n- (NSUInteger)maxMemoryCountLimit {\n    return self.memCache.countLimit;\n}\n\n- (void)setMaxMemoryCountLimit:(NSUInteger)maxCountLimit {\n    self.memCache.countLimit = maxCountLimit;\n}\n\n- (void)clearMemory {\n    [self.memCache removeAllObjects];\n}\n\n- (void)clearDisk {\n    [self clearDiskOnCompletion:nil];\n}\n\n- (void)clearDiskOnCompletion:(SDWebImageNoParamsBlock)completion\n{\n    dispatch_async(self.ioQueue, ^{\n        [_fileManager removeItemAtPath:self.diskCachePath error:nil];\n        [_fileManager createDirectoryAtPath:self.diskCachePath\n                withIntermediateDirectories:YES\n                                 attributes:nil\n                                      error:NULL];\n\n        if (completion) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                completion();\n            });\n        }\n    });\n}\n\n- (void)cleanDisk {\n    [self cleanDiskWithCompletionBlock:nil];\n}\n\n- (void)cleanDiskWithCompletionBlock:(SDWebImageNoParamsBlock)completionBlock {\n    dispatch_async(self.ioQueue, ^{\n        NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES];\n        NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLContentModificationDateKey, NSURLTotalFileAllocatedSizeKey];\n\n        // This enumerator prefetches useful properties for our cache files.\n        NSDirectoryEnumerator *fileEnumerator = [_fileManager enumeratorAtURL:diskCacheURL\n                                                   includingPropertiesForKeys:resourceKeys\n                                                                      options:NSDirectoryEnumerationSkipsHiddenFiles\n                                                                 errorHandler:NULL];\n\n        NSDate *expirationDate = [NSDate dateWithTimeIntervalSinceNow:-self.maxCacheAge];\n        NSMutableDictionary *cacheFiles = [NSMutableDictionary dictionary];\n        NSUInteger currentCacheSize = 0;\n\n        // Enumerate all of the files in the cache directory.  This loop has two purposes:\n        //\n        //  1. Removing files that are older than the expiration date.\n        //  2. Storing file attributes for the size-based cleanup pass.\n        NSMutableArray *urlsToDelete = [[NSMutableArray alloc] init];\n        for (NSURL *fileURL in fileEnumerator) {\n            NSDictionary *resourceValues = [fileURL resourceValuesForKeys:resourceKeys error:NULL];\n\n            // Skip directories.\n            if ([resourceValues[NSURLIsDirectoryKey] boolValue]) {\n                continue;\n            }\n\n            // Remove files that are older than the expiration date;\n            NSDate *modificationDate = resourceValues[NSURLContentModificationDateKey];\n            if ([[modificationDate laterDate:expirationDate] isEqualToDate:expirationDate]) {\n                [urlsToDelete addObject:fileURL];\n                continue;\n            }\n\n            // Store a reference to this file and account for its total size.\n            NSNumber *totalAllocatedSize = resourceValues[NSURLTotalFileAllocatedSizeKey];\n            currentCacheSize += [totalAllocatedSize unsignedIntegerValue];\n            [cacheFiles setObject:resourceValues forKey:fileURL];\n        }\n        \n        for (NSURL *fileURL in urlsToDelete) {\n            [_fileManager removeItemAtURL:fileURL error:nil];\n        }\n\n        // If our remaining disk cache exceeds a configured maximum size, perform a second\n        // size-based cleanup pass.  We delete the oldest files first.\n        if (self.maxCacheSize > 0 && currentCacheSize > self.maxCacheSize) {\n            // Target half of our maximum cache size for this cleanup pass.\n            const NSUInteger desiredCacheSize = self.maxCacheSize / 2;\n\n            // Sort the remaining cache files by their last modification time (oldest first).\n            NSArray *sortedFiles = [cacheFiles keysSortedByValueWithOptions:NSSortConcurrent\n                                                            usingComparator:^NSComparisonResult(id obj1, id obj2) {\n                                                                return [obj1[NSURLContentModificationDateKey] compare:obj2[NSURLContentModificationDateKey]];\n                                                            }];\n\n            // Delete files until we fall below our desired cache size.\n            for (NSURL *fileURL in sortedFiles) {\n                if ([_fileManager removeItemAtURL:fileURL error:nil]) {\n                    NSDictionary *resourceValues = cacheFiles[fileURL];\n                    NSNumber *totalAllocatedSize = resourceValues[NSURLTotalFileAllocatedSizeKey];\n                    currentCacheSize -= [totalAllocatedSize unsignedIntegerValue];\n\n                    if (currentCacheSize < desiredCacheSize) {\n                        break;\n                    }\n                }\n            }\n        }\n        if (completionBlock) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                completionBlock();\n            });\n        }\n    });\n}\n\n- (void)backgroundCleanDisk {\n    Class UIApplicationClass = NSClassFromString(@\"UIApplication\");\n    if(!UIApplicationClass || ![UIApplicationClass respondsToSelector:@selector(sharedApplication)]) {\n        return;\n    }\n    UIApplication *application = [UIApplication performSelector:@selector(sharedApplication)];\n    __block UIBackgroundTaskIdentifier bgTask = [application beginBackgroundTaskWithExpirationHandler:^{\n        // Clean up any unfinished task business by marking where you\n        // stopped or ending the task outright.\n        [application endBackgroundTask:bgTask];\n        bgTask = UIBackgroundTaskInvalid;\n    }];\n\n    // Start the long-running task and return immediately.\n    [self cleanDiskWithCompletionBlock:^{\n        [application endBackgroundTask:bgTask];\n        bgTask = UIBackgroundTaskInvalid;\n    }];\n}\n\n- (NSUInteger)getSize {\n    __block NSUInteger size = 0;\n    dispatch_sync(self.ioQueue, ^{\n        NSDirectoryEnumerator *fileEnumerator = [_fileManager enumeratorAtPath:self.diskCachePath];\n        for (NSString *fileName in fileEnumerator) {\n            NSString *filePath = [self.diskCachePath stringByAppendingPathComponent:fileName];\n            NSDictionary *attrs = [[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:nil];\n            size += [attrs fileSize];\n        }\n    });\n    return size;\n}\n\n- (NSUInteger)getDiskCount {\n    __block NSUInteger count = 0;\n    dispatch_sync(self.ioQueue, ^{\n        NSDirectoryEnumerator *fileEnumerator = [_fileManager enumeratorAtPath:self.diskCachePath];\n        count = [[fileEnumerator allObjects] count];\n    });\n    return count;\n}\n\n- (void)calculateSizeWithCompletionBlock:(SDWebImageCalculateSizeBlock)completionBlock {\n    NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES];\n\n    dispatch_async(self.ioQueue, ^{\n        NSUInteger fileCount = 0;\n        NSUInteger totalSize = 0;\n\n        NSDirectoryEnumerator *fileEnumerator = [_fileManager enumeratorAtURL:diskCacheURL\n                                                   includingPropertiesForKeys:@[NSFileSize]\n                                                                      options:NSDirectoryEnumerationSkipsHiddenFiles\n                                                                 errorHandler:NULL];\n\n        for (NSURL *fileURL in fileEnumerator) {\n            NSNumber *fileSize;\n            [fileURL getResourceValue:&fileSize forKey:NSURLFileSizeKey error:NULL];\n            totalSize += [fileSize unsignedIntegerValue];\n            fileCount += 1;\n        }\n\n        if (completionBlock) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                completionBlock(fileCount, totalSize);\n            });\n        }\n    });\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageCompat.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n * (c) Jamie Pinkham\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <TargetConditionals.h>\n\n#ifdef __OBJC_GC__\n#error SDWebImage does not support Objective-C Garbage Collection\n#endif\n\n#if __IPHONE_OS_VERSION_MIN_REQUIRED != 20000 && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_5_0\n#error SDWebImage doesn't support Deployment Target version < 5.0\n#endif\n\n#if !TARGET_OS_IPHONE\n#import <AppKit/AppKit.h>\n#ifndef UIImage\n#define UIImage NSImage\n#endif\n#ifndef UIImageView\n#define UIImageView NSImageView\n#endif\n#else\n\n#import <UIKit/UIKit.h>\n\n#endif\n\n#ifndef NS_ENUM\n#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type\n#endif\n\n#ifndef NS_OPTIONS\n#define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type\n#endif\n\n#if OS_OBJECT_USE_OBJC\n    #undef SDDispatchQueueRelease\n    #undef SDDispatchQueueSetterSementics\n    #define SDDispatchQueueRelease(q)\n    #define SDDispatchQueueSetterSementics strong\n#else\n#undef SDDispatchQueueRelease\n#undef SDDispatchQueueSetterSementics\n#define SDDispatchQueueRelease(q) (dispatch_release(q))\n#define SDDispatchQueueSetterSementics assign\n#endif\n\nextern UIImage *SDScaledImageForKey(NSString *key, UIImage *image);\n\ntypedef void(^SDWebImageNoParamsBlock)();\n\nextern NSString *const SDWebImageErrorDomain;\n\n#define dispatch_main_sync_safe(block)\\\n    if ([NSThread isMainThread]) {\\\n        block();\\\n    } else {\\\n        dispatch_sync(dispatch_get_main_queue(), block);\\\n    }\n\n#define dispatch_main_async_safe(block)\\\n    if ([NSThread isMainThread]) {\\\n        block();\\\n    } else {\\\n        dispatch_async(dispatch_get_main_queue(), block);\\\n    }\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageCompat.m",
    "content": "//\n//  SDWebImageCompat.m\n//  SDWebImage\n//\n//  Created by Olivier Poitrey on 11/12/12.\n//  Copyright (c) 2012 Dailymotion. All rights reserved.\n//\n\n#import \"SDWebImageCompat.h\"\n\n#if !__has_feature(objc_arc)\n#error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag\n#endif\n\ninline UIImage *SDScaledImageForKey(NSString *key, UIImage *image) {\n    if (!image) {\n        return nil;\n    }\n    \n    if ([image.images count] > 0) {\n        NSMutableArray *scaledImages = [NSMutableArray array];\n\n        for (UIImage *tempImage in image.images) {\n            [scaledImages addObject:SDScaledImageForKey(key, tempImage)];\n        }\n\n        return [UIImage animatedImageWithImages:scaledImages duration:image.duration];\n    }\n    else {\n        if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {\n            CGFloat scale = [UIScreen mainScreen].scale;\n            if (key.length >= 8) {\n                NSRange range = [key rangeOfString:@\"@2x.\"];\n                if (range.location != NSNotFound) {\n                    scale = 2.0;\n                }\n                \n                range = [key rangeOfString:@\"@3x.\"];\n                if (range.location != NSNotFound) {\n                    scale = 3.0;\n                }\n            }\n\n            UIImage *scaledImage = [[UIImage alloc] initWithCGImage:image.CGImage scale:scale orientation:image.imageOrientation];\n            image = scaledImage;\n        }\n        return image;\n    }\n}\n\nNSString *const SDWebImageErrorDomain = @\"SDWebImageErrorDomain\";\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageDecoder.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * Created by james <https://github.com/mystcolor> on 9/28/11.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <Foundation/Foundation.h>\n#import \"SDWebImageCompat.h\"\n\n@interface UIImage (ForceDecode)\n\n+ (UIImage *)decodedImageWithImage:(UIImage *)image;\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageDecoder.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * Created by james <https://github.com/mystcolor> on 9/28/11.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDWebImageDecoder.h\"\n\n@implementation UIImage (ForceDecode)\n\n+ (UIImage *)decodedImageWithImage:(UIImage *)image {\n    // while downloading huge amount of images\n    // autorelease the bitmap context\n    // and all vars to help system to free memory\n    // when there are memory warning.\n    // on iOS7, do not forget to call\n    // [[SDImageCache sharedImageCache] clearMemory];\n    @autoreleasepool{\n        // do not decode animated images\n        if (image.images) { return image; }\n    \n        CGImageRef imageRef = image.CGImage;\n    \n        CGImageAlphaInfo alpha = CGImageGetAlphaInfo(imageRef);\n        BOOL anyAlpha = (alpha == kCGImageAlphaFirst ||\n                         alpha == kCGImageAlphaLast ||\n                         alpha == kCGImageAlphaPremultipliedFirst ||\n                         alpha == kCGImageAlphaPremultipliedLast);\n    \n        if (anyAlpha) { return image; }\n    \n        size_t width = CGImageGetWidth(imageRef);\n        size_t height = CGImageGetHeight(imageRef);\n    \n        // current\n        CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(CGImageGetColorSpace(imageRef));\n        CGColorSpaceRef colorspaceRef = CGImageGetColorSpace(imageRef);\n        \n        bool unsupportedColorSpace = (imageColorSpaceModel == 0 || imageColorSpaceModel == -1 || imageColorSpaceModel == kCGColorSpaceModelCMYK || imageColorSpaceModel == kCGColorSpaceModelIndexed);\n        if (unsupportedColorSpace)\n            colorspaceRef = CGColorSpaceCreateDeviceRGB();\n    \n        CGContextRef context = CGBitmapContextCreate(NULL, width,\n                                                     height,\n                                                     CGImageGetBitsPerComponent(imageRef),\n                                                     0,\n                                                     colorspaceRef,\n                                                     kCGBitmapByteOrderDefault | kCGImageAlphaPremultipliedFirst);\n    \n        // Draw the image into the context and retrieve the new image, which will now have an alpha layer\n        CGContextDrawImage(context, CGRectMake(0, 0, width, height), imageRef);\n        CGImageRef imageRefWithAlpha = CGBitmapContextCreateImage(context);\n        UIImage *imageWithAlpha = [UIImage imageWithCGImage:imageRefWithAlpha scale:image.scale orientation:image.imageOrientation];\n    \n        if (unsupportedColorSpace)\n            CGColorSpaceRelease(colorspaceRef);\n        \n        CGContextRelease(context);\n        CGImageRelease(imageRefWithAlpha);\n        \n        return imageWithAlpha;\n    }\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageDownloader.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <Foundation/Foundation.h>\n#import \"SDWebImageCompat.h\"\n#import \"SDWebImageOperation.h\"\n\ntypedef NS_OPTIONS(NSUInteger, SDWebImageDownloaderOptions) {\n    SDWebImageDownloaderLowPriority = 1 << 0,\n    SDWebImageDownloaderProgressiveDownload = 1 << 1,\n\n    /**\n     * By default, request prevent the of NSURLCache. With this flag, NSURLCache\n     * is used with default policies.\n     */\n    SDWebImageDownloaderUseNSURLCache = 1 << 2,\n\n    /**\n     * Call completion block with nil image/imageData if the image was read from NSURLCache\n     * (to be combined with `SDWebImageDownloaderUseNSURLCache`).\n     */\n\n    SDWebImageDownloaderIgnoreCachedResponse = 1 << 3,\n    /**\n     * In iOS 4+, continue the download of the image if the app goes to background. This is achieved by asking the system for\n     * extra time in background to let the request finish. If the background task expires the operation will be cancelled.\n     */\n\n    SDWebImageDownloaderContinueInBackground = 1 << 4,\n\n    /**\n     * Handles cookies stored in NSHTTPCookieStore by setting \n     * NSMutableURLRequest.HTTPShouldHandleCookies = YES;\n     */\n    SDWebImageDownloaderHandleCookies = 1 << 5,\n\n    /**\n     * Enable to allow untrusted SSL certificates.\n     * Useful for testing purposes. Use with caution in production.\n     */\n    SDWebImageDownloaderAllowInvalidSSLCertificates = 1 << 6,\n\n    /**\n     * Put the image in the high priority queue.\n     */\n    SDWebImageDownloaderHighPriority = 1 << 7,\n};\n\ntypedef NS_ENUM(NSInteger, SDWebImageDownloaderExecutionOrder) {\n    /**\n     * Default value. All download operations will execute in queue style (first-in-first-out).\n     */\n    SDWebImageDownloaderFIFOExecutionOrder,\n\n    /**\n     * All download operations will execute in stack style (last-in-first-out).\n     */\n    SDWebImageDownloaderLIFOExecutionOrder\n};\n\nextern NSString *const SDWebImageDownloadStartNotification;\nextern NSString *const SDWebImageDownloadStopNotification;\n\ntypedef void(^SDWebImageDownloaderProgressBlock)(NSInteger receivedSize, NSInteger expectedSize);\n\ntypedef void(^SDWebImageDownloaderCompletedBlock)(UIImage *image, NSData *data, NSError *error, BOOL finished);\n\ntypedef NSDictionary *(^SDWebImageDownloaderHeadersFilterBlock)(NSURL *url, NSDictionary *headers);\n\n/**\n * Asynchronous downloader dedicated and optimized for image loading.\n */\n@interface SDWebImageDownloader : NSObject\n\n/**\n * Decompressing images that are downloaded and cached can improve performance but can consume lot of memory.\n * Defaults to YES. Set this to NO if you are experiencing a crash due to excessive memory consumption.\n */\n@property (assign, nonatomic) BOOL shouldDecompressImages;\n\n@property (assign, nonatomic) NSInteger maxConcurrentDownloads;\n\n/**\n * Shows the current amount of downloads that still need to be downloaded\n */\n@property (readonly, nonatomic) NSUInteger currentDownloadCount;\n\n\n/**\n *  The timeout value (in seconds) for the download operation. Default: 15.0.\n */\n@property (assign, nonatomic) NSTimeInterval downloadTimeout;\n\n\n/**\n * Changes download operations execution order. Default value is `SDWebImageDownloaderFIFOExecutionOrder`.\n */\n@property (assign, nonatomic) SDWebImageDownloaderExecutionOrder executionOrder;\n\n/**\n *  Singleton method, returns the shared instance\n *\n *  @return global shared instance of downloader class\n */\n+ (SDWebImageDownloader *)sharedDownloader;\n\n/**\n *  Set the default URL credential to be set for request operations.\n */\n@property (strong, nonatomic) NSURLCredential *urlCredential;\n\n/**\n * Set username\n */\n@property (strong, nonatomic) NSString *username;\n\n/**\n * Set password\n */\n@property (strong, nonatomic) NSString *password;\n\n/**\n * Set filter to pick headers for downloading image HTTP request.\n *\n * This block will be invoked for each downloading image request, returned\n * NSDictionary will be used as headers in corresponding HTTP request.\n */\n@property (nonatomic, copy) SDWebImageDownloaderHeadersFilterBlock headersFilter;\n\n/**\n * Set a value for a HTTP header to be appended to each download HTTP request.\n *\n * @param value The value for the header field. Use `nil` value to remove the header.\n * @param field The name of the header field to set.\n */\n- (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)field;\n\n/**\n * Returns the value of the specified HTTP header field.\n *\n * @return The value associated with the header field field, or `nil` if there is no corresponding header field.\n */\n- (NSString *)valueForHTTPHeaderField:(NSString *)field;\n\n/**\n * Sets a subclass of `SDWebImageDownloaderOperation` as the default\n * `NSOperation` to be used each time SDWebImage constructs a request\n * operation to download an image.\n *\n * @param operationClass The subclass of `SDWebImageDownloaderOperation` to set \n *        as default. Passing `nil` will revert to `SDWebImageDownloaderOperation`.\n */\n- (void)setOperationClass:(Class)operationClass;\n\n/**\n * Creates a SDWebImageDownloader async downloader instance with a given URL\n *\n * The delegate will be informed when the image is finish downloaded or an error has happen.\n *\n * @see SDWebImageDownloaderDelegate\n *\n * @param url            The URL to the image to download\n * @param options        The options to be used for this download\n * @param progressBlock  A block called repeatedly while the image is downloading\n * @param completedBlock A block called once the download is completed.\n *                       If the download succeeded, the image parameter is set, in case of error,\n *                       error parameter is set with the error. The last parameter is always YES\n *                       if SDWebImageDownloaderProgressiveDownload isn't use. With the\n *                       SDWebImageDownloaderProgressiveDownload option, this block is called\n *                       repeatedly with the partial image object and the finished argument set to NO\n *                       before to be called a last time with the full image and finished argument\n *                       set to YES. In case of error, the finished argument is always YES.\n *\n * @return A cancellable SDWebImageOperation\n */\n- (id <SDWebImageOperation>)downloadImageWithURL:(NSURL *)url\n                                         options:(SDWebImageDownloaderOptions)options\n                                        progress:(SDWebImageDownloaderProgressBlock)progressBlock\n                                       completed:(SDWebImageDownloaderCompletedBlock)completedBlock;\n\n/**\n * Sets the download queue suspension state\n */\n- (void)setSuspended:(BOOL)suspended;\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageDownloader.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDWebImageDownloader.h\"\n#import \"SDWebImageDownloaderOperation.h\"\n#import <ImageIO/ImageIO.h>\n\nstatic NSString *const kProgressCallbackKey = @\"progress\";\nstatic NSString *const kCompletedCallbackKey = @\"completed\";\n\n@interface SDWebImageDownloader ()\n\n@property (strong, nonatomic) NSOperationQueue *downloadQueue;\n@property (weak, nonatomic) NSOperation *lastAddedOperation;\n@property (assign, nonatomic) Class operationClass;\n@property (strong, nonatomic) NSMutableDictionary *URLCallbacks;\n@property (strong, nonatomic) NSMutableDictionary *HTTPHeaders;\n// This queue is used to serialize the handling of the network responses of all the download operation in a single queue\n@property (SDDispatchQueueSetterSementics, nonatomic) dispatch_queue_t barrierQueue;\n\n@end\n\n@implementation SDWebImageDownloader\n\n+ (void)initialize {\n    // Bind SDNetworkActivityIndicator if available (download it here: http://github.com/rs/SDNetworkActivityIndicator )\n    // To use it, just add #import \"SDNetworkActivityIndicator.h\" in addition to the SDWebImage import\n    if (NSClassFromString(@\"SDNetworkActivityIndicator\")) {\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Warc-performSelector-leaks\"\n        id activityIndicator = [NSClassFromString(@\"SDNetworkActivityIndicator\") performSelector:NSSelectorFromString(@\"sharedActivityIndicator\")];\n#pragma clang diagnostic pop\n\n        // Remove observer in case it was previously added.\n        [[NSNotificationCenter defaultCenter] removeObserver:activityIndicator name:SDWebImageDownloadStartNotification object:nil];\n        [[NSNotificationCenter defaultCenter] removeObserver:activityIndicator name:SDWebImageDownloadStopNotification object:nil];\n\n        [[NSNotificationCenter defaultCenter] addObserver:activityIndicator\n                                                 selector:NSSelectorFromString(@\"startActivity\")\n                                                     name:SDWebImageDownloadStartNotification object:nil];\n        [[NSNotificationCenter defaultCenter] addObserver:activityIndicator\n                                                 selector:NSSelectorFromString(@\"stopActivity\")\n                                                     name:SDWebImageDownloadStopNotification object:nil];\n    }\n}\n\n+ (SDWebImageDownloader *)sharedDownloader {\n    static dispatch_once_t once;\n    static id instance;\n    dispatch_once(&once, ^{\n        instance = [self new];\n    });\n    return instance;\n}\n\n- (id)init {\n    if ((self = [super init])) {\n        _operationClass = [SDWebImageDownloaderOperation class];\n        _shouldDecompressImages = YES;\n        _executionOrder = SDWebImageDownloaderFIFOExecutionOrder;\n        _downloadQueue = [NSOperationQueue new];\n        _downloadQueue.maxConcurrentOperationCount = 6;\n        _URLCallbacks = [NSMutableDictionary new];\n#ifdef SD_WEBP\n        _HTTPHeaders = [@{@\"Accept\": @\"image/webp,image/*;q=0.8\"} mutableCopy];\n#else\n        _HTTPHeaders = [@{@\"Accept\": @\"image/*;q=0.8\"} mutableCopy];\n#endif\n        _barrierQueue = dispatch_queue_create(\"com.hackemist.SDWebImageDownloaderBarrierQueue\", DISPATCH_QUEUE_CONCURRENT);\n        _downloadTimeout = 15.0;\n    }\n    return self;\n}\n\n- (void)dealloc {\n    [self.downloadQueue cancelAllOperations];\n    SDDispatchQueueRelease(_barrierQueue);\n}\n\n- (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)field {\n    if (value) {\n        self.HTTPHeaders[field] = value;\n    }\n    else {\n        [self.HTTPHeaders removeObjectForKey:field];\n    }\n}\n\n- (NSString *)valueForHTTPHeaderField:(NSString *)field {\n    return self.HTTPHeaders[field];\n}\n\n- (void)setMaxConcurrentDownloads:(NSInteger)maxConcurrentDownloads {\n    _downloadQueue.maxConcurrentOperationCount = maxConcurrentDownloads;\n}\n\n- (NSUInteger)currentDownloadCount {\n    return _downloadQueue.operationCount;\n}\n\n- (NSInteger)maxConcurrentDownloads {\n    return _downloadQueue.maxConcurrentOperationCount;\n}\n\n- (void)setOperationClass:(Class)operationClass {\n    _operationClass = operationClass ?: [SDWebImageDownloaderOperation class];\n}\n\n- (id <SDWebImageOperation>)downloadImageWithURL:(NSURL *)url options:(SDWebImageDownloaderOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageDownloaderCompletedBlock)completedBlock {\n    __block SDWebImageDownloaderOperation *operation;\n    __weak __typeof(self)wself = self;\n\n    [self addProgressCallback:progressBlock completedBlock:completedBlock forURL:url createCallback:^{\n        NSTimeInterval timeoutInterval = wself.downloadTimeout;\n        if (timeoutInterval == 0.0) {\n            timeoutInterval = 15.0;\n        }\n\n        // In order to prevent from potential duplicate caching (NSURLCache + SDImageCache) we disable the cache for image requests if told otherwise\n        NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url cachePolicy:(options & SDWebImageDownloaderUseNSURLCache ? NSURLRequestUseProtocolCachePolicy : NSURLRequestReloadIgnoringLocalCacheData) timeoutInterval:timeoutInterval];\n        request.HTTPShouldHandleCookies = (options & SDWebImageDownloaderHandleCookies);\n        request.HTTPShouldUsePipelining = YES;\n        if (wself.headersFilter) {\n            request.allHTTPHeaderFields = wself.headersFilter(url, [wself.HTTPHeaders copy]);\n        }\n        else {\n            request.allHTTPHeaderFields = wself.HTTPHeaders;\n        }\n        operation = [[wself.operationClass alloc] initWithRequest:request\n                                                          options:options\n                                                         progress:^(NSInteger receivedSize, NSInteger expectedSize) {\n                                                             SDWebImageDownloader *sself = wself;\n                                                             if (!sself) return;\n                                                             __block NSArray *callbacksForURL;\n                                                             dispatch_sync(sself.barrierQueue, ^{\n                                                                 callbacksForURL = [sself.URLCallbacks[url] copy];\n                                                             });\n                                                             for (NSDictionary *callbacks in callbacksForURL) {\n                                                                 dispatch_async(dispatch_get_main_queue(), ^{\n                                                                     SDWebImageDownloaderProgressBlock callback = callbacks[kProgressCallbackKey];\n                                                                     if (callback) callback(receivedSize, expectedSize);\n                                                                 });\n                                                             }\n                                                         }\n                                                        completed:^(UIImage *image, NSData *data, NSError *error, BOOL finished) {\n                                                            SDWebImageDownloader *sself = wself;\n                                                            if (!sself) return;\n                                                            __block NSArray *callbacksForURL;\n                                                            dispatch_barrier_sync(sself.barrierQueue, ^{\n                                                                callbacksForURL = [sself.URLCallbacks[url] copy];\n                                                                if (finished) {\n                                                                    [sself.URLCallbacks removeObjectForKey:url];\n                                                                }\n                                                            });\n                                                            for (NSDictionary *callbacks in callbacksForURL) {\n                                                                SDWebImageDownloaderCompletedBlock callback = callbacks[kCompletedCallbackKey];\n                                                                if (callback) callback(image, data, error, finished);\n                                                            }\n                                                        }\n                                                        cancelled:^{\n                                                            SDWebImageDownloader *sself = wself;\n                                                            if (!sself) return;\n                                                            dispatch_barrier_async(sself.barrierQueue, ^{\n                                                                [sself.URLCallbacks removeObjectForKey:url];\n                                                            });\n                                                        }];\n        operation.shouldDecompressImages = wself.shouldDecompressImages;\n        \n        if (wself.urlCredential) {\n            operation.credential = wself.urlCredential;\n        } else if (wself.username && wself.password) {\n            operation.credential = [NSURLCredential credentialWithUser:wself.username password:wself.password persistence:NSURLCredentialPersistenceForSession];\n        }\n        \n        if (options & SDWebImageDownloaderHighPriority) {\n            operation.queuePriority = NSOperationQueuePriorityHigh;\n        } else if (options & SDWebImageDownloaderLowPriority) {\n            operation.queuePriority = NSOperationQueuePriorityLow;\n        }\n\n        [wself.downloadQueue addOperation:operation];\n        if (wself.executionOrder == SDWebImageDownloaderLIFOExecutionOrder) {\n            // Emulate LIFO execution order by systematically adding new operations as last operation's dependency\n            [wself.lastAddedOperation addDependency:operation];\n            wself.lastAddedOperation = operation;\n        }\n    }];\n\n    return operation;\n}\n\n- (void)addProgressCallback:(SDWebImageDownloaderProgressBlock)progressBlock completedBlock:(SDWebImageDownloaderCompletedBlock)completedBlock forURL:(NSURL *)url createCallback:(SDWebImageNoParamsBlock)createCallback {\n    // The URL will be used as the key to the callbacks dictionary so it cannot be nil. If it is nil immediately call the completed block with no image or data.\n    if (url == nil) {\n        if (completedBlock != nil) {\n            completedBlock(nil, nil, nil, NO);\n        }\n        return;\n    }\n\n    dispatch_barrier_sync(self.barrierQueue, ^{\n        BOOL first = NO;\n        if (!self.URLCallbacks[url]) {\n            self.URLCallbacks[url] = [NSMutableArray new];\n            first = YES;\n        }\n\n        // Handle single download of simultaneous download request for the same URL\n        NSMutableArray *callbacksForURL = self.URLCallbacks[url];\n        NSMutableDictionary *callbacks = [NSMutableDictionary new];\n        if (progressBlock) callbacks[kProgressCallbackKey] = [progressBlock copy];\n        if (completedBlock) callbacks[kCompletedCallbackKey] = [completedBlock copy];\n        [callbacksForURL addObject:callbacks];\n        self.URLCallbacks[url] = callbacksForURL;\n\n        if (first) {\n            createCallback();\n        }\n    });\n}\n\n- (void)setSuspended:(BOOL)suspended {\n    [self.downloadQueue setSuspended:suspended];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <Foundation/Foundation.h>\n#import \"SDWebImageDownloader.h\"\n#import \"SDWebImageOperation.h\"\n\nextern NSString *const SDWebImageDownloadStartNotification;\nextern NSString *const SDWebImageDownloadReceiveResponseNotification;\nextern NSString *const SDWebImageDownloadStopNotification;\nextern NSString *const SDWebImageDownloadFinishNotification;\n\n@interface SDWebImageDownloaderOperation : NSOperation <SDWebImageOperation>\n\n/**\n * The request used by the operation's connection.\n */\n@property (strong, nonatomic, readonly) NSURLRequest *request;\n\n\n@property (assign, nonatomic) BOOL shouldDecompressImages;\n\n/**\n * Whether the URL connection should consult the credential storage for authenticating the connection. `YES` by default.\n *\n * This is the value that is returned in the `NSURLConnectionDelegate` method `-connectionShouldUseCredentialStorage:`.\n */\n@property (nonatomic, assign) BOOL shouldUseCredentialStorage;\n\n/**\n * The credential used for authentication challenges in `-connection:didReceiveAuthenticationChallenge:`.\n *\n * This will be overridden by any shared credentials that exist for the username or password of the request URL, if present.\n */\n@property (nonatomic, strong) NSURLCredential *credential;\n\n/**\n * The SDWebImageDownloaderOptions for the receiver.\n */\n@property (assign, nonatomic, readonly) SDWebImageDownloaderOptions options;\n\n/**\n * The expected size of data.\n */\n@property (assign, nonatomic) NSInteger expectedSize;\n\n/**\n * The response returned by the operation's connection.\n */\n@property (strong, nonatomic) NSURLResponse *response;\n\n/**\n *  Initializes a `SDWebImageDownloaderOperation` object\n *\n *  @see SDWebImageDownloaderOperation\n *\n *  @param request        the URL request\n *  @param options        downloader options\n *  @param progressBlock  the block executed when a new chunk of data arrives. \n *                        @note the progress block is executed on a background queue\n *  @param completedBlock the block executed when the download is done. \n *                        @note the completed block is executed on the main queue for success. If errors are found, there is a chance the block will be executed on a background queue\n *  @param cancelBlock    the block executed if the download (operation) is cancelled\n *\n *  @return the initialized instance\n */\n- (id)initWithRequest:(NSURLRequest *)request\n              options:(SDWebImageDownloaderOptions)options\n             progress:(SDWebImageDownloaderProgressBlock)progressBlock\n            completed:(SDWebImageDownloaderCompletedBlock)completedBlock\n            cancelled:(SDWebImageNoParamsBlock)cancelBlock;\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDWebImageDownloaderOperation.h\"\n#import \"SDWebImageDecoder.h\"\n#import \"UIImage+MultiFormat.h\"\n#import <ImageIO/ImageIO.h>\n#import \"SDWebImageManager.h\"\n\nNSString *const SDWebImageDownloadStartNotification = @\"SDWebImageDownloadStartNotification\";\nNSString *const SDWebImageDownloadReceiveResponseNotification = @\"SDWebImageDownloadReceiveResponseNotification\";\nNSString *const SDWebImageDownloadStopNotification = @\"SDWebImageDownloadStopNotification\";\nNSString *const SDWebImageDownloadFinishNotification = @\"SDWebImageDownloadFinishNotification\";\n\n@interface SDWebImageDownloaderOperation () <NSURLConnectionDataDelegate>\n\n@property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock;\n@property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock;\n@property (copy, nonatomic) SDWebImageNoParamsBlock cancelBlock;\n\n@property (assign, nonatomic, getter = isExecuting) BOOL executing;\n@property (assign, nonatomic, getter = isFinished) BOOL finished;\n@property (strong, nonatomic) NSMutableData *imageData;\n@property (strong, nonatomic) NSURLConnection *connection;\n@property (strong, atomic) NSThread *thread;\n\n#if TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_4_0\n@property (assign, nonatomic) UIBackgroundTaskIdentifier backgroundTaskId;\n#endif\n\n@end\n\n@implementation SDWebImageDownloaderOperation {\n    size_t width, height;\n    UIImageOrientation orientation;\n    BOOL responseFromCached;\n}\n\n@synthesize executing = _executing;\n@synthesize finished = _finished;\n\n- (id)initWithRequest:(NSURLRequest *)request\n              options:(SDWebImageDownloaderOptions)options\n             progress:(SDWebImageDownloaderProgressBlock)progressBlock\n            completed:(SDWebImageDownloaderCompletedBlock)completedBlock\n            cancelled:(SDWebImageNoParamsBlock)cancelBlock {\n    if ((self = [super init])) {\n        _request = request;\n        _shouldDecompressImages = YES;\n        _shouldUseCredentialStorage = YES;\n        _options = options;\n        _progressBlock = [progressBlock copy];\n        _completedBlock = [completedBlock copy];\n        _cancelBlock = [cancelBlock copy];\n        _executing = NO;\n        _finished = NO;\n        _expectedSize = 0;\n        responseFromCached = YES; // Initially wrong until `connection:willCacheResponse:` is called or not called\n    }\n    return self;\n}\n\n- (void)start {\n    @synchronized (self) {\n        if (self.isCancelled) {\n            self.finished = YES;\n            [self reset];\n            return;\n        }\n\n#if TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_4_0\n        Class UIApplicationClass = NSClassFromString(@\"UIApplication\");\n        BOOL hasApplication = UIApplicationClass && [UIApplicationClass respondsToSelector:@selector(sharedApplication)];\n        if (hasApplication && [self shouldContinueWhenAppEntersBackground]) {\n            __weak __typeof__ (self) wself = self;\n            UIApplication * app = [UIApplicationClass performSelector:@selector(sharedApplication)];\n            self.backgroundTaskId = [app beginBackgroundTaskWithExpirationHandler:^{\n                __strong __typeof (wself) sself = wself;\n\n                if (sself) {\n                    [sself cancel];\n\n                    [app endBackgroundTask:sself.backgroundTaskId];\n                    sself.backgroundTaskId = UIBackgroundTaskInvalid;\n                }\n            }];\n        }\n#endif\n\n        self.executing = YES;\n        self.connection = [[NSURLConnection alloc] initWithRequest:self.request delegate:self startImmediately:NO];\n        self.thread = [NSThread currentThread];\n    }\n\n    [self.connection start];\n\n    if (self.connection) {\n        if (self.progressBlock) {\n            self.progressBlock(0, NSURLResponseUnknownLength);\n        }\n        dispatch_async(dispatch_get_main_queue(), ^{\n            [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self];\n        });\n\n        if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_5_1) {\n            // Make sure to run the runloop in our background thread so it can process downloaded data\n            // Note: we use a timeout to work around an issue with NSURLConnection cancel under iOS 5\n            //       not waking up the runloop, leading to dead threads (see https://github.com/rs/SDWebImage/issues/466)\n            CFRunLoopRunInMode(kCFRunLoopDefaultMode, 10, false);\n        }\n        else {\n            CFRunLoopRun();\n        }\n\n        if (!self.isFinished) {\n            [self.connection cancel];\n            [self connection:self.connection didFailWithError:[NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorTimedOut userInfo:@{NSURLErrorFailingURLErrorKey : self.request.URL}]];\n        }\n    }\n    else {\n        if (self.completedBlock) {\n            self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:0 userInfo:@{NSLocalizedDescriptionKey : @\"Connection can't be initialized\"}], YES);\n        }\n    }\n\n#if TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_4_0\n    Class UIApplicationClass = NSClassFromString(@\"UIApplication\");\n    if(!UIApplicationClass || ![UIApplicationClass respondsToSelector:@selector(sharedApplication)]) {\n        return;\n    }\n    if (self.backgroundTaskId != UIBackgroundTaskInvalid) {\n        UIApplication * app = [UIApplication performSelector:@selector(sharedApplication)];\n        [app endBackgroundTask:self.backgroundTaskId];\n        self.backgroundTaskId = UIBackgroundTaskInvalid;\n    }\n#endif\n}\n\n- (void)cancel {\n    @synchronized (self) {\n        if (self.thread) {\n            [self performSelector:@selector(cancelInternalAndStop) onThread:self.thread withObject:nil waitUntilDone:NO];\n        }\n        else {\n            [self cancelInternal];\n        }\n    }\n}\n\n- (void)cancelInternalAndStop {\n    if (self.isFinished) return;\n    [self cancelInternal];\n    CFRunLoopStop(CFRunLoopGetCurrent());\n}\n\n- (void)cancelInternal {\n    if (self.isFinished) return;\n    [super cancel];\n    if (self.cancelBlock) self.cancelBlock();\n\n    if (self.connection) {\n        [self.connection cancel];\n        dispatch_async(dispatch_get_main_queue(), ^{\n            [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:self];\n        });\n\n        // As we cancelled the connection, its callback won't be called and thus won't\n        // maintain the isFinished and isExecuting flags.\n        if (self.isExecuting) self.executing = NO;\n        if (!self.isFinished) self.finished = YES;\n    }\n\n    [self reset];\n}\n\n- (void)done {\n    self.finished = YES;\n    self.executing = NO;\n    [self reset];\n}\n\n- (void)reset {\n    self.cancelBlock = nil;\n    self.completedBlock = nil;\n    self.progressBlock = nil;\n    self.connection = nil;\n    self.imageData = nil;\n    self.thread = nil;\n}\n\n- (void)setFinished:(BOOL)finished {\n    [self willChangeValueForKey:@\"isFinished\"];\n    _finished = finished;\n    [self didChangeValueForKey:@\"isFinished\"];\n}\n\n- (void)setExecuting:(BOOL)executing {\n    [self willChangeValueForKey:@\"isExecuting\"];\n    _executing = executing;\n    [self didChangeValueForKey:@\"isExecuting\"];\n}\n\n- (BOOL)isConcurrent {\n    return YES;\n}\n\n#pragma mark NSURLConnection (delegate)\n\n- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {\n    \n    //'304 Not Modified' is an exceptional one\n    if (![response respondsToSelector:@selector(statusCode)] || ([((NSHTTPURLResponse *)response) statusCode] < 400 && [((NSHTTPURLResponse *)response) statusCode] != 304)) {\n        NSInteger expected = response.expectedContentLength > 0 ? (NSInteger)response.expectedContentLength : 0;\n        self.expectedSize = expected;\n        if (self.progressBlock) {\n            self.progressBlock(0, expected);\n        }\n\n        self.imageData = [[NSMutableData alloc] initWithCapacity:expected];\n        self.response = response;\n        dispatch_async(dispatch_get_main_queue(), ^{\n            [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadReceiveResponseNotification object:self];\n        });\n    }\n    else {\n        NSUInteger code = [((NSHTTPURLResponse *)response) statusCode];\n        \n        //This is the case when server returns '304 Not Modified'. It means that remote image is not changed.\n        //In case of 304 we need just cancel the operation and return cached image from the cache.\n        if (code == 304) {\n            [self cancelInternal];\n        } else {\n            [self.connection cancel];\n        }\n        dispatch_async(dispatch_get_main_queue(), ^{\n            [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:self];\n        });\n\n        if (self.completedBlock) {\n            self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:[((NSHTTPURLResponse *)response) statusCode] userInfo:nil], YES);\n        }\n        CFRunLoopStop(CFRunLoopGetCurrent());\n        [self done];\n    }\n}\n\n- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {\n    [self.imageData appendData:data];\n\n    if ((self.options & SDWebImageDownloaderProgressiveDownload) && self.expectedSize > 0 && self.completedBlock) {\n        // The following code is from http://www.cocoaintheshell.com/2011/05/progressive-images-download-imageio/\n        // Thanks to the author @Nyx0uf\n\n        // Get the total bytes downloaded\n        const NSInteger totalSize = self.imageData.length;\n\n        // Update the data source, we must pass ALL the data, not just the new bytes\n        CGImageSourceRef imageSource = CGImageSourceCreateWithData((__bridge CFDataRef)self.imageData, NULL);\n\n        if (width + height == 0) {\n            CFDictionaryRef properties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);\n            if (properties) {\n                NSInteger orientationValue = -1;\n                CFTypeRef val = CFDictionaryGetValue(properties, kCGImagePropertyPixelHeight);\n                if (val) CFNumberGetValue(val, kCFNumberLongType, &height);\n                val = CFDictionaryGetValue(properties, kCGImagePropertyPixelWidth);\n                if (val) CFNumberGetValue(val, kCFNumberLongType, &width);\n                val = CFDictionaryGetValue(properties, kCGImagePropertyOrientation);\n                if (val) CFNumberGetValue(val, kCFNumberNSIntegerType, &orientationValue);\n                CFRelease(properties);\n\n                // When we draw to Core Graphics, we lose orientation information,\n                // which means the image below born of initWithCGIImage will be\n                // oriented incorrectly sometimes. (Unlike the image born of initWithData\n                // in connectionDidFinishLoading.) So save it here and pass it on later.\n                orientation = [[self class] orientationFromPropertyValue:(orientationValue == -1 ? 1 : orientationValue)];\n            }\n\n        }\n\n        if (width + height > 0 && totalSize < self.expectedSize) {\n            // Create the image\n            CGImageRef partialImageRef = CGImageSourceCreateImageAtIndex(imageSource, 0, NULL);\n\n#ifdef TARGET_OS_IPHONE\n            // Workaround for iOS anamorphic image\n            if (partialImageRef) {\n                const size_t partialHeight = CGImageGetHeight(partialImageRef);\n                CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();\n                CGContextRef bmContext = CGBitmapContextCreate(NULL, width, height, 8, width * 4, colorSpace, kCGBitmapByteOrderDefault | kCGImageAlphaPremultipliedFirst);\n                CGColorSpaceRelease(colorSpace);\n                if (bmContext) {\n                    CGContextDrawImage(bmContext, (CGRect){.origin.x = 0.0f, .origin.y = 0.0f, .size.width = width, .size.height = partialHeight}, partialImageRef);\n                    CGImageRelease(partialImageRef);\n                    partialImageRef = CGBitmapContextCreateImage(bmContext);\n                    CGContextRelease(bmContext);\n                }\n                else {\n                    CGImageRelease(partialImageRef);\n                    partialImageRef = nil;\n                }\n            }\n#endif\n\n            if (partialImageRef) {\n                UIImage *image = [UIImage imageWithCGImage:partialImageRef scale:1 orientation:orientation];\n                NSString *key = [[SDWebImageManager sharedManager] cacheKeyForURL:self.request.URL];\n                UIImage *scaledImage = [self scaledImageForKey:key image:image];\n                if (self.shouldDecompressImages) {\n                    image = [UIImage decodedImageWithImage:scaledImage];\n                }\n                else {\n                    image = scaledImage;\n                }\n                CGImageRelease(partialImageRef);\n                dispatch_main_sync_safe(^{\n                    if (self.completedBlock) {\n                        self.completedBlock(image, nil, nil, NO);\n                    }\n                });\n            }\n        }\n\n        CFRelease(imageSource);\n    }\n\n    if (self.progressBlock) {\n        self.progressBlock(self.imageData.length, self.expectedSize);\n    }\n}\n\n+ (UIImageOrientation)orientationFromPropertyValue:(NSInteger)value {\n    switch (value) {\n        case 1:\n            return UIImageOrientationUp;\n        case 3:\n            return UIImageOrientationDown;\n        case 8:\n            return UIImageOrientationLeft;\n        case 6:\n            return UIImageOrientationRight;\n        case 2:\n            return UIImageOrientationUpMirrored;\n        case 4:\n            return UIImageOrientationDownMirrored;\n        case 5:\n            return UIImageOrientationLeftMirrored;\n        case 7:\n            return UIImageOrientationRightMirrored;\n        default:\n            return UIImageOrientationUp;\n    }\n}\n\n- (UIImage *)scaledImageForKey:(NSString *)key image:(UIImage *)image {\n    return SDScaledImageForKey(key, image);\n}\n\n- (void)connectionDidFinishLoading:(NSURLConnection *)aConnection {\n    SDWebImageDownloaderCompletedBlock completionBlock = self.completedBlock;\n    @synchronized(self) {\n        CFRunLoopStop(CFRunLoopGetCurrent());\n        self.thread = nil;\n        self.connection = nil;\n        dispatch_async(dispatch_get_main_queue(), ^{\n            [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:self];\n            [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadFinishNotification object:self];\n        });\n    }\n    \n    if (![[NSURLCache sharedURLCache] cachedResponseForRequest:_request]) {\n        responseFromCached = NO;\n    }\n    \n    if (completionBlock) {\n        if (self.options & SDWebImageDownloaderIgnoreCachedResponse && responseFromCached) {\n            completionBlock(nil, nil, nil, YES);\n        } else if (self.imageData) {\n            UIImage *image = [UIImage sd_imageWithData:self.imageData];\n            NSString *key = [[SDWebImageManager sharedManager] cacheKeyForURL:self.request.URL];\n            image = [self scaledImageForKey:key image:image];\n            \n            // Do not force decoding animated GIFs\n            if (!image.images) {\n                if (self.shouldDecompressImages) {\n                    image = [UIImage decodedImageWithImage:image];\n                }\n            }\n            if (CGSizeEqualToSize(image.size, CGSizeZero)) {\n                completionBlock(nil, nil, [NSError errorWithDomain:SDWebImageErrorDomain code:0 userInfo:@{NSLocalizedDescriptionKey : @\"Downloaded image has 0 pixels\"}], YES);\n            }\n            else {\n                completionBlock(image, self.imageData, nil, YES);\n            }\n        } else {\n            completionBlock(nil, nil, [NSError errorWithDomain:SDWebImageErrorDomain code:0 userInfo:@{NSLocalizedDescriptionKey : @\"Image data is nil\"}], YES);\n        }\n    }\n    self.completionBlock = nil;\n    [self done];\n}\n\n- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {\n    @synchronized(self) {\n        CFRunLoopStop(CFRunLoopGetCurrent());\n        self.thread = nil;\n        self.connection = nil;\n        dispatch_async(dispatch_get_main_queue(), ^{\n            [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:self];\n        });\n    }\n\n    if (self.completedBlock) {\n        self.completedBlock(nil, nil, error, YES);\n    }\n    self.completionBlock = nil;\n    [self done];\n}\n\n- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse {\n    responseFromCached = NO; // If this method is called, it means the response wasn't read from cache\n    if (self.request.cachePolicy == NSURLRequestReloadIgnoringLocalCacheData) {\n        // Prevents caching of responses\n        return nil;\n    }\n    else {\n        return cachedResponse;\n    }\n}\n\n- (BOOL)shouldContinueWhenAppEntersBackground {\n    return self.options & SDWebImageDownloaderContinueInBackground;\n}\n\n- (BOOL)connectionShouldUseCredentialStorage:(NSURLConnection __unused *)connection {\n    return self.shouldUseCredentialStorage;\n}\n\n- (void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge{\n    if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) {\n        if (!(self.options & SDWebImageDownloaderAllowInvalidSSLCertificates) &&\n            [challenge.sender respondsToSelector:@selector(performDefaultHandlingForAuthenticationChallenge:)]) {\n            [challenge.sender performDefaultHandlingForAuthenticationChallenge:challenge];\n        } else {\n            NSURLCredential *credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust];\n            [[challenge sender] useCredential:credential forAuthenticationChallenge:challenge];\n        }\n    } else {\n        if ([challenge previousFailureCount] == 0) {\n            if (self.credential) {\n                [[challenge sender] useCredential:self.credential forAuthenticationChallenge:challenge];\n            } else {\n                [[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge];\n            }\n        } else {\n            [[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge];\n        }\n    }\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageManager.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDWebImageCompat.h\"\n#import \"SDWebImageOperation.h\"\n#import \"SDWebImageDownloader.h\"\n#import \"SDImageCache.h\"\n\ntypedef NS_OPTIONS(NSUInteger, SDWebImageOptions) {\n    /**\n     * By default, when a URL fail to be downloaded, the URL is blacklisted so the library won't keep trying.\n     * This flag disable this blacklisting.\n     */\n    SDWebImageRetryFailed = 1 << 0,\n\n    /**\n     * By default, image downloads are started during UI interactions, this flags disable this feature,\n     * leading to delayed download on UIScrollView deceleration for instance.\n     */\n    SDWebImageLowPriority = 1 << 1,\n\n    /**\n     * This flag disables on-disk caching\n     */\n    SDWebImageCacheMemoryOnly = 1 << 2,\n\n    /**\n     * This flag enables progressive download, the image is displayed progressively during download as a browser would do.\n     * By default, the image is only displayed once completely downloaded.\n     */\n    SDWebImageProgressiveDownload = 1 << 3,\n\n    /**\n     * Even if the image is cached, respect the HTTP response cache control, and refresh the image from remote location if needed.\n     * The disk caching will be handled by NSURLCache instead of SDWebImage leading to slight performance degradation.\n     * This option helps deal with images changing behind the same request URL, e.g. Facebook graph api profile pics.\n     * If a cached image is refreshed, the completion block is called once with the cached image and again with the final image.\n     *\n     * Use this flag only if you can't make your URLs static with embedded cache busting parameter.\n     */\n    SDWebImageRefreshCached = 1 << 4,\n\n    /**\n     * In iOS 4+, continue the download of the image if the app goes to background. This is achieved by asking the system for\n     * extra time in background to let the request finish. If the background task expires the operation will be cancelled.\n     */\n    SDWebImageContinueInBackground = 1 << 5,\n\n    /**\n     * Handles cookies stored in NSHTTPCookieStore by setting\n     * NSMutableURLRequest.HTTPShouldHandleCookies = YES;\n     */\n    SDWebImageHandleCookies = 1 << 6,\n\n    /**\n     * Enable to allow untrusted SSL certificates.\n     * Useful for testing purposes. Use with caution in production.\n     */\n    SDWebImageAllowInvalidSSLCertificates = 1 << 7,\n\n    /**\n     * By default, image are loaded in the order they were queued. This flag move them to\n     * the front of the queue and is loaded immediately instead of waiting for the current queue to be loaded (which \n     * could take a while).\n     */\n    SDWebImageHighPriority = 1 << 8,\n    \n    /**\n     * By default, placeholder images are loaded while the image is loading. This flag will delay the loading\n     * of the placeholder image until after the image has finished loading.\n     */\n    SDWebImageDelayPlaceholder = 1 << 9,\n\n    /**\n     * We usually don't call transformDownloadedImage delegate method on animated images,\n     * as most transformation code would mangle it.\n     * Use this flag to transform them anyway.\n     */\n    SDWebImageTransformAnimatedImage = 1 << 10,\n    \n    /**\n     * By default, image is added to the imageView after download. But in some cases, we want to\n     * have the hand before setting the image (apply a filter or add it with cross-fade animation for instance)\n     * Use this flag if you want to manually set the image in the completion when success\n     */\n    SDWebImageAvoidAutoSetImage = 1 << 11\n};\n\ntypedef void(^SDWebImageCompletionBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL);\n\ntypedef void(^SDWebImageCompletionWithFinishedBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL);\n\ntypedef NSString *(^SDWebImageCacheKeyFilterBlock)(NSURL *url);\n\n\n@class SDWebImageManager;\n\n@protocol SDWebImageManagerDelegate <NSObject>\n\n@optional\n\n/**\n * Controls which image should be downloaded when the image is not found in the cache.\n *\n * @param imageManager The current `SDWebImageManager`\n * @param imageURL     The url of the image to be downloaded\n *\n * @return Return NO to prevent the downloading of the image on cache misses. If not implemented, YES is implied.\n */\n- (BOOL)imageManager:(SDWebImageManager *)imageManager shouldDownloadImageForURL:(NSURL *)imageURL;\n\n/**\n * Allows to transform the image immediately after it has been downloaded and just before to cache it on disk and memory.\n * NOTE: This method is called from a global queue in order to not to block the main thread.\n *\n * @param imageManager The current `SDWebImageManager`\n * @param image        The image to transform\n * @param imageURL     The url of the image to transform\n *\n * @return The transformed image object.\n */\n- (UIImage *)imageManager:(SDWebImageManager *)imageManager transformDownloadedImage:(UIImage *)image withURL:(NSURL *)imageURL;\n\n@end\n\n/**\n * The SDWebImageManager is the class behind the UIImageView+WebCache category and likes.\n * It ties the asynchronous downloader (SDWebImageDownloader) with the image cache store (SDImageCache).\n * You can use this class directly to benefit from web image downloading with caching in another context than\n * a UIView.\n *\n * Here is a simple example of how to use SDWebImageManager:\n *\n * @code\n\nSDWebImageManager *manager = [SDWebImageManager sharedManager];\n[manager downloadImageWithURL:imageURL\n                      options:0\n                     progress:nil\n                    completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n                        if (image) {\n                            // do something with image\n                        }\n                    }];\n\n * @endcode\n */\n@interface SDWebImageManager : NSObject\n\n@property (weak, nonatomic) id <SDWebImageManagerDelegate> delegate;\n\n@property (strong, nonatomic, readonly) SDImageCache *imageCache;\n@property (strong, nonatomic, readonly) SDWebImageDownloader *imageDownloader;\n\n/**\n * The cache filter is a block used each time SDWebImageManager need to convert an URL into a cache key. This can\n * be used to remove dynamic part of an image URL.\n *\n * The following example sets a filter in the application delegate that will remove any query-string from the\n * URL before to use it as a cache key:\n *\n * @code\n\n[[SDWebImageManager sharedManager] setCacheKeyFilter:^(NSURL *url) {\n    url = [[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path];\n    return [url absoluteString];\n}];\n\n * @endcode\n */\n@property (nonatomic, copy) SDWebImageCacheKeyFilterBlock cacheKeyFilter;\n\n/**\n * Returns global SDWebImageManager instance.\n *\n * @return SDWebImageManager shared instance\n */\n+ (SDWebImageManager *)sharedManager;\n\n/**\n * Downloads the image at the given URL if not present in cache or return the cached version otherwise.\n *\n * @param url            The URL to the image\n * @param options        A mask to specify options to use for this request\n * @param progressBlock  A block called while image is downloading\n * @param completedBlock A block called when operation has been completed.\n *\n *   This parameter is required.\n * \n *   This block has no return value and takes the requested UIImage as first parameter.\n *   In case of error the image parameter is nil and the second parameter may contain an NSError.\n *\n *   The third parameter is an `SDImageCacheType` enum indicating if the image was retrieved from the local cache\n *   or from the memory cache or from the network.\n *\n *   The last parameter is set to NO when the SDWebImageProgressiveDownload option is used and the image is \n *   downloading. This block is thus called repeatedly with a partial image. When image is fully downloaded, the\n *   block is called a last time with the full image and the last parameter set to YES.\n *\n * @return Returns an NSObject conforming to SDWebImageOperation. Should be an instance of SDWebImageDownloaderOperation\n */\n- (id <SDWebImageOperation>)downloadImageWithURL:(NSURL *)url\n                                         options:(SDWebImageOptions)options\n                                        progress:(SDWebImageDownloaderProgressBlock)progressBlock\n                                       completed:(SDWebImageCompletionWithFinishedBlock)completedBlock;\n\n/**\n * Saves image to cache for given URL\n *\n * @param image The image to cache\n * @param url   The URL to the image\n *\n */\n\n- (void)saveImageToCache:(UIImage *)image forURL:(NSURL *)url;\n\n/**\n * Cancel all current operations\n */\n- (void)cancelAll;\n\n/**\n * Check one or more operations running\n */\n- (BOOL)isRunning;\n\n/**\n *  Check if image has already been cached\n *\n *  @param url image url\n *\n *  @return if the image was already cached\n */\n- (BOOL)cachedImageExistsForURL:(NSURL *)url;\n\n/**\n *  Check if image has already been cached on disk only\n *\n *  @param url image url\n *\n *  @return if the image was already cached (disk only)\n */\n- (BOOL)diskImageExistsForURL:(NSURL *)url;\n\n/**\n *  Async check if image has already been cached\n *\n *  @param url              image url\n *  @param completionBlock  the block to be executed when the check is finished\n *  \n *  @note the completion block is always executed on the main queue\n */\n- (void)cachedImageExistsForURL:(NSURL *)url\n                     completion:(SDWebImageCheckCacheCompletionBlock)completionBlock;\n\n/**\n *  Async check if image has already been cached on disk only\n *\n *  @param url              image url\n *  @param completionBlock  the block to be executed when the check is finished\n *\n *  @note the completion block is always executed on the main queue\n */\n- (void)diskImageExistsForURL:(NSURL *)url\n                   completion:(SDWebImageCheckCacheCompletionBlock)completionBlock;\n\n\n/**\n *Return the cache key for a given URL\n */\n- (NSString *)cacheKeyForURL:(NSURL *)url;\n\n@end\n\n\n#pragma mark - Deprecated\n\ntypedef void(^SDWebImageCompletedBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType) __deprecated_msg(\"Block type deprecated. Use `SDWebImageCompletionBlock`\");\ntypedef void(^SDWebImageCompletedWithFinishedBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished) __deprecated_msg(\"Block type deprecated. Use `SDWebImageCompletionWithFinishedBlock`\");\n\n\n@interface SDWebImageManager (Deprecated)\n\n/**\n *  Downloads the image at the given URL if not present in cache or return the cached version otherwise.\n *\n *  @deprecated This method has been deprecated. Use `downloadImageWithURL:options:progress:completed:`\n */\n- (id <SDWebImageOperation>)downloadWithURL:(NSURL *)url\n                                    options:(SDWebImageOptions)options\n                                   progress:(SDWebImageDownloaderProgressBlock)progressBlock\n                                  completed:(SDWebImageCompletedWithFinishedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `downloadImageWithURL:options:progress:completed:`\");\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageManager.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDWebImageManager.h\"\n#import <objc/message.h>\n\n@interface SDWebImageCombinedOperation : NSObject <SDWebImageOperation>\n\n@property (assign, nonatomic, getter = isCancelled) BOOL cancelled;\n@property (copy, nonatomic) SDWebImageNoParamsBlock cancelBlock;\n@property (strong, nonatomic) NSOperation *cacheOperation;\n\n@end\n\n@interface SDWebImageManager ()\n\n@property (strong, nonatomic, readwrite) SDImageCache *imageCache;\n@property (strong, nonatomic, readwrite) SDWebImageDownloader *imageDownloader;\n@property (strong, nonatomic) NSMutableSet *failedURLs;\n@property (strong, nonatomic) NSMutableArray *runningOperations;\n\n@end\n\n@implementation SDWebImageManager\n\n+ (id)sharedManager {\n    static dispatch_once_t once;\n    static id instance;\n    dispatch_once(&once, ^{\n        instance = [self new];\n    });\n    return instance;\n}\n\n- (id)init {\n    if ((self = [super init])) {\n        _imageCache = [self createCache];\n        _imageDownloader = [SDWebImageDownloader sharedDownloader];\n        _failedURLs = [NSMutableSet new];\n        _runningOperations = [NSMutableArray new];\n    }\n    return self;\n}\n\n- (SDImageCache *)createCache {\n    return [SDImageCache sharedImageCache];\n}\n\n- (NSString *)cacheKeyForURL:(NSURL *)url {\n    if (self.cacheKeyFilter) {\n        return self.cacheKeyFilter(url);\n    }\n    else {\n        return [url absoluteString];\n    }\n}\n\n- (BOOL)cachedImageExistsForURL:(NSURL *)url {\n    NSString *key = [self cacheKeyForURL:url];\n    if ([self.imageCache imageFromMemoryCacheForKey:key] != nil) return YES;\n    return [self.imageCache diskImageExistsWithKey:key];\n}\n\n- (BOOL)diskImageExistsForURL:(NSURL *)url {\n    NSString *key = [self cacheKeyForURL:url];\n    return [self.imageCache diskImageExistsWithKey:key];\n}\n\n- (void)cachedImageExistsForURL:(NSURL *)url\n                     completion:(SDWebImageCheckCacheCompletionBlock)completionBlock {\n    NSString *key = [self cacheKeyForURL:url];\n    \n    BOOL isInMemoryCache = ([self.imageCache imageFromMemoryCacheForKey:key] != nil);\n    \n    if (isInMemoryCache) {\n        // making sure we call the completion block on the main queue\n        dispatch_async(dispatch_get_main_queue(), ^{\n            if (completionBlock) {\n                completionBlock(YES);\n            }\n        });\n        return;\n    }\n    \n    [self.imageCache diskImageExistsWithKey:key completion:^(BOOL isInDiskCache) {\n        // the completion block of checkDiskCacheForImageWithKey:completion: is always called on the main queue, no need to further dispatch\n        if (completionBlock) {\n            completionBlock(isInDiskCache);\n        }\n    }];\n}\n\n- (void)diskImageExistsForURL:(NSURL *)url\n                   completion:(SDWebImageCheckCacheCompletionBlock)completionBlock {\n    NSString *key = [self cacheKeyForURL:url];\n    \n    [self.imageCache diskImageExistsWithKey:key completion:^(BOOL isInDiskCache) {\n        // the completion block of checkDiskCacheForImageWithKey:completion: is always called on the main queue, no need to further dispatch\n        if (completionBlock) {\n            completionBlock(isInDiskCache);\n        }\n    }];\n}\n\n- (id <SDWebImageOperation>)downloadImageWithURL:(NSURL *)url\n                                         options:(SDWebImageOptions)options\n                                        progress:(SDWebImageDownloaderProgressBlock)progressBlock\n                                       completed:(SDWebImageCompletionWithFinishedBlock)completedBlock {\n    // Invoking this method without a completedBlock is pointless\n    NSAssert(completedBlock != nil, @\"If you mean to prefetch the image, use -[SDWebImagePrefetcher prefetchURLs] instead\");\n\n    // Very common mistake is to send the URL using NSString object instead of NSURL. For some strange reason, XCode won't\n    // throw any warning for this type mismatch. Here we failsafe this error by allowing URLs to be passed as NSString.\n    if ([url isKindOfClass:NSString.class]) {\n        url = [NSURL URLWithString:(NSString *)url];\n    }\n\n    // Prevents app crashing on argument type error like sending NSNull instead of NSURL\n    if (![url isKindOfClass:NSURL.class]) {\n        url = nil;\n    }\n\n    __block SDWebImageCombinedOperation *operation = [SDWebImageCombinedOperation new];\n    __weak SDWebImageCombinedOperation *weakOperation = operation;\n\n    BOOL isFailedUrl = NO;\n    @synchronized (self.failedURLs) {\n        isFailedUrl = [self.failedURLs containsObject:url];\n    }\n\n    if (url.absoluteString.length == 0 || (!(options & SDWebImageRetryFailed) && isFailedUrl)) {\n        dispatch_main_sync_safe(^{\n            NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorFileDoesNotExist userInfo:nil];\n            completedBlock(nil, error, SDImageCacheTypeNone, YES, url);\n        });\n        return operation;\n    }\n\n    @synchronized (self.runningOperations) {\n        [self.runningOperations addObject:operation];\n    }\n    NSString *key = [self cacheKeyForURL:url];\n\n    operation.cacheOperation = [self.imageCache queryDiskCacheForKey:key done:^(UIImage *image, SDImageCacheType cacheType) {\n        if (operation.isCancelled) {\n            @synchronized (self.runningOperations) {\n                [self.runningOperations removeObject:operation];\n            }\n\n            return;\n        }\n\n        if ((!image || options & SDWebImageRefreshCached) && (![self.delegate respondsToSelector:@selector(imageManager:shouldDownloadImageForURL:)] || [self.delegate imageManager:self shouldDownloadImageForURL:url])) {\n            if (image && options & SDWebImageRefreshCached) {\n                dispatch_main_sync_safe(^{\n                    // If image was found in the cache but SDWebImageRefreshCached is provided, notify about the cached image\n                    // AND try to re-download it in order to let a chance to NSURLCache to refresh it from server.\n                    completedBlock(image, nil, cacheType, YES, url);\n                });\n            }\n\n            // download if no image or requested to refresh anyway, and download allowed by delegate\n            SDWebImageDownloaderOptions downloaderOptions = 0;\n            if (options & SDWebImageLowPriority) downloaderOptions |= SDWebImageDownloaderLowPriority;\n            if (options & SDWebImageProgressiveDownload) downloaderOptions |= SDWebImageDownloaderProgressiveDownload;\n            if (options & SDWebImageRefreshCached) downloaderOptions |= SDWebImageDownloaderUseNSURLCache;\n            if (options & SDWebImageContinueInBackground) downloaderOptions |= SDWebImageDownloaderContinueInBackground;\n            if (options & SDWebImageHandleCookies) downloaderOptions |= SDWebImageDownloaderHandleCookies;\n            if (options & SDWebImageAllowInvalidSSLCertificates) downloaderOptions |= SDWebImageDownloaderAllowInvalidSSLCertificates;\n            if (options & SDWebImageHighPriority) downloaderOptions |= SDWebImageDownloaderHighPriority;\n            if (image && options & SDWebImageRefreshCached) {\n                // force progressive off if image already cached but forced refreshing\n                downloaderOptions &= ~SDWebImageDownloaderProgressiveDownload;\n                // ignore image read from NSURLCache if image if cached but force refreshing\n                downloaderOptions |= SDWebImageDownloaderIgnoreCachedResponse;\n            }\n            id <SDWebImageOperation> subOperation = [self.imageDownloader downloadImageWithURL:url options:downloaderOptions progress:progressBlock completed:^(UIImage *downloadedImage, NSData *data, NSError *error, BOOL finished) {\n                __strong __typeof(weakOperation) strongOperation = weakOperation;\n                if (!strongOperation || strongOperation.isCancelled) {\n                    // Do nothing if the operation was cancelled\n                    // See #699 for more details\n                    // if we would call the completedBlock, there could be a race condition between this block and another completedBlock for the same object, so if this one is called second, we will overwrite the new data\n                }\n                else if (error) {\n                    dispatch_main_sync_safe(^{\n                        if (strongOperation && !strongOperation.isCancelled) {\n                            completedBlock(nil, error, SDImageCacheTypeNone, finished, url);\n                        }\n                    });\n\n                    if (   error.code != NSURLErrorNotConnectedToInternet\n                        && error.code != NSURLErrorCancelled\n                        && error.code != NSURLErrorTimedOut\n                        && error.code != NSURLErrorInternationalRoamingOff\n                        && error.code != NSURLErrorDataNotAllowed\n                        && error.code != NSURLErrorCannotFindHost\n                        && error.code != NSURLErrorCannotConnectToHost) {\n                        @synchronized (self.failedURLs) {\n                            [self.failedURLs addObject:url];\n                        }\n                    }\n                }\n                else {\n                    if ((options & SDWebImageRetryFailed)) {\n                        @synchronized (self.failedURLs) {\n                            [self.failedURLs removeObject:url];\n                        }\n                    }\n                    \n                    BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly);\n\n                    if (options & SDWebImageRefreshCached && image && !downloadedImage) {\n                        // Image refresh hit the NSURLCache cache, do not call the completion block\n                    }\n                    else if (downloadedImage && (!downloadedImage.images || (options & SDWebImageTransformAnimatedImage)) && [self.delegate respondsToSelector:@selector(imageManager:transformDownloadedImage:withURL:)]) {\n                        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{\n                            UIImage *transformedImage = [self.delegate imageManager:self transformDownloadedImage:downloadedImage withURL:url];\n\n                            if (transformedImage && finished) {\n                                BOOL imageWasTransformed = ![transformedImage isEqual:downloadedImage];\n                                [self.imageCache storeImage:transformedImage recalculateFromImage:imageWasTransformed imageData:(imageWasTransformed ? nil : data) forKey:key toDisk:cacheOnDisk];\n                            }\n\n                            dispatch_main_sync_safe(^{\n                                if (strongOperation && !strongOperation.isCancelled) {\n                                    completedBlock(transformedImage, nil, SDImageCacheTypeNone, finished, url);\n                                }\n                            });\n                        });\n                    }\n                    else {\n                        if (downloadedImage && finished) {\n                            [self.imageCache storeImage:downloadedImage recalculateFromImage:NO imageData:data forKey:key toDisk:cacheOnDisk];\n                        }\n\n                        dispatch_main_sync_safe(^{\n                            if (strongOperation && !strongOperation.isCancelled) {\n                                completedBlock(downloadedImage, nil, SDImageCacheTypeNone, finished, url);\n                            }\n                        });\n                    }\n                }\n\n                if (finished) {\n                    @synchronized (self.runningOperations) {\n                        if (strongOperation) {\n                            [self.runningOperations removeObject:strongOperation];\n                        }\n                    }\n                }\n            }];\n            operation.cancelBlock = ^{\n                [subOperation cancel];\n                \n                @synchronized (self.runningOperations) {\n                    __strong __typeof(weakOperation) strongOperation = weakOperation;\n                    if (strongOperation) {\n                        [self.runningOperations removeObject:strongOperation];\n                    }\n                }\n            };\n        }\n        else if (image) {\n            dispatch_main_sync_safe(^{\n                __strong __typeof(weakOperation) strongOperation = weakOperation;\n                if (strongOperation && !strongOperation.isCancelled) {\n                    completedBlock(image, nil, cacheType, YES, url);\n                }\n            });\n            @synchronized (self.runningOperations) {\n                [self.runningOperations removeObject:operation];\n            }\n        }\n        else {\n            // Image not in cache and download disallowed by delegate\n            dispatch_main_sync_safe(^{\n                __strong __typeof(weakOperation) strongOperation = weakOperation;\n                if (strongOperation && !weakOperation.isCancelled) {\n                    completedBlock(nil, nil, SDImageCacheTypeNone, YES, url);\n                }\n            });\n            @synchronized (self.runningOperations) {\n                [self.runningOperations removeObject:operation];\n            }\n        }\n    }];\n\n    return operation;\n}\n\n- (void)saveImageToCache:(UIImage *)image forURL:(NSURL *)url {\n    if (image && url) {\n        NSString *key = [self cacheKeyForURL:url];\n        [self.imageCache storeImage:image forKey:key toDisk:YES];\n    }\n}\n\n- (void)cancelAll {\n    @synchronized (self.runningOperations) {\n        NSArray *copiedOperations = [self.runningOperations copy];\n        [copiedOperations makeObjectsPerformSelector:@selector(cancel)];\n        [self.runningOperations removeObjectsInArray:copiedOperations];\n    }\n}\n\n- (BOOL)isRunning {\n    BOOL isRunning = NO;\n    @synchronized(self.runningOperations) {\n        isRunning = (self.runningOperations.count > 0);\n    }\n    return isRunning;\n}\n\n@end\n\n\n@implementation SDWebImageCombinedOperation\n\n- (void)setCancelBlock:(SDWebImageNoParamsBlock)cancelBlock {\n    // check if the operation is already cancelled, then we just call the cancelBlock\n    if (self.isCancelled) {\n        if (cancelBlock) {\n            cancelBlock();\n        }\n        _cancelBlock = nil; // don't forget to nil the cancelBlock, otherwise we will get crashes\n    } else {\n        _cancelBlock = [cancelBlock copy];\n    }\n}\n\n- (void)cancel {\n    self.cancelled = YES;\n    if (self.cacheOperation) {\n        [self.cacheOperation cancel];\n        self.cacheOperation = nil;\n    }\n    if (self.cancelBlock) {\n        self.cancelBlock();\n        \n        // TODO: this is a temporary fix to #809.\n        // Until we can figure the exact cause of the crash, going with the ivar instead of the setter\n//        self.cancelBlock = nil;\n        _cancelBlock = nil;\n    }\n}\n\n@end\n\n\n@implementation SDWebImageManager (Deprecated)\n\n// deprecated method, uses the non deprecated method\n// adapter for the completion block\n- (id <SDWebImageOperation>)downloadWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedWithFinishedBlock)completedBlock {\n    return [self downloadImageWithURL:url\n                              options:options\n                             progress:progressBlock\n                            completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n                                if (completedBlock) {\n                                    completedBlock(image, error, cacheType, finished);\n                                }\n                            }];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImageOperation.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <Foundation/Foundation.h>\n\n@protocol SDWebImageOperation <NSObject>\n\n- (void)cancel;\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <Foundation/Foundation.h>\n#import \"SDWebImageManager.h\"\n\n@class SDWebImagePrefetcher;\n\n@protocol SDWebImagePrefetcherDelegate <NSObject>\n\n@optional\n\n/**\n * Called when an image was prefetched.\n *\n * @param imagePrefetcher The current image prefetcher\n * @param imageURL        The image url that was prefetched\n * @param finishedCount   The total number of images that were prefetched (successful or not)\n * @param totalCount      The total number of images that were to be prefetched\n */\n- (void)imagePrefetcher:(SDWebImagePrefetcher *)imagePrefetcher didPrefetchURL:(NSURL *)imageURL finishedCount:(NSUInteger)finishedCount totalCount:(NSUInteger)totalCount;\n\n/**\n * Called when all images are prefetched.\n * @param imagePrefetcher The current image prefetcher\n * @param totalCount      The total number of images that were prefetched (whether successful or not)\n * @param skippedCount    The total number of images that were skipped\n */\n- (void)imagePrefetcher:(SDWebImagePrefetcher *)imagePrefetcher didFinishWithTotalCount:(NSUInteger)totalCount skippedCount:(NSUInteger)skippedCount;\n\n@end\n\ntypedef void(^SDWebImagePrefetcherProgressBlock)(NSUInteger noOfFinishedUrls, NSUInteger noOfTotalUrls);\ntypedef void(^SDWebImagePrefetcherCompletionBlock)(NSUInteger noOfFinishedUrls, NSUInteger noOfSkippedUrls);\n\n/**\n * Prefetch some URLs in the cache for future use. Images are downloaded in low priority.\n */\n@interface SDWebImagePrefetcher : NSObject\n\n/**\n *  The web image manager\n */\n@property (strong, nonatomic, readonly) SDWebImageManager *manager;\n\n/**\n * Maximum number of URLs to prefetch at the same time. Defaults to 3.\n */\n@property (nonatomic, assign) NSUInteger maxConcurrentDownloads;\n\n/**\n * SDWebImageOptions for prefetcher. Defaults to SDWebImageLowPriority.\n */\n@property (nonatomic, assign) SDWebImageOptions options;\n\n/**\n * Queue options for Prefetcher. Defaults to Main Queue.\n */\n@property (nonatomic, assign) dispatch_queue_t prefetcherQueue;\n\n@property (weak, nonatomic) id <SDWebImagePrefetcherDelegate> delegate;\n\n/**\n * Return the global image prefetcher instance.\n */\n+ (SDWebImagePrefetcher *)sharedImagePrefetcher;\n\n/**\n * Allows you to instantiate a prefetcher with any arbitrary image manager.\n */\n- (id)initWithImageManager:(SDWebImageManager *)manager;\n\n/**\n * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching,\n * currently one image is downloaded at a time,\n * and skips images for failed downloads and proceed to the next image in the list\n *\n * @param urls list of URLs to prefetch\n */\n- (void)prefetchURLs:(NSArray *)urls;\n\n/**\n * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching,\n * currently one image is downloaded at a time,\n * and skips images for failed downloads and proceed to the next image in the list\n *\n * @param urls            list of URLs to prefetch\n * @param progressBlock   block to be called when progress updates; \n *                        first parameter is the number of completed (successful or not) requests, \n *                        second parameter is the total number of images originally requested to be prefetched\n * @param completionBlock block to be called when prefetching is completed\n *                        first param is the number of completed (successful or not) requests,\n *                        second parameter is the number of skipped requests\n */\n- (void)prefetchURLs:(NSArray *)urls progress:(SDWebImagePrefetcherProgressBlock)progressBlock completed:(SDWebImagePrefetcherCompletionBlock)completionBlock;\n\n/**\n * Remove and cancel queued list\n */\n- (void)cancelPrefetching;\n\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDWebImagePrefetcher.h\"\n\n@interface SDWebImagePrefetcher ()\n\n@property (strong, nonatomic) SDWebImageManager *manager;\n@property (strong, nonatomic) NSArray *prefetchURLs;\n@property (assign, nonatomic) NSUInteger requestedCount;\n@property (assign, nonatomic) NSUInteger skippedCount;\n@property (assign, nonatomic) NSUInteger finishedCount;\n@property (assign, nonatomic) NSTimeInterval startedTime;\n@property (copy, nonatomic) SDWebImagePrefetcherCompletionBlock completionBlock;\n@property (copy, nonatomic) SDWebImagePrefetcherProgressBlock progressBlock;\n\n@end\n\n@implementation SDWebImagePrefetcher\n\n+ (SDWebImagePrefetcher *)sharedImagePrefetcher {\n    static dispatch_once_t once;\n    static id instance;\n    dispatch_once(&once, ^{\n        instance = [self new];\n    });\n    return instance;\n}\n\n- (id)init {\n    return [self initWithImageManager:[SDWebImageManager new]];\n}\n\n- (id)initWithImageManager:(SDWebImageManager *)manager {\n    if ((self = [super init])) {\n        _manager = manager;\n        _options = SDWebImageLowPriority;\n        _prefetcherQueue = dispatch_get_main_queue();\n        self.maxConcurrentDownloads = 3;\n    }\n    return self;\n}\n\n- (void)setMaxConcurrentDownloads:(NSUInteger)maxConcurrentDownloads {\n    self.manager.imageDownloader.maxConcurrentDownloads = maxConcurrentDownloads;\n}\n\n- (NSUInteger)maxConcurrentDownloads {\n    return self.manager.imageDownloader.maxConcurrentDownloads;\n}\n\n- (void)startPrefetchingAtIndex:(NSUInteger)index {\n    if (index >= self.prefetchURLs.count) return;\n    self.requestedCount++;\n    [self.manager downloadImageWithURL:self.prefetchURLs[index] options:self.options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n        if (!finished) return;\n        self.finishedCount++;\n\n        if (image) {\n            if (self.progressBlock) {\n                self.progressBlock(self.finishedCount,[self.prefetchURLs count]);\n            }\n        }\n        else {\n            if (self.progressBlock) {\n                self.progressBlock(self.finishedCount,[self.prefetchURLs count]);\n            }\n            // Add last failed\n            self.skippedCount++;\n        }\n        if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didPrefetchURL:finishedCount:totalCount:)]) {\n            [self.delegate imagePrefetcher:self\n                            didPrefetchURL:self.prefetchURLs[index]\n                             finishedCount:self.finishedCount\n                                totalCount:self.prefetchURLs.count\n             ];\n        }\n        if (self.prefetchURLs.count > self.requestedCount) {\n            dispatch_async(self.prefetcherQueue, ^{\n                [self startPrefetchingAtIndex:self.requestedCount];\n            });\n        } else if (self.finishedCount == self.requestedCount) {\n            [self reportStatus];\n            if (self.completionBlock) {\n                self.completionBlock(self.finishedCount, self.skippedCount);\n                self.completionBlock = nil;\n            }\n            self.progressBlock = nil;\n        }\n    }];\n}\n\n- (void)reportStatus {\n    NSUInteger total = [self.prefetchURLs count];\n    if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didFinishWithTotalCount:skippedCount:)]) {\n        [self.delegate imagePrefetcher:self\n               didFinishWithTotalCount:(total - self.skippedCount)\n                          skippedCount:self.skippedCount\n         ];\n    }\n}\n\n- (void)prefetchURLs:(NSArray *)urls {\n    [self prefetchURLs:urls progress:nil completed:nil];\n}\n\n- (void)prefetchURLs:(NSArray *)urls progress:(SDWebImagePrefetcherProgressBlock)progressBlock completed:(SDWebImagePrefetcherCompletionBlock)completionBlock {\n    [self cancelPrefetching]; // Prevent duplicate prefetch request\n    self.startedTime = CFAbsoluteTimeGetCurrent();\n    self.prefetchURLs = urls;\n    self.completionBlock = completionBlock;\n    self.progressBlock = progressBlock;\n\n    if (urls.count == 0) {\n        if (completionBlock) {\n            completionBlock(0,0);\n        }\n    } else {\n        // Starts prefetching from the very first image on the list with the max allowed concurrency\n        NSUInteger listCount = self.prefetchURLs.count;\n        for (NSUInteger i = 0; i < self.maxConcurrentDownloads && self.requestedCount < listCount; i++) {\n            [self startPrefetchingAtIndex:i];\n        }\n    }\n}\n\n- (void)cancelPrefetching {\n    self.prefetchURLs = nil;\n    self.skippedCount = 0;\n    self.requestedCount = 0;\n    self.finishedCount = 0;\n    [self.manager cancelAll];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIButton+WebCache.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDWebImageCompat.h\"\n#import \"SDWebImageManager.h\"\n\n/**\n * Integrates SDWebImage async downloading and caching of remote images with UIButtonView.\n */\n@interface UIButton (WebCache)\n\n/**\n * Get the current image URL.\n */\n- (NSURL *)sd_currentImageURL;\n\n/**\n * Get the image URL for a control state.\n * \n * @param state Which state you want to know the URL for. The values are described in UIControlState.\n */\n- (NSURL *)sd_imageURLForState:(UIControlState)state;\n\n/**\n * Set the imageView `image` with an `url`.\n *\n * The download is asynchronous and cached.\n *\n * @param url   The url for the image.\n * @param state The state that uses the specified title. The values are described in UIControlState.\n */\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state;\n\n/**\n * Set the imageView `image` with an `url` and a placeholder.\n *\n * The download is asynchronous and cached.\n *\n * @param url         The url for the image.\n * @param state       The state that uses the specified title. The values are described in UIControlState.\n * @param placeholder The image to be set initially, until the image request finishes.\n * @see sd_setImageWithURL:placeholderImage:options:\n */\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;\n\n/**\n * Set the imageView `image` with an `url`, placeholder and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url         The url for the image.\n * @param state       The state that uses the specified title. The values are described in UIControlState.\n * @param placeholder The image to be set initially, until the image request finishes.\n * @param options     The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n */\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;\n\n/**\n * Set the imageView `image` with an `url`.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param state          The state that uses the specified title. The values are described in UIControlState.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the imageView `image` with an `url`, placeholder.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param state          The state that uses the specified title. The values are described in UIControlState.\n * @param placeholder    The image to be set initially, until the image request finishes.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the imageView `image` with an `url`, placeholder and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param state          The state that uses the specified title. The values are described in UIControlState.\n * @param placeholder    The image to be set initially, until the image request finishes.\n * @param options        The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the backgroundImageView `image` with an `url`.\n *\n * The download is asynchronous and cached.\n *\n * @param url   The url for the image.\n * @param state The state that uses the specified title. The values are described in UIControlState.\n */\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state;\n\n/**\n * Set the backgroundImageView `image` with an `url` and a placeholder.\n *\n * The download is asynchronous and cached.\n *\n * @param url         The url for the image.\n * @param state       The state that uses the specified title. The values are described in UIControlState.\n * @param placeholder The image to be set initially, until the image request finishes.\n * @see sd_setImageWithURL:placeholderImage:options:\n */\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;\n\n/**\n * Set the backgroundImageView `image` with an `url`, placeholder and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url         The url for the image.\n * @param state       The state that uses the specified title. The values are described in UIControlState.\n * @param placeholder The image to be set initially, until the image request finishes.\n * @param options     The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n */\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;\n\n/**\n * Set the backgroundImageView `image` with an `url`.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param state          The state that uses the specified title. The values are described in UIControlState.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the backgroundImageView `image` with an `url`, placeholder.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param state          The state that uses the specified title. The values are described in UIControlState.\n * @param placeholder    The image to be set initially, until the image request finishes.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the backgroundImageView `image` with an `url`, placeholder and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param placeholder    The image to be set initially, until the image request finishes.\n * @param options        The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Cancel the current image download\n */\n- (void)sd_cancelImageLoadForState:(UIControlState)state;\n\n/**\n * Cancel the current backgroundImage download\n */\n- (void)sd_cancelBackgroundImageLoadForState:(UIControlState)state;\n\n@end\n\n\n@interface UIButton (WebCacheDeprecated)\n\n- (NSURL *)currentImageURL __deprecated_msg(\"Use `sd_currentImageURL`\");\n- (NSURL *)imageURLForState:(UIControlState)state __deprecated_msg(\"Use `sd_imageURLForState:`\");\n\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:forState:`\");\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:forState:placeholderImage:`\");\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:forState:placeholderImage:options:`\");\n\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:forState:completed:`\");\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:forState:placeholderImage:completed:`\");\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:forState:placeholderImage:options:completed:`\");\n\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state __deprecated_msg(\"Method deprecated. Use `sd_setBackgroundImageWithURL:forState:`\");\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder __deprecated_msg(\"Method deprecated. Use `sd_setBackgroundImageWithURL:forState:placeholderImage:`\");\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options __deprecated_msg(\"Method deprecated. Use `sd_setBackgroundImageWithURL:forState:placeholderImage:options:`\");\n\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setBackgroundImageWithURL:forState:completed:`\");\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setBackgroundImageWithURL:forState:placeholderImage:completed:`\");\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setBackgroundImageWithURL:forState:placeholderImage:options:completed:`\");\n\n- (void)cancelCurrentImageLoad __deprecated_msg(\"Use `sd_cancelImageLoadForState:`\");\n- (void)cancelBackgroundImageLoadForState:(UIControlState)state __deprecated_msg(\"Use `sd_cancelBackgroundImageLoadForState:`\");\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIButton+WebCache.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"UIButton+WebCache.h\"\n#import \"objc/runtime.h\"\n#import \"UIView+WebCacheOperation.h\"\n\nstatic char imageURLStorageKey;\n\n@implementation UIButton (WebCache)\n\n- (NSURL *)sd_currentImageURL {\n    NSURL *url = self.imageURLStorage[@(self.state)];\n\n    if (!url) {\n        url = self.imageURLStorage[@(UIControlStateNormal)];\n    }\n\n    return url;\n}\n\n- (NSURL *)sd_imageURLForState:(UIControlState)state {\n    return self.imageURLStorage[@(state)];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state {\n    [self sd_setImageWithURL:url forState:state placeholderImage:nil options:0 completed:nil];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder {\n    [self sd_setImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:nil];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options {\n    [self sd_setImageWithURL:url forState:state placeholderImage:placeholder options:options completed:nil];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setImageWithURL:url forState:state placeholderImage:nil options:0 completed:completedBlock];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:completedBlock];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock {\n\n    [self setImage:placeholder forState:state];\n    [self sd_cancelImageLoadForState:state];\n    \n    if (!url) {\n        [self.imageURLStorage removeObjectForKey:@(state)];\n        \n        dispatch_main_async_safe(^{\n            if (completedBlock) {\n                NSError *error = [NSError errorWithDomain:SDWebImageErrorDomain code:-1 userInfo:@{NSLocalizedDescriptionKey : @\"Trying to load a nil url\"}];\n                completedBlock(nil, error, SDImageCacheTypeNone, url);\n            }\n        });\n        \n        return;\n    }\n    \n    self.imageURLStorage[@(state)] = url;\n\n    __weak __typeof(self)wself = self;\n    id <SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadImageWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n        if (!wself) return;\n        dispatch_main_sync_safe(^{\n            __strong UIButton *sself = wself;\n            if (!sself) return;\n            if (image && (options & SDWebImageAvoidAutoSetImage) && completedBlock)\n            {\n                completedBlock(image, error, cacheType, url);\n                return;\n            }\n            else if (image) {\n                [sself setImage:image forState:state];\n            }\n            if (completedBlock && finished) {\n                completedBlock(image, error, cacheType, url);\n            }\n        });\n    }];\n    [self sd_setImageLoadOperation:operation forState:state];\n}\n\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:nil options:0 completed:nil];\n}\n\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:nil];\n}\n\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:options completed:nil];\n}\n\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:nil options:0 completed:completedBlock];\n}\n\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:completedBlock];\n}\n\n- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_cancelBackgroundImageLoadForState:state];\n\n    [self setBackgroundImage:placeholder forState:state];\n\n    if (url) {\n        __weak __typeof(self)wself = self;\n        id <SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadImageWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n            if (!wself) return;\n            dispatch_main_sync_safe(^{\n                __strong UIButton *sself = wself;\n                if (!sself) return;\n                if (image && (options & SDWebImageAvoidAutoSetImage) && completedBlock)\n                {\n                    completedBlock(image, error, cacheType, url);\n                    return;\n                }\n                else if (image) {\n                    [sself setBackgroundImage:image forState:state];\n                }\n                if (completedBlock && finished) {\n                    completedBlock(image, error, cacheType, url);\n                }\n            });\n        }];\n        [self sd_setBackgroundImageLoadOperation:operation forState:state];\n    } else {\n        dispatch_main_async_safe(^{\n            NSError *error = [NSError errorWithDomain:SDWebImageErrorDomain code:-1 userInfo:@{NSLocalizedDescriptionKey : @\"Trying to load a nil url\"}];\n            if (completedBlock) {\n                completedBlock(nil, error, SDImageCacheTypeNone, url);\n            }\n        });\n    }\n}\n\n- (void)sd_setImageLoadOperation:(id<SDWebImageOperation>)operation forState:(UIControlState)state {\n    [self sd_setImageLoadOperation:operation forKey:[NSString stringWithFormat:@\"UIButtonImageOperation%@\", @(state)]];\n}\n\n- (void)sd_cancelImageLoadForState:(UIControlState)state {\n    [self sd_cancelImageLoadOperationWithKey:[NSString stringWithFormat:@\"UIButtonImageOperation%@\", @(state)]];\n}\n\n- (void)sd_setBackgroundImageLoadOperation:(id<SDWebImageOperation>)operation forState:(UIControlState)state {\n    [self sd_setImageLoadOperation:operation forKey:[NSString stringWithFormat:@\"UIButtonBackgroundImageOperation%@\", @(state)]];\n}\n\n- (void)sd_cancelBackgroundImageLoadForState:(UIControlState)state {\n    [self sd_cancelImageLoadOperationWithKey:[NSString stringWithFormat:@\"UIButtonBackgroundImageOperation%@\", @(state)]];\n}\n\n- (NSMutableDictionary *)imageURLStorage {\n    NSMutableDictionary *storage = objc_getAssociatedObject(self, &imageURLStorageKey);\n    if (!storage)\n    {\n        storage = [NSMutableDictionary dictionary];\n        objc_setAssociatedObject(self, &imageURLStorageKey, storage, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n\n    return storage;\n}\n\n@end\n\n\n@implementation UIButton (WebCacheDeprecated)\n\n- (NSURL *)currentImageURL {\n    return [self sd_currentImageURL];\n}\n\n- (NSURL *)imageURLForState:(UIControlState)state {\n    return [self sd_imageURLForState:state];\n}\n\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state {\n    [self sd_setImageWithURL:url forState:state placeholderImage:nil options:0 completed:nil];\n}\n\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder {\n    [self sd_setImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:nil];\n}\n\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options {\n    [self sd_setImageWithURL:url forState:state placeholderImage:placeholder options:options completed:nil];\n}\n\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setImageWithURL:url forState:state placeholderImage:nil options:0 completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setImageWithURL:url forState:state placeholderImage:placeholder options:options completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:nil options:0 completed:nil];\n}\n\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:nil];\n}\n\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:options completed:nil];\n}\n\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:nil options:0 completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:options completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)cancelCurrentImageLoad {\n    // in a backwards compatible manner, cancel for current state\n    [self sd_cancelImageLoadForState:self.state];\n}\n\n- (void)cancelBackgroundImageLoadForState:(UIControlState)state {\n    [self sd_cancelBackgroundImageLoadForState:state];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIImage+GIF.h",
    "content": "//\n//  UIImage+GIF.h\n//  LBGIFImage\n//\n//  Created by Laurin Brandner on 06.01.12.\n//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (GIF)\n\n+ (UIImage *)sd_animatedGIFNamed:(NSString *)name;\n\n+ (UIImage *)sd_animatedGIFWithData:(NSData *)data;\n\n- (UIImage *)sd_animatedImageByScalingAndCroppingToSize:(CGSize)size;\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIImage+GIF.m",
    "content": "//\n//  UIImage+GIF.m\n//  LBGIFImage\n//\n//  Created by Laurin Brandner on 06.01.12.\n//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.\n//\n\n#import \"UIImage+GIF.h\"\n#import <ImageIO/ImageIO.h>\n\n@implementation UIImage (GIF)\n\n+ (UIImage *)sd_animatedGIFWithData:(NSData *)data {\n    if (!data) {\n        return nil;\n    }\n\n    CGImageSourceRef source = CGImageSourceCreateWithData((__bridge CFDataRef)data, NULL);\n\n    size_t count = CGImageSourceGetCount(source);\n\n    UIImage *animatedImage;\n\n    if (count <= 1) {\n        animatedImage = [[UIImage alloc] initWithData:data];\n    }\n    else {\n        NSMutableArray *images = [NSMutableArray array];\n\n        NSTimeInterval duration = 0.0f;\n\n        for (size_t i = 0; i < count; i++) {\n            CGImageRef image = CGImageSourceCreateImageAtIndex(source, i, NULL);\n\n            duration += [self sd_frameDurationAtIndex:i source:source];\n\n            [images addObject:[UIImage imageWithCGImage:image scale:[UIScreen mainScreen].scale orientation:UIImageOrientationUp]];\n\n            CGImageRelease(image);\n        }\n\n        if (!duration) {\n            duration = (1.0f / 10.0f) * count;\n        }\n\n        animatedImage = [UIImage animatedImageWithImages:images duration:duration];\n    }\n\n    CFRelease(source);\n\n    return animatedImage;\n}\n\n+ (float)sd_frameDurationAtIndex:(NSUInteger)index source:(CGImageSourceRef)source {\n    float frameDuration = 0.1f;\n    CFDictionaryRef cfFrameProperties = CGImageSourceCopyPropertiesAtIndex(source, index, nil);\n    NSDictionary *frameProperties = (__bridge NSDictionary *)cfFrameProperties;\n    NSDictionary *gifProperties = frameProperties[(NSString *)kCGImagePropertyGIFDictionary];\n\n    NSNumber *delayTimeUnclampedProp = gifProperties[(NSString *)kCGImagePropertyGIFUnclampedDelayTime];\n    if (delayTimeUnclampedProp) {\n        frameDuration = [delayTimeUnclampedProp floatValue];\n    }\n    else {\n\n        NSNumber *delayTimeProp = gifProperties[(NSString *)kCGImagePropertyGIFDelayTime];\n        if (delayTimeProp) {\n            frameDuration = [delayTimeProp floatValue];\n        }\n    }\n\n    // Many annoying ads specify a 0 duration to make an image flash as quickly as possible.\n    // We follow Firefox's behavior and use a duration of 100 ms for any frames that specify\n    // a duration of <= 10 ms. See <rdar://problem/7689300> and <http://webkit.org/b/36082>\n    // for more information.\n\n    if (frameDuration < 0.011f) {\n        frameDuration = 0.100f;\n    }\n\n    CFRelease(cfFrameProperties);\n    return frameDuration;\n}\n\n+ (UIImage *)sd_animatedGIFNamed:(NSString *)name {\n    CGFloat scale = [UIScreen mainScreen].scale;\n\n    if (scale > 1.0f) {\n        NSString *retinaPath = [[NSBundle mainBundle] pathForResource:[name stringByAppendingString:@\"@2x\"] ofType:@\"gif\"];\n\n        NSData *data = [NSData dataWithContentsOfFile:retinaPath];\n\n        if (data) {\n            return [UIImage sd_animatedGIFWithData:data];\n        }\n\n        NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@\"gif\"];\n\n        data = [NSData dataWithContentsOfFile:path];\n\n        if (data) {\n            return [UIImage sd_animatedGIFWithData:data];\n        }\n\n        return [UIImage imageNamed:name];\n    }\n    else {\n        NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@\"gif\"];\n\n        NSData *data = [NSData dataWithContentsOfFile:path];\n\n        if (data) {\n            return [UIImage sd_animatedGIFWithData:data];\n        }\n\n        return [UIImage imageNamed:name];\n    }\n}\n\n- (UIImage *)sd_animatedImageByScalingAndCroppingToSize:(CGSize)size {\n    if (CGSizeEqualToSize(self.size, size) || CGSizeEqualToSize(size, CGSizeZero)) {\n        return self;\n    }\n\n    CGSize scaledSize = size;\n    CGPoint thumbnailPoint = CGPointZero;\n\n    CGFloat widthFactor = size.width / self.size.width;\n    CGFloat heightFactor = size.height / self.size.height;\n    CGFloat scaleFactor = (widthFactor > heightFactor) ? widthFactor : heightFactor;\n    scaledSize.width = self.size.width * scaleFactor;\n    scaledSize.height = self.size.height * scaleFactor;\n\n    if (widthFactor > heightFactor) {\n        thumbnailPoint.y = (size.height - scaledSize.height) * 0.5;\n    }\n    else if (widthFactor < heightFactor) {\n        thumbnailPoint.x = (size.width - scaledSize.width) * 0.5;\n    }\n\n    NSMutableArray *scaledImages = [NSMutableArray array];\n\n    for (UIImage *image in self.images) {\n        UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);\n        \n        [image drawInRect:CGRectMake(thumbnailPoint.x, thumbnailPoint.y, scaledSize.width, scaledSize.height)];\n        UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();\n\n        [scaledImages addObject:newImage];\n\n        UIGraphicsEndImageContext();\n    }\n \n    return [UIImage animatedImageWithImages:scaledImages duration:self.duration];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIImage+MultiFormat.h",
    "content": "//\n//  UIImage+MultiFormat.h\n//  SDWebImage\n//\n//  Created by Olivier Poitrey on 07/06/13.\n//  Copyright (c) 2013 Dailymotion. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (MultiFormat)\n\n+ (UIImage *)sd_imageWithData:(NSData *)data;\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIImage+MultiFormat.m",
    "content": "//\n//  UIImage+MultiFormat.m\n//  SDWebImage\n//\n//  Created by Olivier Poitrey on 07/06/13.\n//  Copyright (c) 2013 Dailymotion. All rights reserved.\n//\n\n#import \"UIImage+MultiFormat.h\"\n#import \"UIImage+GIF.h\"\n#import \"NSData+ImageContentType.h\"\n#import <ImageIO/ImageIO.h>\n\n#ifdef SD_WEBP\n#import \"UIImage+WebP.h\"\n#endif\n\n@implementation UIImage (MultiFormat)\n\n+ (UIImage *)sd_imageWithData:(NSData *)data {\n    if (!data) {\n        return nil;\n    }\n    \n    UIImage *image;\n    NSString *imageContentType = [NSData sd_contentTypeForImageData:data];\n    if ([imageContentType isEqualToString:@\"image/gif\"]) {\n        image = [UIImage sd_animatedGIFWithData:data];\n    }\n#ifdef SD_WEBP\n    else if ([imageContentType isEqualToString:@\"image/webp\"])\n    {\n        image = [UIImage sd_imageWithWebPData:data];\n    }\n#endif\n    else {\n        image = [[UIImage alloc] initWithData:data];\n        UIImageOrientation orientation = [self sd_imageOrientationFromImageData:data];\n        if (orientation != UIImageOrientationUp) {\n            image = [UIImage imageWithCGImage:image.CGImage\n                                        scale:image.scale\n                                  orientation:orientation];\n        }\n    }\n\n\n    return image;\n}\n\n\n+(UIImageOrientation)sd_imageOrientationFromImageData:(NSData *)imageData {\n    UIImageOrientation result = UIImageOrientationUp;\n    CGImageSourceRef imageSource = CGImageSourceCreateWithData((__bridge CFDataRef)imageData, NULL);\n    if (imageSource) {\n        CFDictionaryRef properties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);\n        if (properties) {\n            CFTypeRef val;\n            int exifOrientation;\n            val = CFDictionaryGetValue(properties, kCGImagePropertyOrientation);\n            if (val) {\n                CFNumberGetValue(val, kCFNumberIntType, &exifOrientation);\n                result = [self sd_exifOrientationToiOSOrientation:exifOrientation];\n            } // else - if it's not set it remains at up\n            CFRelease((CFTypeRef) properties);\n        } else {\n            //NSLog(@\"NO PROPERTIES, FAIL\");\n        }\n        CFRelease(imageSource);\n    }\n    return result;\n}\n\n#pragma mark EXIF orientation tag converter\n// Convert an EXIF image orientation to an iOS one.\n// reference see here: http://sylvana.net/jpegcrop/exif_orientation.html\n+ (UIImageOrientation) sd_exifOrientationToiOSOrientation:(int)exifOrientation {\n    UIImageOrientation orientation = UIImageOrientationUp;\n    switch (exifOrientation) {\n        case 1:\n            orientation = UIImageOrientationUp;\n            break;\n\n        case 3:\n            orientation = UIImageOrientationDown;\n            break;\n\n        case 8:\n            orientation = UIImageOrientationLeft;\n            break;\n\n        case 6:\n            orientation = UIImageOrientationRight;\n            break;\n\n        case 2:\n            orientation = UIImageOrientationUpMirrored;\n            break;\n\n        case 4:\n            orientation = UIImageOrientationDownMirrored;\n            break;\n\n        case 5:\n            orientation = UIImageOrientationLeftMirrored;\n            break;\n\n        case 7:\n            orientation = UIImageOrientationRightMirrored;\n            break;\n        default:\n            break;\n    }\n    return orientation;\n}\n\n\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIImageView+HighlightedWebCache.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <UIKit/UIKit.h>\n#import \"SDWebImageCompat.h\"\n#import \"SDWebImageManager.h\"\n\n/**\n * Integrates SDWebImage async downloading and caching of remote images with UIImageView for highlighted state.\n */\n@interface UIImageView (HighlightedWebCache)\n\n/**\n * Set the imageView `highlightedImage` with an `url`.\n *\n * The download is asynchronous and cached.\n *\n * @param url The url for the image.\n */\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url;\n\n/**\n * Set the imageView `highlightedImage` with an `url` and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url     The url for the image.\n * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n */\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options;\n\n/**\n * Set the imageView `highlightedImage` with an `url`.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the imageView `highlightedImage` with an `url` and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param options        The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the imageView `highlightedImage` with an `url` and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param options        The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n * @param progressBlock  A block called while image is downloading\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Cancel the current download\n */\n- (void)sd_cancelCurrentHighlightedImageLoad;\n\n@end\n\n\n@interface UIImageView (HighlightedWebCacheDeprecated)\n\n- (void)setHighlightedImageWithURL:(NSURL *)url __deprecated_msg(\"Method deprecated. Use `sd_setHighlightedImageWithURL:`\");\n- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options __deprecated_msg(\"Method deprecated. Use `sd_setHighlightedImageWithURL:options:`\");\n- (void)setHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setHighlightedImageWithURL:completed:`\");\n- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setHighlightedImageWithURL:options:completed:`\");\n- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setHighlightedImageWithURL:options:progress:completed:`\");\n\n- (void)cancelCurrentHighlightedImageLoad __deprecated_msg(\"Use `sd_cancelCurrentHighlightedImageLoad`\");\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIImageView+HighlightedWebCache.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"UIImageView+HighlightedWebCache.h\"\n#import \"UIView+WebCacheOperation.h\"\n\n#define UIImageViewHighlightedWebCacheOperationKey @\"highlightedImage\"\n\n@implementation UIImageView (HighlightedWebCache)\n\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url {\n    [self sd_setHighlightedImageWithURL:url options:0 progress:nil completed:nil];\n}\n\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options {\n    [self sd_setHighlightedImageWithURL:url options:options progress:nil completed:nil];\n}\n\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setHighlightedImageWithURL:url options:0 progress:nil completed:completedBlock];\n}\n\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setHighlightedImageWithURL:url options:options progress:nil completed:completedBlock];\n}\n\n- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_cancelCurrentHighlightedImageLoad];\n\n    if (url) {\n        __weak __typeof(self)wself = self;\n        id<SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadImageWithURL:url options:options progress:progressBlock completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n            if (!wself) return;\n            dispatch_main_sync_safe (^\n                                     {\n                                         if (!wself) return;\n                                         if (image && (options & SDWebImageAvoidAutoSetImage) && completedBlock)\n                                         {\n                                             completedBlock(image, error, cacheType, url);\n                                             return;\n                                         }\n                                         else if (image) {\n                                             wself.highlightedImage = image;\n                                             [wself setNeedsLayout];\n                                         }\n                                         if (completedBlock && finished) {\n                                             completedBlock(image, error, cacheType, url);\n                                         }\n                                     });\n        }];\n        [self sd_setImageLoadOperation:operation forKey:UIImageViewHighlightedWebCacheOperationKey];\n    } else {\n        dispatch_main_async_safe(^{\n            NSError *error = [NSError errorWithDomain:SDWebImageErrorDomain code:-1 userInfo:@{NSLocalizedDescriptionKey : @\"Trying to load a nil url\"}];\n            if (completedBlock) {\n                completedBlock(nil, error, SDImageCacheTypeNone, url);\n            }\n        });\n    }\n}\n\n- (void)sd_cancelCurrentHighlightedImageLoad {\n    [self sd_cancelImageLoadOperationWithKey:UIImageViewHighlightedWebCacheOperationKey];\n}\n\n@end\n\n\n@implementation UIImageView (HighlightedWebCacheDeprecated)\n\n- (void)setHighlightedImageWithURL:(NSURL *)url {\n    [self sd_setHighlightedImageWithURL:url options:0 progress:nil completed:nil];\n}\n\n- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options {\n    [self sd_setHighlightedImageWithURL:url options:options progress:nil completed:nil];\n}\n\n- (void)setHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setHighlightedImageWithURL:url options:0 progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setHighlightedImageWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setHighlightedImageWithURL:url options:0 progress:progressBlock completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)cancelCurrentHighlightedImageLoad {\n    [self sd_cancelCurrentHighlightedImageLoad];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIImageView+WebCache.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"SDWebImageCompat.h\"\n#import \"SDWebImageManager.h\"\n\n/**\n * Integrates SDWebImage async downloading and caching of remote images with UIImageView.\n *\n * Usage with a UITableViewCell sub-class:\n *\n * @code\n\n#import <SDWebImage/UIImageView+WebCache.h>\n\n...\n\n- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath\n{\n    static NSString *MyIdentifier = @\"MyIdentifier\";\n \n    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];\n \n    if (cell == nil) {\n        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MyIdentifier]\n                 autorelease];\n    }\n \n    // Here we use the provided sd_setImageWithURL: method to load the web image\n    // Ensure you use a placeholder image otherwise cells will be initialized with no image\n    [cell.imageView sd_setImageWithURL:[NSURL URLWithString:@\"http://example.com/image.jpg\"]\n                      placeholderImage:[UIImage imageNamed:@\"placeholder\"]];\n \n    cell.textLabel.text = @\"My Text\";\n    return cell;\n}\n\n * @endcode\n */\n@interface UIImageView (WebCache)\n\n/**\n * Get the current image URL.\n *\n * Note that because of the limitations of categories this property can get out of sync\n * if you use sd_setImage: directly.\n */\n- (NSURL *)sd_imageURL;\n\n/**\n * Set the imageView `image` with an `url`.\n *\n * The download is asynchronous and cached.\n *\n * @param url The url for the image.\n */\n- (void)sd_setImageWithURL:(NSURL *)url;\n\n/**\n * Set the imageView `image` with an `url` and a placeholder.\n *\n * The download is asynchronous and cached.\n *\n * @param url         The url for the image.\n * @param placeholder The image to be set initially, until the image request finishes.\n * @see sd_setImageWithURL:placeholderImage:options:\n */\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;\n\n/**\n * Set the imageView `image` with an `url`, placeholder and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url         The url for the image.\n * @param placeholder The image to be set initially, until the image request finishes.\n * @param options     The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n */\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;\n\n/**\n * Set the imageView `image` with an `url`.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the imageView `image` with an `url`, placeholder.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param placeholder    The image to be set initially, until the image request finishes.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the imageView `image` with an `url`, placeholder and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param placeholder    The image to be set initially, until the image request finishes.\n * @param options        The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the imageView `image` with an `url`, placeholder and custom options.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param placeholder    The image to be set initially, until the image request finishes.\n * @param options        The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n * @param progressBlock  A block called while image is downloading\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Set the imageView `image` with an `url` and optionally a placeholder image.\n *\n * The download is asynchronous and cached.\n *\n * @param url            The url for the image.\n * @param placeholder    The image to be set initially, until the image request finishes.\n * @param options        The options to use when downloading the image. @see SDWebImageOptions for the possible values.\n * @param progressBlock  A block called while image is downloading\n * @param completedBlock A block called when operation has been completed. This block has no return value\n *                       and takes the requested UIImage as first parameter. In case of error the image parameter\n *                       is nil and the second parameter may contain an NSError. The third parameter is a Boolean\n *                       indicating if the image was retrieved from the local cache or from the network.\n *                       The fourth parameter is the original image url.\n */\n- (void)sd_setImageWithPreviousCachedImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock;\n\n/**\n * Download an array of images and starts them in an animation loop\n *\n * @param arrayOfURLs An array of NSURL\n */\n- (void)sd_setAnimationImagesWithURLs:(NSArray *)arrayOfURLs;\n\n/**\n * Cancel the current download\n */\n- (void)sd_cancelCurrentImageLoad;\n\n- (void)sd_cancelCurrentAnimationImagesLoad;\n\n/**\n *  Show activity UIActivityIndicatorView\n */\n- (void)setShowActivityIndicatorView:(BOOL)show;\n\n/**\n *  set desired UIActivityIndicatorViewStyle\n *\n *  @param style The style of the UIActivityIndicatorView\n */\n- (void)setIndicatorStyle:(UIActivityIndicatorViewStyle)style;\n\n@end\n\n\n@interface UIImageView (WebCacheDeprecated)\n\n- (NSURL *)imageURL __deprecated_msg(\"Use `sd_imageURL`\");\n\n- (void)setImageWithURL:(NSURL *)url __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:`\");\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:placeholderImage:`\");\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:placeholderImage:options`\");\n\n- (void)setImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:completed:`\");\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:placeholderImage:completed:`\");\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:placeholderImage:options:completed:`\");\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg(\"Method deprecated. Use `sd_setImageWithURL:placeholderImage:options:progress:completed:`\");\n\n- (void)setAnimationImagesWithURLs:(NSArray *)arrayOfURLs __deprecated_msg(\"Use `sd_setAnimationImagesWithURLs:`\");\n\n- (void)cancelCurrentArrayLoad __deprecated_msg(\"Use `sd_cancelCurrentAnimationImagesLoad`\");\n\n- (void)cancelCurrentImageLoad __deprecated_msg(\"Use `sd_cancelCurrentImageLoad`\");\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIImageView+WebCache.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"UIImageView+WebCache.h\"\n#import \"objc/runtime.h\"\n#import \"UIView+WebCacheOperation.h\"\n\nstatic char imageURLKey;\nstatic char TAG_ACTIVITY_INDICATOR;\nstatic char TAG_ACTIVITY_STYLE;\nstatic char TAG_ACTIVITY_SHOW;\n\n@implementation UIImageView (WebCache)\n\n- (void)sd_setImageWithURL:(NSURL *)url {\n    [self sd_setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:nil];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:nil];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:nil];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:completedBlock];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:completedBlock];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:completedBlock];\n}\n\n- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock {\n    [self sd_cancelCurrentImageLoad];\n    objc_setAssociatedObject(self, &imageURLKey, url, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n\n    if (!(options & SDWebImageDelayPlaceholder)) {\n        dispatch_main_async_safe(^{\n            self.image = placeholder;\n        });\n    }\n    \n    if (url) {\n\n        // check if activityView is enabled or not\n        if ([self showActivityIndicatorView]) {\n            [self addActivityIndicator];\n        }\n\n        __weak __typeof(self)wself = self;\n        id <SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadImageWithURL:url options:options progress:progressBlock completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n            [wself removeActivityIndicator];\n            if (!wself) return;\n            dispatch_main_sync_safe(^{\n                if (!wself) return;\n                if (image && (options & SDWebImageAvoidAutoSetImage) && completedBlock)\n                {\n                    completedBlock(image, error, cacheType, url);\n                    return;\n                }\n                else if (image) {\n                    wself.image = image;\n                    [wself setNeedsLayout];\n                } else {\n                    if ((options & SDWebImageDelayPlaceholder)) {\n                        wself.image = placeholder;\n                        [wself setNeedsLayout];\n                    }\n                }\n                if (completedBlock && finished) {\n                    completedBlock(image, error, cacheType, url);\n                }\n            });\n        }];\n        [self sd_setImageLoadOperation:operation forKey:@\"UIImageViewImageLoad\"];\n    } else {\n        dispatch_main_async_safe(^{\n            [self removeActivityIndicator];\n            if (completedBlock) {\n                NSError *error = [NSError errorWithDomain:SDWebImageErrorDomain code:-1 userInfo:@{NSLocalizedDescriptionKey : @\"Trying to load a nil url\"}];\n                completedBlock(nil, error, SDImageCacheTypeNone, url);\n            }\n        });\n    }\n}\n\n- (void)sd_setImageWithPreviousCachedImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock {\n    NSString *key = [[SDWebImageManager sharedManager] cacheKeyForURL:url];\n    UIImage *lastPreviousCachedImage = [[SDImageCache sharedImageCache] imageFromDiskCacheForKey:key];\n    \n    [self sd_setImageWithURL:url placeholderImage:lastPreviousCachedImage ?: placeholder options:options progress:progressBlock completed:completedBlock];    \n}\n\n- (NSURL *)sd_imageURL {\n    return objc_getAssociatedObject(self, &imageURLKey);\n}\n\n- (void)sd_setAnimationImagesWithURLs:(NSArray *)arrayOfURLs {\n    [self sd_cancelCurrentAnimationImagesLoad];\n    __weak __typeof(self)wself = self;\n\n    NSMutableArray *operationsArray = [[NSMutableArray alloc] init];\n\n    for (NSURL *logoImageURL in arrayOfURLs) {\n        id <SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadImageWithURL:logoImageURL options:0 progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {\n            if (!wself) return;\n            dispatch_main_sync_safe(^{\n                __strong UIImageView *sself = wself;\n                [sself stopAnimating];\n                if (sself && image) {\n                    NSMutableArray *currentImages = [[sself animationImages] mutableCopy];\n                    if (!currentImages) {\n                        currentImages = [[NSMutableArray alloc] init];\n                    }\n                    [currentImages addObject:image];\n\n                    sself.animationImages = currentImages;\n                    [sself setNeedsLayout];\n                }\n                [sself startAnimating];\n            });\n        }];\n        [operationsArray addObject:operation];\n    }\n\n    [self sd_setImageLoadOperation:[NSArray arrayWithArray:operationsArray] forKey:@\"UIImageViewAnimationImages\"];\n}\n\n- (void)sd_cancelCurrentImageLoad {\n    [self sd_cancelImageLoadOperationWithKey:@\"UIImageViewImageLoad\"];\n}\n\n- (void)sd_cancelCurrentAnimationImagesLoad {\n    [self sd_cancelImageLoadOperationWithKey:@\"UIImageViewAnimationImages\"];\n}\n\n\n#pragma mark -\n- (UIActivityIndicatorView *)activityIndicator {\n    return (UIActivityIndicatorView *)objc_getAssociatedObject(self, &TAG_ACTIVITY_INDICATOR);\n}\n\n- (void)setActivityIndicator:(UIActivityIndicatorView *)activityIndicator {\n    objc_setAssociatedObject(self, &TAG_ACTIVITY_INDICATOR, activityIndicator, OBJC_ASSOCIATION_RETAIN);\n}\n\n- (void)setShowActivityIndicatorView:(BOOL)show{\n    objc_setAssociatedObject(self, &TAG_ACTIVITY_SHOW, [NSNumber numberWithBool:show], OBJC_ASSOCIATION_RETAIN);\n}\n\n- (BOOL)showActivityIndicatorView{\n    return [objc_getAssociatedObject(self, &TAG_ACTIVITY_SHOW) boolValue];\n}\n\n- (void)setIndicatorStyle:(UIActivityIndicatorViewStyle)style{\n    objc_setAssociatedObject(self, &TAG_ACTIVITY_STYLE, [NSNumber numberWithInt:style], OBJC_ASSOCIATION_RETAIN);\n}\n\n- (int)getIndicatorStyle{\n    return [objc_getAssociatedObject(self, &TAG_ACTIVITY_STYLE) intValue];\n}\n\n- (void)addActivityIndicator {\n    if (!self.activityIndicator) {\n        self.activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:[self getIndicatorStyle]];\n        self.activityIndicator.translatesAutoresizingMaskIntoConstraints = NO;\n\n        dispatch_main_async_safe(^{\n            [self addSubview:self.activityIndicator];\n\n            [self addConstraint:[NSLayoutConstraint constraintWithItem:self.activityIndicator\n                                                             attribute:NSLayoutAttributeCenterX\n                                                             relatedBy:NSLayoutRelationEqual\n                                                                toItem:self\n                                                             attribute:NSLayoutAttributeCenterX\n                                                            multiplier:1.0\n                                                              constant:0.0]];\n            [self addConstraint:[NSLayoutConstraint constraintWithItem:self.activityIndicator\n                                                             attribute:NSLayoutAttributeCenterY\n                                                             relatedBy:NSLayoutRelationEqual\n                                                                toItem:self\n                                                             attribute:NSLayoutAttributeCenterY\n                                                            multiplier:1.0\n                                                              constant:0.0]];\n        });\n    }\n\n    dispatch_main_async_safe(^{\n        [self.activityIndicator startAnimating];\n    });\n\n}\n\n- (void)removeActivityIndicator {\n    if (self.activityIndicator) {\n        [self.activityIndicator removeFromSuperview];\n        self.activityIndicator = nil;\n    }\n}\n\n@end\n\n\n@implementation UIImageView (WebCacheDeprecated)\n\n- (NSURL *)imageURL {\n    return [self sd_imageURL];\n}\n\n- (void)setImageWithURL:(NSURL *)url {\n    [self sd_setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:nil];\n}\n\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:nil];\n}\n\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:nil];\n}\n\n- (void)setImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock {\n    [self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:progressBlock completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {\n        if (completedBlock) {\n            completedBlock(image, error, cacheType);\n        }\n    }];\n}\n\n- (void)cancelCurrentArrayLoad {\n    [self sd_cancelCurrentAnimationImagesLoad];\n}\n\n- (void)cancelCurrentImageLoad {\n    [self sd_cancelCurrentImageLoad];\n}\n\n- (void)setAnimationImagesWithURLs:(NSArray *)arrayOfURLs {\n    [self sd_setAnimationImagesWithURLs:arrayOfURLs];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.h",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <UIKit/UIKit.h>\n#import \"SDWebImageManager.h\"\n\n@interface UIView (WebCacheOperation)\n\n/**\n *  Set the image load operation (storage in a UIView based dictionary)\n *\n *  @param operation the operation\n *  @param key       key for storing the operation\n */\n- (void)sd_setImageLoadOperation:(id)operation forKey:(NSString *)key;\n\n/**\n *  Cancel all operations for the current UIView and key\n *\n *  @param key key for identifying the operations\n */\n- (void)sd_cancelImageLoadOperationWithKey:(NSString *)key;\n\n/**\n *  Just remove the operations corresponding to the current UIView and key without cancelling them\n *\n *  @param key key for identifying the operations\n */\n- (void)sd_removeImageLoadOperationWithKey:(NSString *)key;\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage/SDWebImage/UIView+WebCacheOperation.m",
    "content": "/*\n * This file is part of the SDWebImage package.\n * (c) Olivier Poitrey <rs@dailymotion.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import \"UIView+WebCacheOperation.h\"\n#import \"objc/runtime.h\"\n\nstatic char loadOperationKey;\n\n@implementation UIView (WebCacheOperation)\n\n- (NSMutableDictionary *)operationDictionary {\n    NSMutableDictionary *operations = objc_getAssociatedObject(self, &loadOperationKey);\n    if (operations) {\n        return operations;\n    }\n    operations = [NSMutableDictionary dictionary];\n    objc_setAssociatedObject(self, &loadOperationKey, operations, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    return operations;\n}\n\n- (void)sd_setImageLoadOperation:(id)operation forKey:(NSString *)key {\n    [self sd_cancelImageLoadOperationWithKey:key];\n    NSMutableDictionary *operationDictionary = [self operationDictionary];\n    [operationDictionary setObject:operation forKey:key];\n}\n\n- (void)sd_cancelImageLoadOperationWithKey:(NSString *)key {\n    // Cancel in progress downloader from queue\n    NSMutableDictionary *operationDictionary = [self operationDictionary];\n    id operations = [operationDictionary objectForKey:key];\n    if (operations) {\n        if ([operations isKindOfClass:[NSArray class]]) {\n            for (id <SDWebImageOperation> operation in operations) {\n                if (operation) {\n                    [operation cancel];\n                }\n            }\n        } else if ([operations conformsToProtocol:@protocol(SDWebImageOperation)]){\n            [(id<SDWebImageOperation>) operations cancel];\n        }\n        [operationDictionary removeObjectForKey:key];\n    }\n}\n\n- (void)sd_removeImageLoadOperationWithKey:(NSString *)key {\n    NSMutableDictionary *operationDictionary = [self operationDictionary];\n    [operationDictionary removeObjectForKey:key];\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage-Category/LICENSE",
    "content": "Copyright (c) 2012 Jianghuai Li (https://github.com/li6185377)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."
  },
  {
    "path": "Pods/SDWebImage-Category/README.md",
    "content": "SDWebImage-Category\n===================\nQQ群号 113767274 有什么问题或者改进的地方大家一起讨论\n支持显示点击后下载，下载失败显示裂图，自动重试等功能\n\nUIImageView by SDWebImage to add download progress bar and click on the download fails automatic retry\n\n\n![](https://raw.githubusercontent.com/li6185377/SDWebImage-Category/master/demo.gif)\n\n"
  },
  {
    "path": "Pods/SDWebImage-Category/SDWebImage-Category/THProgressView/LK_THProgressView.h",
    "content": "//\n//  THProgressView.h\n//\n//  Created by Tiago Henriques on 10/22/13.\n//  Copyright (c) 2013 Tiago Henriques. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LK_THProgressView : UIView\n\n@property (nonatomic, strong) UIColor* progressTintColor;\n@property (nonatomic, strong) UIColor* borderTintColor;\n@property (nonatomic) CGFloat progress;\n\n- (void)setProgress:(CGFloat)progress animated:(BOOL)animated;\n\n@end"
  },
  {
    "path": "Pods/SDWebImage-Category/SDWebImage-Category/THProgressView/LK_THProgressView.m",
    "content": "//\n//  THProgressView.m\n//\n//  Created by Tiago Henriques on 10/22/13.\n//  Copyright (c) 2013 Tiago Henriques. All rights reserved.\n//\n\n#import \"LK_THProgressView.h\"\n\n#import <QuartzCore/QuartzCore.h>\n\n\nstatic const CGFloat kBorderWidth = 2.0f;\n\n\n#pragma mark -\n#pragma mark THProgressLayer\n\n@interface THProgressLayer : CALayer\n@property (nonatomic, strong) UIColor* progressTintColor;\n@property (nonatomic, strong) UIColor* borderTintColor;\n@property (nonatomic) CGFloat progress;\n@end\n\n@implementation THProgressLayer\n\n@dynamic progressTintColor;\n@dynamic borderTintColor;\n\n+ (BOOL)needsDisplayForKey:(NSString *)key\n{\n    return [key isEqualToString:@\"progress\"] ? YES : [super needsDisplayForKey:key];\n}\n\n- (void)drawInContext:(CGContextRef)context\n{\n    CGRect rect = CGRectInset(self.bounds, kBorderWidth, kBorderWidth);\n    CGFloat radius = CGRectGetHeight(rect) / 2.0f;\n    CGContextSetLineWidth(context, kBorderWidth);\n    CGContextSetStrokeColorWithColor(context, self.borderTintColor.CGColor);\n    [self drawRectangleInContext:context inRect:rect withRadius:radius];\n    CGContextStrokePath(context);\n    \n    \n    CGContextSetFillColorWithColor(context, self.progressTintColor.CGColor);\n    CGRect progressRect = CGRectInset(rect, 2 * kBorderWidth, 2 * kBorderWidth);\n    CGFloat progressRadius = CGRectGetHeight(progressRect) / 2.0f;\n    progressRect.size.width = fmaxf(self.progress * progressRect.size.width, 2.0f * progressRadius);\n    [self drawRectangleInContext:context inRect:progressRect withRadius:progressRadius];\n    CGContextFillPath(context);\n}\n\n- (void)drawRectangleInContext:(CGContextRef)context inRect:(CGRect)rect withRadius:(CGFloat)radius\n{\n    CGContextMoveToPoint(context, rect.origin.x, rect.origin.y + radius);\n    CGContextAddLineToPoint(context, rect.origin.x, rect.origin.y + rect.size.height - radius);\n    CGContextAddArc(context, rect.origin.x + radius, rect.origin.y + rect.size.height - radius, radius, M_PI, M_PI / 2, 1);\n    CGContextAddLineToPoint(context, rect.origin.x + rect.size.width - radius, rect.origin.y + rect.size.height);\n    CGContextAddArc(context, rect.origin.x + rect.size.width - radius, rect.origin.y + rect.size.height - radius, radius, M_PI / 2, 0.0f, 1);\n    CGContextAddLineToPoint(context, rect.origin.x + rect.size.width, rect.origin.y + radius);\n    CGContextAddArc(context, rect.origin.x + rect.size.width - radius, rect.origin.y + radius, radius, 0.0f, -M_PI / 2, 1);\n    CGContextAddLineToPoint(context, rect.origin.x + radius, rect.origin.y);\n    CGContextAddArc(context, rect.origin.x + radius, rect.origin.y + radius, radius, -M_PI / 2, M_PI, 1);\n}\n-(void)setNeedsDisplay\n{\n    if([NSThread isMainThread])\n    {\n        [super setNeedsDisplay];\n    }\n}\n\n@end\n\n\n#pragma mark -\n#pragma mark THProgressView\n\n@interface LK_THProgressView()\n@property(strong,nonatomic)THProgressLayer* progressLayer;\n@end\n@implementation LK_THProgressView\n\n- (id)initWithFrame:(CGRect)frame\n{\n    if (self = [super initWithFrame:frame]) {\n        [self initialize];\n    }\n    return self;\n}\n\n- (id)initWithCoder:(NSCoder *)aDecoder\n{\n    if (self = [super initWithCoder:aDecoder]) {\n        [self initialize];\n    }\n    return self;\n}\n-(void)setFrame:(CGRect)frame\n{\n    [super setFrame:frame];\n    _progressLayer.frame = self.bounds;\n    [_progressLayer setNeedsDisplay];\n}\n\n- (void)initialize\n{\n    self.backgroundColor = [UIColor clearColor];\n    self.progressLayer = [[THProgressLayer alloc]init];\n    _progressLayer.frame = self.bounds;\n    [self.layer addSublayer:_progressLayer];\n}\n\n- (void)didMoveToWindow\n{\n    self.progressLayer.contentsScale = self.window.screen.scale;\n}\n\n#pragma mark Getters & Setters\n\n- (CGFloat)progress\n{\n    return self.progressLayer.progress;\n}\n\n- (void)setProgress:(CGFloat)progress\n{\n    [self setProgress:progress animated:NO];\n}\n\n- (void)setProgress:(CGFloat)progress animated:(BOOL)animated\n{\n    [self.progressLayer removeAnimationForKey:@\"progress\"];\n    CGFloat pinnedProgress = MIN(MAX(progress, 0.0f), 1.0f);\n    \n    if (animated) {\n        CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@\"progress\"];\n        animation.duration = fabsf(self.progress - pinnedProgress) + 0.1f;\n        animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];\n        animation.fromValue = [NSNumber numberWithFloat:self.progress];\n        animation.toValue = [NSNumber numberWithFloat:pinnedProgress];\n        [self.progressLayer addAnimation:animation forKey:@\"progress\"];\n    }\n    else {\n        [self.progressLayer setNeedsDisplay];\n    }\n    \n    self.progressLayer.progress = pinnedProgress;\n}\n\n- (UIColor *)progressTintColor\n{\n    return self.progressLayer.progressTintColor;\n}\n\n- (void)setProgressTintColor:(UIColor *)progressTintColor\n{\n    self.progressLayer.progressTintColor = progressTintColor;\n    [self.progressLayer setNeedsDisplay];\n}\n\n- (UIColor *)borderTintColor\n{\n    return self.progressLayer.borderTintColor;\n}\n\n- (void)setBorderTintColor:(UIColor *)borderTintColor\n{\n    self.progressLayer.borderTintColor = borderTintColor;\n    [self.progressLayer setNeedsDisplay];\n}\n-(void)setNeedsDisplay\n{\n    if([NSThread isMainThread])\n    {\n        [super setNeedsDisplay];\n    }\n}\n\n@end\n"
  },
  {
    "path": "Pods/SDWebImage-Category/SDWebImage-Category/UIImageView+LK.h",
    "content": "//\n//  UIImageView+SY.h\n//  Seeyou\n//\n//  Created by ljh on 14-2-13.\n//  Copyright (c) 2014年 linggan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger, LKImageViewStatus){\n    ///默认\n    LKImageViewStatusNone = 0,\n    ///下载完成\n    LKImageViewStatusLoaded = 1,\n    ///下载中\n    LKImageViewStatusLoading = 2,\n    ///下载失败\n    LKImageViewStatusFail = 3,\n    ///点击下载状态\n    LKImageViewStatusClickDownload = 4\n};\n\n@interface NSObject(LKImageViewDelegate)\n///是否需要点击下载的回调\n-(BOOL)lk_clickDownloadImageForURL:(NSURL*)imageURL;\n\n/**\n *  @brief  当点击下载的时候(可能是失败或者处于点击下载状态） 是否更换URL\n            \n            比如 在2g3g状态下 你可以给URL注入一个属性 然后在SDWebImageManagerDelegate的回调中\n            通过这个属性来判断是否强制下载图片\n *\n *  @param imageURL 原始URL\n *\n *  @return 新的URL\n */\n-(NSURL*)lk_newURLWithClickURL:(NSURL*)imageURL;\n@end\n\n\n\n/**\n *  @brief  图片加载出错了 可以点击重试  会自动重试3次\n */\n@interface UIImageView (LK)\n\n///设置回调代理 是否显示点击下载图片\n+(void)lk_setImageDownloadDelegate:(id)delegate;\n\n///加载的图片 url地址 可以是 NSString 或 NSURL\n@property(copy, nonatomic) id imageURL;\n\n///加载完成后 给图片设置的contentMode\n@property UIViewContentMode loadedViewContentMode;\n\n///这个不会设置 image  只会保存ImageURL\n- (void)setImageURLFromCache:(id)imageURL;\n\n///当前状态\n@property(readonly,assign,nonatomic) LKImageViewStatus status;\n\n///图片点击事件  不用再手动添加UITapGestureRecognizer\n@property(copy, nonatomic) void(^onTouchTapBlock)(UIImageView *imageView);\n\n///重新加载图片\n- (void)reloadImageURL;\n@end"
  },
  {
    "path": "Pods/SDWebImage-Category/SDWebImage-Category/UIImageView+LK.m",
    "content": "//\n//  UIImageView+SY.m\n//  Seeyou\n//\n//  Created by ljh on 14-2-13.\n//  Copyright (c) 2014年 linggan. All rights reserved.\n//\n\n#import \"UIImageView+LK.h\"\n#import \"LK_THProgressView.h\"\n#import <objc/runtime.h>\n\n#import \"UIImageView+WebCache.h\"\n#import \"SDImageCache.h\"\n\n#ifdef dispatch_main_async_safe\n\n#define __lk_setImageWithURL__ sd_setImageWithURL\n#define __lk_cancelImageLoad__ sd_cancelCurrentImageLoad\n#define __lk_completedURL__ ,NSURL* url\n\n#else\n\n#define __lk_setImageWithURL__ setImageWithURL\n#define __lk_cancelImageLoad__ cancelCurrentImageLoad\n#define __lk_completedURL__\n\n#endif\n\n\nstatic char imageURLKey;\nstatic char imageStatusKey;\nstatic char imageTapEventKey;\nstatic char imageLoadedModeKey;\nstatic char imageReloadCountKey;\n\nstatic __weak id lk_imageDownloadDelegate;\n@implementation UIImageView (SY)\n\n+(void)lk_setImageDownloadDelegate:(id)delegate\n{\n    lk_imageDownloadDelegate = delegate;\n}\n\n\n-(void)lk_cancelCurrentImageLoad\n{\n    [self __lk_cancelImageLoad__];\n}\n- (LK_THProgressView *)lk_progressView:(BOOL)isCreate\n{\n    const int imageProgressTag = 41251;\n    LK_THProgressView *progressView = (id)[self viewWithTag:imageProgressTag];\n    if (isCreate)\n    {\n        int pwidth = ceil(self.frame.size.width * 0.76);\n        if (progressView == nil)\n        {\n            progressView = [[LK_THProgressView alloc] initWithFrame:CGRectMake(0, 0,pwidth, 20)];\n            progressView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleBottomMargin;\n            progressView.progressTintColor = [UIColor whiteColor];\n            progressView.borderTintColor = [UIColor whiteColor];\n            progressView.hidden = YES;\n            progressView.tag = imageProgressTag;\n            \n            [self addSubview:progressView];\n        }\n        CGRect frame = progressView.frame;\n        frame.size.width = pwidth;\n        progressView.frame = frame;\n        progressView.center = CGPointMake(self.frame.size.width / 2, self.frame.size.height / 2);\n        progressView.hidden = NO;\n        \n        [self bringSubviewToFront:progressView];\n    }\n    return progressView;\n}\n-(UIViewContentMode)loadedViewContentMode\n{\n    NSNumber *value = objc_getAssociatedObject(self, &imageLoadedModeKey);\n    if(value == nil)\n    {\n        return -1;\n    }\n    return [value intValue];\n}\n-(void)setLoadedViewContentMode:(UIViewContentMode)loadedViewContentMode\n{\n    objc_setAssociatedObject(self, &imageLoadedModeKey, @(loadedViewContentMode), OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n-(int)reloadCount\n{\n    NSNumber *value = objc_getAssociatedObject(self, &imageReloadCountKey);\n    return [value intValue];\n}\n\n-(void)setReloadCount:(int)count\n{\n    objc_setAssociatedObject(self, &imageReloadCountKey, @(count), OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n- (LKImageViewStatus)status\n{\n    NSNumber *value = objc_getAssociatedObject(self, &imageStatusKey);\n    if (value)\n    {\n        return [value intValue];\n    }\n    return LKImageViewStatusNone;\n}\n\n- (void)setStatus:(LKImageViewStatus)status\n{\n    objc_setAssociatedObject(self, &imageStatusKey, @(status), OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n-(NSURL*)lk_URLWithImageURL:(id)imageURL\n{\n    if ([imageURL isKindOfClass:[NSString class]])\n    {\n        if([imageURL hasPrefix:@\"http\"]||[imageURL hasPrefix:@\"ftp\"])\n        {\n            imageURL = [NSURL URLWithString:imageURL];\n        }\n        else\n        {\n            imageURL = [NSURL fileURLWithPath:imageURL];\n        }\n    }\n    if ([imageURL isKindOfClass:[NSURL class]] == NO)\n    {\n        imageURL = nil;\n    }\n    return imageURL;\n}\n\n- (void)setImageURLFromCache:(id)imageURL\n{\n    [self lk_loadTapEvent];\n    self.status = LKImageViewStatusLoaded;\n    \n    imageURL = [self lk_URLWithImageURL:imageURL];\n    objc_setAssociatedObject(self, &imageURLKey, imageURL, OBJC_ASSOCIATION_COPY_NONATOMIC);\n}\n\n- (void)setImageURL:(id)imageURL\n{\n    [self lk_loadTapEvent];\n    \n    imageURL = [self lk_URLWithImageURL:imageURL];\n    if (self.imageURL && self.image && self.image.duration == 0 && self.status == LKImageViewStatusLoaded && imageURL)\n    {\n        if([[self.imageURL absoluteString] isEqualToString:[imageURL absoluteString]])\n        {\n            ///相同的图片URL 就不在设置了\n            return;\n        }\n    }\n    \n    objc_setAssociatedObject(self, &imageURLKey, imageURL, OBJC_ASSOCIATION_COPY_NONATOMIC);\n    if (imageURL)\n    {\n        [self setReloadCount:0];\n        \n        BOOL hasShowClickDownload = NO;\n        if([lk_imageDownloadDelegate respondsToSelector:@selector(lk_clickDownloadImageForURL:)])\n        {\n            hasShowClickDownload = [lk_imageDownloadDelegate lk_clickDownloadImageForURL:imageURL];\n        }\n        \n        BOOL hasCache = NO;\n        if(hasShowClickDownload)\n        {\n            hasCache = [[SDImageCache sharedImageCache] diskImageExistsWithKey:[imageURL absoluteString]];\n        }\n        \n        ///需要显示点击下载图片的选项\n        if(hasShowClickDownload && hasCache == NO)\n        {\n            [self lk_init_imageview];\n            self.status = LKImageViewStatusClickDownload;\n            [self lk_showImageWithName:@\"lk_click_image\"];\n        }\n        else\n        {\n            [self reloadImageURL];\n        }\n    }\n    else\n    {\n        \n        [self lk_hideProgressView];\n        [self lk_cancelCurrentImageLoad];\n        self.image = nil;\n        self.backgroundColor = [UIColor colorWithRed:233/255.0 green:228/255.0 blue:223/255.0 alpha:1];\n        self.status = LKImageViewStatusNone;\n    }\n}\n\nstatic char tapEventLoadedKey;\n- (void)lk_loadTapEvent\n{\n    UITapGestureRecognizer* tap = objc_getAssociatedObject(self, &tapEventLoadedKey);\n    if (tap == nil)\n    {\n        self.userInteractionEnabled = YES;\n        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(lk_handleTapEvent:)];\n        [self addGestureRecognizer:tap];\n        objc_setAssociatedObject(self, &tapEventLoadedKey,tap, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n}\n-(BOOL)lk_hasLoadedTapEvent\n{\n    id tapObj = objc_getAssociatedObject(self, &tapEventLoadedKey);\n    return (tapObj != nil);\n}\n\n- (id)imageURL\n{\n    return objc_getAssociatedObject(self, &imageURLKey);\n}\n\n-(void)lk_init_imageview\n{\n    [self lk_cancelCurrentImageLoad];\n    \n    [self lk_progressView:NO].hidden = YES;\n    \n    self.image = nil;\n    self.backgroundColor = [UIColor colorWithRed:233/255.0 green:228/255.0 blue:223/255.0 alpha:1];\n    \n    if(self.loadedViewContentMode < 0)\n    {\n        self.loadedViewContentMode = self.contentMode;\n    }\n}\n- (void)reloadImageURL\n{\n    id imageURL = self.imageURL;\n    \n    [self lk_init_imageview];\n    \n    __weak UIImageView *wself = self;\n    \n    self.status = LKImageViewStatusLoading;\n    \n    __block LK_THProgressView *pv = [self lk_progressView:YES];\n    pv.progress = 0;\n    pv.hidden = NO;\n    [pv setNeedsDisplay];\n    [self setNeedsDisplay];\n    \n    [self __lk_setImageWithURL__:imageURL placeholderImage:nil options:SDWebImageRetryFailed\n                        progress:^(NSInteger receivedSize, NSInteger expectedSize)\n     {\n         if(expectedSize <= 0)\n         {\n             return;\n         }\n         float pvalue = MAX(0, MIN(1, receivedSize / (float) expectedSize));\n         dispatch_main_sync_safe(^{\n             if(wself.image == nil)\n             {\n                 if(!pv)\n                 {\n                     pv = [wself lk_progressView:YES];\n                 }\n                 pv.hidden = NO;\n             }\n             pv.progress = pvalue;\n         });\n     }\n                       completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType __lk_completedURL__)\n     {\n         if (image)\n         {\n             [wself lk_hideProgressView];\n             wself.status = LKImageViewStatusLoaded;\n             if(image.duration == 0)\n             {\n                 if(wself.loadedViewContentMode > 0 && wself.contentMode != wself.loadedViewContentMode)\n                 {\n                     wself.contentMode = wself.loadedViewContentMode;\n                     [wself setNeedsDisplay];\n                 }\n                 wself.backgroundColor = [UIColor clearColor];\n             }\n         }\n         else\n         {\n             if (error)\n             {\n                 int reloadCount = [wself reloadCount];\n                 if(reloadCount < 2)\n                 {\n                     [wself setReloadCount:reloadCount+1];\n                     [wself reloadImageURL];\n                     \n                     return ;\n                 }\n                 \n                 [wself lk_hideProgressView];\n                 wself.status = LKImageViewStatusFail;\n                 [wself lk_showImageWithName:@\"lk_noimage.png\"];\n             }\n             else\n             {\n                 wself.status = LKImageViewStatusNone;\n                 [wself lk_hideProgressView];\n             }\n         }\n     }];\n}\n\n-(void)lk_showImageWithName:(NSString*)name\n{\n    UIImage *image = [UIImage imageNamed:name];\n    if (self.bounds.size.width < image.size.width || self.bounds.size.height < image.size.height)\n    {\n        self.contentMode = UIViewContentModeScaleAspectFit;\n    }\n    else\n    {\n        self.contentMode = UIViewContentModeCenter;\n    }\n    self.image = image;\n    [self setNeedsDisplay];\n}\n\n-(void)lk_hideProgressView\n{\n    LK_THProgressView *pv = [self lk_progressView:NO];\n    pv.hidden = YES;\n    pv.progress = 0;\n    [pv removeFromSuperview];\n}\n\n- (void)setOnTouchTapBlock:(void (^)(UIImageView *))onTouchTapBlock\n{\n    [self lk_loadTapEvent];\n    objc_setAssociatedObject(self, &imageTapEventKey, onTouchTapBlock, OBJC_ASSOCIATION_COPY_NONATOMIC);\n}\n\n- (void (^)(UIImageView *))onTouchTapBlock\n{\n    return objc_getAssociatedObject(self, &imageTapEventKey);\n}\n\n- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event\n{\n    if(self.imageURL == nil && [self lk_hasLoadedTapEvent])\n    {\n        return NO;\n    }\n    LKImageViewStatus status = self.status;\n    if (status == LKImageViewStatusClickDownload || status == LKImageViewStatusFail)\n    {\n        return [super pointInside:point withEvent:event];\n    }\n    \n    if (self.imageURL && self.onTouchTapBlock == nil)\n    {\n        return NO;\n    }\n    return [super pointInside:point withEvent:event];\n}\n\n- (void)lk_handleTapEvent:(UITapGestureRecognizer *)sender\n{\n    LKImageViewStatus status = self.status;\n    if(status == LKImageViewStatusClickDownload || status == LKImageViewStatusFail)\n    {\n        if([lk_imageDownloadDelegate respondsToSelector:@selector(lk_newURLWithClickURL:)])\n        {\n            NSURL* oriURL = self.imageURL;\n            NSURL* newURL = [lk_imageDownloadDelegate lk_newURLWithClickURL:oriURL];\n            if ([oriURL isEqual:newURL] == NO)\n            {\n                objc_setAssociatedObject(self, &imageURLKey, newURL, OBJC_ASSOCIATION_COPY_NONATOMIC);\n            }\n        }\n        [self reloadImageURL];\n    }\n    else\n    {\n        if (self.onTouchTapBlock)\n        {\n            self.onTouchTapBlock(self);\n        }\n    }\n}\n@end"
  },
  {
    "path": "Pods/Target Support Files/AFNetworking/AFNetworking-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_AFNetworking : NSObject\n@end\n@implementation PodsDummy_AFNetworking\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/AFNetworking/AFNetworking-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n#ifndef TARGET_OS_IOS\n  #define TARGET_OS_IOS TARGET_OS_IPHONE\n#endif\n\n#ifndef TARGET_OS_WATCH\n  #define TARGET_OS_WATCH 0\n#endif\n\n#ifndef TARGET_OS_TV\n  #define TARGET_OS_TV 0\n#endif\n"
  },
  {
    "path": "Pods/Target Support Files/AFNetworking/AFNetworking.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = \"${PODS_ROOT}/Headers/Private\" \"${PODS_ROOT}/Headers/Private/AFNetworking\" \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = -framework \"CoreGraphics\" -framework \"MobileCoreServices\" -framework \"Security\" -framework \"SystemConfiguration\"\nPODS_ROOT = ${SRCROOT}\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\n"
  },
  {
    "path": "Pods/Target Support Files/MBProgressHUD/MBProgressHUD-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_MBProgressHUD : NSObject\n@end\n@implementation PodsDummy_MBProgressHUD\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/MBProgressHUD/MBProgressHUD-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n"
  },
  {
    "path": "Pods/Target Support Files/MBProgressHUD/MBProgressHUD.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = \"${PODS_ROOT}/Headers/Private\" \"${PODS_ROOT}/Headers/Private/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = -framework \"CoreGraphics\"\nPODS_ROOT = ${SRCROOT}\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\n"
  },
  {
    "path": "Pods/Target Support Files/MJExtension/MJExtension-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_MJExtension : NSObject\n@end\n@implementation PodsDummy_MJExtension\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/MJExtension/MJExtension-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n"
  },
  {
    "path": "Pods/Target Support Files/MJExtension/MJExtension.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = \"${PODS_ROOT}/Headers/Private\" \"${PODS_ROOT}/Headers/Private/MJExtension\" \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nPODS_ROOT = ${SRCROOT}\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\n"
  },
  {
    "path": "Pods/Target Support Files/MJRefresh/MJRefresh-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_MJRefresh : NSObject\n@end\n@implementation PodsDummy_MJRefresh\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/MJRefresh/MJRefresh-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n"
  },
  {
    "path": "Pods/Target Support Files/MJRefresh/MJRefresh.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = \"${PODS_ROOT}/Headers/Private\" \"${PODS_ROOT}/Headers/Private/MJRefresh\" \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nPODS_ROOT = ${SRCROOT}\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall-acknowledgements.markdown",
    "content": "# Acknowledgements\nThis application makes use of the following third party libraries:\n\n## AFNetworking\n\nCopyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n## MBProgressHUD\n\nCopyright (c) 2009-2015 Matej Bukovinski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n## MJExtension\n\nCopyright (c) 2013-2015 MJExtension (https://github.com/CoderMJLee/MJExtension)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n## MJRefresh\n\nCopyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n## SDCycleScrollView\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 GSD_iOS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n\n## SDWebImage\n\nCopyright (c) 2009 Olivier Poitrey <rs@dailymotion.com>\n \nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n \nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n \nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n\n## SDWebImage-Category\n\nCopyright (c) 2012 Jianghuai Li (https://github.com/li6185377)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\nGenerated by CocoaPods - https://cocoapods.org\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall-acknowledgements.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreferenceSpecifiers</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>This application makes use of the following third party libraries:</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>Acknowledgements</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Copyright (c) 2011&#8211;2015 Alamofire Software Foundation (http://alamofire.org/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>AFNetworking</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Copyright (c) 2009-2015 Matej Bukovinski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>MBProgressHUD</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Copyright (c) 2013-2015 MJExtension (https://github.com/CoderMJLee/MJExtension)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>MJExtension</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>MJRefresh</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>The MIT License (MIT)\n\nCopyright (c) 2015 GSD_iOS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>SDCycleScrollView</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Copyright (c) 2009 Olivier Poitrey &lt;rs@dailymotion.com&gt;\n \nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n \nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n \nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>SDWebImage</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Copyright (c) 2012 Jianghuai Li (https://github.com/li6185377)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>SDWebImage-Category</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Generated by CocoaPods - https://cocoapods.org</string>\n\t\t\t<key>Title</key>\n\t\t\t<string></string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t</array>\n\t<key>StringsTable</key>\n\t<string>Acknowledgements</string>\n\t<key>Title</key>\n\t<string>Acknowledgements</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_Pods_SYStickHeaderWaterFall : NSObject\n@end\n@implementation PodsDummy_Pods_SYStickHeaderWaterFall\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall-frameworks.sh",
    "content": "#!/bin/sh\nset -e\n\necho \"mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\nSWIFT_STDLIB_PATH=\"${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}\"\n\ninstall_framework()\n{\n  if [ -r \"${BUILT_PRODUCTS_DIR}/$1\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$1\"\n  elif [ -r \"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\"\n  elif [ -r \"$1\" ]; then\n    local source=\"$1\"\n  fi\n\n  local destination=\"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\n  if [ -L \"${source}\" ]; then\n      echo \"Symlinked...\"\n      source=\"$(readlink \"${source}\")\"\n  fi\n\n  # use filter instead of exclude so missing patterns dont' throw errors\n  echo \"rsync -av --filter \\\"- CVS/\\\" --filter \\\"- .svn/\\\" --filter \\\"- .git/\\\" --filter \\\"- .hg/\\\" --filter \\\"- Headers\\\" --filter \\\"- PrivateHeaders\\\" --filter \\\"- Modules\\\" \\\"${source}\\\" \\\"${destination}\\\"\"\n  rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"\n\n  local basename\n  basename=\"$(basename -s .framework \"$1\")\"\n  binary=\"${destination}/${basename}.framework/${basename}\"\n  if ! [ -r \"$binary\" ]; then\n    binary=\"${destination}/${basename}\"\n  fi\n\n  # Strip invalid architectures so \"fat\" simulator / device frameworks work on device\n  if [[ \"$(file \"$binary\")\" == *\"dynamically linked shared library\"* ]]; then\n    strip_invalid_archs \"$binary\"\n  fi\n\n  # Resign the code if required by the build settings to avoid unstable apps\n  code_sign_if_enabled \"${destination}/$(basename \"$1\")\"\n\n  # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.\n  if [ \"${XCODE_VERSION_MAJOR}\" -lt 7 ]; then\n    local swift_runtime_libs\n    swift_runtime_libs=$(xcrun otool -LX \"$binary\" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u  && exit ${PIPESTATUS[0]})\n    for lib in $swift_runtime_libs; do\n      echo \"rsync -auv \\\"${SWIFT_STDLIB_PATH}/${lib}\\\" \\\"${destination}\\\"\"\n      rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"\n      code_sign_if_enabled \"${destination}/${lib}\"\n    done\n  fi\n}\n\n# Signs a framework with the provided identity\ncode_sign_if_enabled() {\n  if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n    # Use the current code_sign_identitiy\n    echo \"Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}\"\n    echo \"/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \\\"$1\\\"\"\n    /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"\n  fi\n}\n\n# Strip invalid architectures\nstrip_invalid_archs() {\n  binary=\"$1\"\n  # Get architectures for current file\n  archs=\"$(lipo -info \"$binary\" | rev | cut -d ':' -f1 | rev)\"\n  stripped=\"\"\n  for arch in $archs; do\n    if ! [[ \"${VALID_ARCHS}\" == *\"$arch\"* ]]; then\n      # Strip non-valid architectures in-place\n      lipo -remove \"$arch\" -output \"$binary\" \"$binary\" || exit 1\n      stripped=\"$stripped $arch\"\n    fi\n  done\n  if [[ \"$stripped\" ]]; then\n    echo \"Stripped $binary of architectures:$stripped\"\n  fi\n}\n\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall-resources.sh",
    "content": "#!/bin/sh\nset -e\n\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n\nRESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt\n> \"$RESOURCES_TO_COPY\"\n\nXCASSET_FILES=()\n\nrealpath() {\n  DIRECTORY=\"$(cd \"${1%/*}\" && pwd)\"\n  FILENAME=\"${1##*/}\"\n  echo \"$DIRECTORY/$FILENAME\"\n}\n\ninstall_resource()\n{\n  if [[ \"$1\" = /* ]] ; then\n    RESOURCE_PATH=\"$1\"\n  else\n    RESOURCE_PATH=\"${PODS_ROOT}/$1\"\n  fi\n  if [[ ! -e \"$RESOURCE_PATH\" ]] ; then\n    cat << EOM\nerror: Resource \"$RESOURCE_PATH\" not found. Run 'pod install' to update the copy resources script.\nEOM\n    exit 1\n  fi\n  case $RESOURCE_PATH in\n    *.storyboard)\n      echo \"ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT}\"\n      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .storyboard`.storyboardc\" \"$RESOURCE_PATH\" --sdk \"${SDKROOT}\"\n      ;;\n    *.xib)\n      echo \"ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}\"\n      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .xib`.nib\" \"$RESOURCE_PATH\" --sdk \"${SDKROOT}\"\n      ;;\n    *.framework)\n      echo \"mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      mkdir -p \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      echo \"rsync -av $RESOURCE_PATH ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      rsync -av \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      ;;\n    *.xcdatamodel)\n      echo \"xcrun momc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\"`.mom\\\"\"\n      xcrun momc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodel`.mom\"\n      ;;\n    *.xcdatamodeld)\n      echo \"xcrun momc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodeld`.momd\\\"\"\n      xcrun momc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodeld`.momd\"\n      ;;\n    *.xcmappingmodel)\n      echo \"xcrun mapc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcmappingmodel`.cdm\\\"\"\n      xcrun mapc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcmappingmodel`.cdm\"\n      ;;\n    *.xcassets)\n      ABSOLUTE_XCASSET_FILE=$(realpath \"$RESOURCE_PATH\")\n      XCASSET_FILES+=(\"$ABSOLUTE_XCASSET_FILE\")\n      ;;\n    *)\n      echo \"$RESOURCE_PATH\"\n      echo \"$RESOURCE_PATH\" >> \"$RESOURCES_TO_COPY\"\n      ;;\n  esac\n}\nif [[ \"$CONFIGURATION\" == \"Debug\" ]]; then\n  install_resource \"MJRefresh/MJRefresh/MJRefresh.bundle\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_click_image.png\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_click_image@2x.png\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_click_image@3x.png\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_noimage.png\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_noimage@2x.png\"\nfi\nif [[ \"$CONFIGURATION\" == \"Release\" ]]; then\n  install_resource \"MJRefresh/MJRefresh/MJRefresh.bundle\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_click_image.png\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_click_image@2x.png\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_click_image@3x.png\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_noimage.png\"\n  install_resource \"SDWebImage-Category/SDWebImage-Category/Resource/lk_noimage@2x.png\"\nfi\n\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nrsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nif [[ \"${ACTION}\" == \"install\" ]] && [[ \"${SKIP_INSTALL}\" == \"NO\" ]]; then\n  mkdir -p \"${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n  rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nfi\nrm -f \"$RESOURCES_TO_COPY\"\n\nif [[ -n \"${WRAPPER_EXTENSION}\" ]] && [ \"`xcrun --find actool`\" ] && [ -n \"$XCASSET_FILES\" ]\nthen\n  case \"${TARGETED_DEVICE_FAMILY}\" in\n    1,2)\n      TARGET_DEVICE_ARGS=\"--target-device ipad --target-device iphone\"\n      ;;\n    1)\n      TARGET_DEVICE_ARGS=\"--target-device iphone\"\n      ;;\n    2)\n      TARGET_DEVICE_ARGS=\"--target-device ipad\"\n      ;;\n    *)\n      TARGET_DEVICE_ARGS=\"--target-device mac\"\n      ;;\n  esac\n\n  # Find all other xcassets (this unfortunately includes those of path pods and other targets).\n  OTHER_XCASSETS=$(find \"$PWD\" -iname \"*.xcassets\" -type d)\n  while read line; do\n    if [[ $line != \"`realpath $PODS_ROOT`*\" ]]; then\n      XCASSET_FILES+=(\"$line\")\n    fi\n  done <<<\"$OTHER_XCASSETS\"\n\n  printf \"%s\\0\" \"${XCASSET_FILES[@]}\" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform \"${PLATFORM_NAME}\" --minimum-deployment-target \"${!DEPLOYMENT_TARGET_SETTING_NAME}\" ${TARGET_DEVICE_ARGS} --compress-pngs --compile \"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nfi\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall.debug.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_ROOT}/Headers/Public\" -isystem \"${PODS_ROOT}/Headers/Public/AFNetworking\" -isystem \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" -isystem \"${PODS_ROOT}/Headers/Public/MJExtension\" -isystem \"${PODS_ROOT}/Headers/Public/MJRefresh\" -isystem \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = $(inherited) -ObjC -l\"AFNetworking\" -l\"MBProgressHUD\" -l\"MJExtension\" -l\"MJRefresh\" -l\"SDCycleScrollView\" -l\"SDWebImage\" -l\"SDWebImage-Category\" -framework \"CoreGraphics\" -framework \"ImageIO\" -framework \"MobileCoreServices\" -framework \"Security\" -framework \"SystemConfiguration\"\nPODS_ROOT = ${SRCROOT}/Pods\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall.release.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_ROOT}/Headers/Public\" -isystem \"${PODS_ROOT}/Headers/Public/AFNetworking\" -isystem \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" -isystem \"${PODS_ROOT}/Headers/Public/MJExtension\" -isystem \"${PODS_ROOT}/Headers/Public/MJRefresh\" -isystem \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = $(inherited) -ObjC -l\"AFNetworking\" -l\"MBProgressHUD\" -l\"MJExtension\" -l\"MJRefresh\" -l\"SDCycleScrollView\" -l\"SDWebImage\" -l\"SDWebImage-Category\" -framework \"CoreGraphics\" -framework \"ImageIO\" -framework \"MobileCoreServices\" -framework \"Security\" -framework \"SystemConfiguration\"\nPODS_ROOT = ${SRCROOT}/Pods\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests-acknowledgements.markdown",
    "content": "# Acknowledgements\nThis application makes use of the following third party libraries:\nGenerated by CocoaPods - https://cocoapods.org\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests-acknowledgements.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreferenceSpecifiers</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>This application makes use of the following third party libraries:</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>Acknowledgements</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Generated by CocoaPods - https://cocoapods.org</string>\n\t\t\t<key>Title</key>\n\t\t\t<string></string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t</array>\n\t<key>StringsTable</key>\n\t<string>Acknowledgements</string>\n\t<key>Title</key>\n\t<string>Acknowledgements</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_Pods_SYStickHeaderWaterFallTests : NSObject\n@end\n@implementation PodsDummy_Pods_SYStickHeaderWaterFallTests\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests-frameworks.sh",
    "content": "#!/bin/sh\nset -e\n\necho \"mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\nSWIFT_STDLIB_PATH=\"${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}\"\n\ninstall_framework()\n{\n  if [ -r \"${BUILT_PRODUCTS_DIR}/$1\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$1\"\n  elif [ -r \"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\"\n  elif [ -r \"$1\" ]; then\n    local source=\"$1\"\n  fi\n\n  local destination=\"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\n  if [ -L \"${source}\" ]; then\n      echo \"Symlinked...\"\n      source=\"$(readlink \"${source}\")\"\n  fi\n\n  # use filter instead of exclude so missing patterns dont' throw errors\n  echo \"rsync -av --filter \\\"- CVS/\\\" --filter \\\"- .svn/\\\" --filter \\\"- .git/\\\" --filter \\\"- .hg/\\\" --filter \\\"- Headers\\\" --filter \\\"- PrivateHeaders\\\" --filter \\\"- Modules\\\" \\\"${source}\\\" \\\"${destination}\\\"\"\n  rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"\n\n  local basename\n  basename=\"$(basename -s .framework \"$1\")\"\n  binary=\"${destination}/${basename}.framework/${basename}\"\n  if ! [ -r \"$binary\" ]; then\n    binary=\"${destination}/${basename}\"\n  fi\n\n  # Strip invalid architectures so \"fat\" simulator / device frameworks work on device\n  if [[ \"$(file \"$binary\")\" == *\"dynamically linked shared library\"* ]]; then\n    strip_invalid_archs \"$binary\"\n  fi\n\n  # Resign the code if required by the build settings to avoid unstable apps\n  code_sign_if_enabled \"${destination}/$(basename \"$1\")\"\n\n  # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.\n  if [ \"${XCODE_VERSION_MAJOR}\" -lt 7 ]; then\n    local swift_runtime_libs\n    swift_runtime_libs=$(xcrun otool -LX \"$binary\" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u  && exit ${PIPESTATUS[0]})\n    for lib in $swift_runtime_libs; do\n      echo \"rsync -auv \\\"${SWIFT_STDLIB_PATH}/${lib}\\\" \\\"${destination}\\\"\"\n      rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"\n      code_sign_if_enabled \"${destination}/${lib}\"\n    done\n  fi\n}\n\n# Signs a framework with the provided identity\ncode_sign_if_enabled() {\n  if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n    # Use the current code_sign_identitiy\n    echo \"Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}\"\n    echo \"/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \\\"$1\\\"\"\n    /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"\n  fi\n}\n\n# Strip invalid architectures\nstrip_invalid_archs() {\n  binary=\"$1\"\n  # Get architectures for current file\n  archs=\"$(lipo -info \"$binary\" | rev | cut -d ':' -f1 | rev)\"\n  stripped=\"\"\n  for arch in $archs; do\n    if ! [[ \"${VALID_ARCHS}\" == *\"$arch\"* ]]; then\n      # Strip non-valid architectures in-place\n      lipo -remove \"$arch\" -output \"$binary\" \"$binary\" || exit 1\n      stripped=\"$stripped $arch\"\n    fi\n  done\n  if [[ \"$stripped\" ]]; then\n    echo \"Stripped $binary of architectures:$stripped\"\n  fi\n}\n\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests-resources.sh",
    "content": "#!/bin/sh\nset -e\n\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n\nRESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt\n> \"$RESOURCES_TO_COPY\"\n\nXCASSET_FILES=()\n\nrealpath() {\n  DIRECTORY=\"$(cd \"${1%/*}\" && pwd)\"\n  FILENAME=\"${1##*/}\"\n  echo \"$DIRECTORY/$FILENAME\"\n}\n\ninstall_resource()\n{\n  if [[ \"$1\" = /* ]] ; then\n    RESOURCE_PATH=\"$1\"\n  else\n    RESOURCE_PATH=\"${PODS_ROOT}/$1\"\n  fi\n  if [[ ! -e \"$RESOURCE_PATH\" ]] ; then\n    cat << EOM\nerror: Resource \"$RESOURCE_PATH\" not found. Run 'pod install' to update the copy resources script.\nEOM\n    exit 1\n  fi\n  case $RESOURCE_PATH in\n    *.storyboard)\n      echo \"ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT}\"\n      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .storyboard`.storyboardc\" \"$RESOURCE_PATH\" --sdk \"${SDKROOT}\"\n      ;;\n    *.xib)\n      echo \"ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}\"\n      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .xib`.nib\" \"$RESOURCE_PATH\" --sdk \"${SDKROOT}\"\n      ;;\n    *.framework)\n      echo \"mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      mkdir -p \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      echo \"rsync -av $RESOURCE_PATH ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      rsync -av \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      ;;\n    *.xcdatamodel)\n      echo \"xcrun momc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\"`.mom\\\"\"\n      xcrun momc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodel`.mom\"\n      ;;\n    *.xcdatamodeld)\n      echo \"xcrun momc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodeld`.momd\\\"\"\n      xcrun momc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodeld`.momd\"\n      ;;\n    *.xcmappingmodel)\n      echo \"xcrun mapc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcmappingmodel`.cdm\\\"\"\n      xcrun mapc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcmappingmodel`.cdm\"\n      ;;\n    *.xcassets)\n      ABSOLUTE_XCASSET_FILE=$(realpath \"$RESOURCE_PATH\")\n      XCASSET_FILES+=(\"$ABSOLUTE_XCASSET_FILE\")\n      ;;\n    *)\n      echo \"$RESOURCE_PATH\"\n      echo \"$RESOURCE_PATH\" >> \"$RESOURCES_TO_COPY\"\n      ;;\n  esac\n}\n\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nrsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nif [[ \"${ACTION}\" == \"install\" ]] && [[ \"${SKIP_INSTALL}\" == \"NO\" ]]; then\n  mkdir -p \"${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n  rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nfi\nrm -f \"$RESOURCES_TO_COPY\"\n\nif [[ -n \"${WRAPPER_EXTENSION}\" ]] && [ \"`xcrun --find actool`\" ] && [ -n \"$XCASSET_FILES\" ]\nthen\n  case \"${TARGETED_DEVICE_FAMILY}\" in\n    1,2)\n      TARGET_DEVICE_ARGS=\"--target-device ipad --target-device iphone\"\n      ;;\n    1)\n      TARGET_DEVICE_ARGS=\"--target-device iphone\"\n      ;;\n    2)\n      TARGET_DEVICE_ARGS=\"--target-device ipad\"\n      ;;\n    *)\n      TARGET_DEVICE_ARGS=\"--target-device mac\"\n      ;;\n  esac\n\n  # Find all other xcassets (this unfortunately includes those of path pods and other targets).\n  OTHER_XCASSETS=$(find \"$PWD\" -iname \"*.xcassets\" -type d)\n  while read line; do\n    if [[ $line != \"`realpath $PODS_ROOT`*\" ]]; then\n      XCASSET_FILES+=(\"$line\")\n    fi\n  done <<<\"$OTHER_XCASSETS\"\n\n  printf \"%s\\0\" \"${XCASSET_FILES[@]}\" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform \"${PLATFORM_NAME}\" --minimum-deployment-target \"${!DEPLOYMENT_TARGET_SETTING_NAME}\" ${TARGET_DEVICE_ARGS} --compress-pngs --compile \"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nfi\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests.debug.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_ROOT}/Headers/Public\" -isystem \"${PODS_ROOT}/Headers/Public/AFNetworking\" -isystem \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" -isystem \"${PODS_ROOT}/Headers/Public/MJExtension\" -isystem \"${PODS_ROOT}/Headers/Public/MJRefresh\" -isystem \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = $(inherited) -ObjC\nPODS_ROOT = ${SRCROOT}/Pods\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests.release.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_ROOT}/Headers/Public\" -isystem \"${PODS_ROOT}/Headers/Public/AFNetworking\" -isystem \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" -isystem \"${PODS_ROOT}/Headers/Public/MJExtension\" -isystem \"${PODS_ROOT}/Headers/Public/MJRefresh\" -isystem \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = $(inherited) -ObjC\nPODS_ROOT = ${SRCROOT}/Pods\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests-acknowledgements.markdown",
    "content": "# Acknowledgements\nThis application makes use of the following third party libraries:\nGenerated by CocoaPods - https://cocoapods.org\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests-acknowledgements.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreferenceSpecifiers</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>This application makes use of the following third party libraries:</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>Acknowledgements</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Generated by CocoaPods - https://cocoapods.org</string>\n\t\t\t<key>Title</key>\n\t\t\t<string></string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t</array>\n\t<key>StringsTable</key>\n\t<string>Acknowledgements</string>\n\t<key>Title</key>\n\t<string>Acknowledgements</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_Pods_SYStickHeaderWaterFallUITests : NSObject\n@end\n@implementation PodsDummy_Pods_SYStickHeaderWaterFallUITests\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests-frameworks.sh",
    "content": "#!/bin/sh\nset -e\n\necho \"mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\nSWIFT_STDLIB_PATH=\"${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}\"\n\ninstall_framework()\n{\n  if [ -r \"${BUILT_PRODUCTS_DIR}/$1\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$1\"\n  elif [ -r \"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\"\n  elif [ -r \"$1\" ]; then\n    local source=\"$1\"\n  fi\n\n  local destination=\"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\n  if [ -L \"${source}\" ]; then\n      echo \"Symlinked...\"\n      source=\"$(readlink \"${source}\")\"\n  fi\n\n  # use filter instead of exclude so missing patterns dont' throw errors\n  echo \"rsync -av --filter \\\"- CVS/\\\" --filter \\\"- .svn/\\\" --filter \\\"- .git/\\\" --filter \\\"- .hg/\\\" --filter \\\"- Headers\\\" --filter \\\"- PrivateHeaders\\\" --filter \\\"- Modules\\\" \\\"${source}\\\" \\\"${destination}\\\"\"\n  rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"\n\n  local basename\n  basename=\"$(basename -s .framework \"$1\")\"\n  binary=\"${destination}/${basename}.framework/${basename}\"\n  if ! [ -r \"$binary\" ]; then\n    binary=\"${destination}/${basename}\"\n  fi\n\n  # Strip invalid architectures so \"fat\" simulator / device frameworks work on device\n  if [[ \"$(file \"$binary\")\" == *\"dynamically linked shared library\"* ]]; then\n    strip_invalid_archs \"$binary\"\n  fi\n\n  # Resign the code if required by the build settings to avoid unstable apps\n  code_sign_if_enabled \"${destination}/$(basename \"$1\")\"\n\n  # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.\n  if [ \"${XCODE_VERSION_MAJOR}\" -lt 7 ]; then\n    local swift_runtime_libs\n    swift_runtime_libs=$(xcrun otool -LX \"$binary\" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u  && exit ${PIPESTATUS[0]})\n    for lib in $swift_runtime_libs; do\n      echo \"rsync -auv \\\"${SWIFT_STDLIB_PATH}/${lib}\\\" \\\"${destination}\\\"\"\n      rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"\n      code_sign_if_enabled \"${destination}/${lib}\"\n    done\n  fi\n}\n\n# Signs a framework with the provided identity\ncode_sign_if_enabled() {\n  if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n    # Use the current code_sign_identitiy\n    echo \"Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}\"\n    echo \"/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \\\"$1\\\"\"\n    /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"\n  fi\n}\n\n# Strip invalid architectures\nstrip_invalid_archs() {\n  binary=\"$1\"\n  # Get architectures for current file\n  archs=\"$(lipo -info \"$binary\" | rev | cut -d ':' -f1 | rev)\"\n  stripped=\"\"\n  for arch in $archs; do\n    if ! [[ \"${VALID_ARCHS}\" == *\"$arch\"* ]]; then\n      # Strip non-valid architectures in-place\n      lipo -remove \"$arch\" -output \"$binary\" \"$binary\" || exit 1\n      stripped=\"$stripped $arch\"\n    fi\n  done\n  if [[ \"$stripped\" ]]; then\n    echo \"Stripped $binary of architectures:$stripped\"\n  fi\n}\n\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests-resources.sh",
    "content": "#!/bin/sh\nset -e\n\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n\nRESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt\n> \"$RESOURCES_TO_COPY\"\n\nXCASSET_FILES=()\n\nrealpath() {\n  DIRECTORY=\"$(cd \"${1%/*}\" && pwd)\"\n  FILENAME=\"${1##*/}\"\n  echo \"$DIRECTORY/$FILENAME\"\n}\n\ninstall_resource()\n{\n  if [[ \"$1\" = /* ]] ; then\n    RESOURCE_PATH=\"$1\"\n  else\n    RESOURCE_PATH=\"${PODS_ROOT}/$1\"\n  fi\n  if [[ ! -e \"$RESOURCE_PATH\" ]] ; then\n    cat << EOM\nerror: Resource \"$RESOURCE_PATH\" not found. Run 'pod install' to update the copy resources script.\nEOM\n    exit 1\n  fi\n  case $RESOURCE_PATH in\n    *.storyboard)\n      echo \"ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT}\"\n      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .storyboard`.storyboardc\" \"$RESOURCE_PATH\" --sdk \"${SDKROOT}\"\n      ;;\n    *.xib)\n      echo \"ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}\"\n      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\\"$RESOURCE_PATH\\\" .xib`.nib\" \"$RESOURCE_PATH\" --sdk \"${SDKROOT}\"\n      ;;\n    *.framework)\n      echo \"mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      mkdir -p \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      echo \"rsync -av $RESOURCE_PATH ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      rsync -av \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n      ;;\n    *.xcdatamodel)\n      echo \"xcrun momc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\"`.mom\\\"\"\n      xcrun momc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodel`.mom\"\n      ;;\n    *.xcdatamodeld)\n      echo \"xcrun momc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodeld`.momd\\\"\"\n      xcrun momc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcdatamodeld`.momd\"\n      ;;\n    *.xcmappingmodel)\n      echo \"xcrun mapc \\\"$RESOURCE_PATH\\\" \\\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcmappingmodel`.cdm\\\"\"\n      xcrun mapc \"$RESOURCE_PATH\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xcmappingmodel`.cdm\"\n      ;;\n    *.xcassets)\n      ABSOLUTE_XCASSET_FILE=$(realpath \"$RESOURCE_PATH\")\n      XCASSET_FILES+=(\"$ABSOLUTE_XCASSET_FILE\")\n      ;;\n    *)\n      echo \"$RESOURCE_PATH\"\n      echo \"$RESOURCE_PATH\" >> \"$RESOURCES_TO_COPY\"\n      ;;\n  esac\n}\n\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nrsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nif [[ \"${ACTION}\" == \"install\" ]] && [[ \"${SKIP_INSTALL}\" == \"NO\" ]]; then\n  mkdir -p \"${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n  rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nfi\nrm -f \"$RESOURCES_TO_COPY\"\n\nif [[ -n \"${WRAPPER_EXTENSION}\" ]] && [ \"`xcrun --find actool`\" ] && [ -n \"$XCASSET_FILES\" ]\nthen\n  case \"${TARGETED_DEVICE_FAMILY}\" in\n    1,2)\n      TARGET_DEVICE_ARGS=\"--target-device ipad --target-device iphone\"\n      ;;\n    1)\n      TARGET_DEVICE_ARGS=\"--target-device iphone\"\n      ;;\n    2)\n      TARGET_DEVICE_ARGS=\"--target-device ipad\"\n      ;;\n    *)\n      TARGET_DEVICE_ARGS=\"--target-device mac\"\n      ;;\n  esac\n\n  # Find all other xcassets (this unfortunately includes those of path pods and other targets).\n  OTHER_XCASSETS=$(find \"$PWD\" -iname \"*.xcassets\" -type d)\n  while read line; do\n    if [[ $line != \"`realpath $PODS_ROOT`*\" ]]; then\n      XCASSET_FILES+=(\"$line\")\n    fi\n  done <<<\"$OTHER_XCASSETS\"\n\n  printf \"%s\\0\" \"${XCASSET_FILES[@]}\" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform \"${PLATFORM_NAME}\" --minimum-deployment-target \"${!DEPLOYMENT_TARGET_SETTING_NAME}\" ${TARGET_DEVICE_ARGS} --compress-pngs --compile \"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\nfi\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests.debug.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_ROOT}/Headers/Public\" -isystem \"${PODS_ROOT}/Headers/Public/AFNetworking\" -isystem \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" -isystem \"${PODS_ROOT}/Headers/Public/MJExtension\" -isystem \"${PODS_ROOT}/Headers/Public/MJRefresh\" -isystem \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = $(inherited) -ObjC\nPODS_ROOT = ${SRCROOT}/Pods\n"
  },
  {
    "path": "Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests.release.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_ROOT}/Headers/Public\" -isystem \"${PODS_ROOT}/Headers/Public/AFNetworking\" -isystem \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" -isystem \"${PODS_ROOT}/Headers/Public/MJExtension\" -isystem \"${PODS_ROOT}/Headers/Public/MJRefresh\" -isystem \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage\" -isystem \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = $(inherited) -ObjC\nPODS_ROOT = ${SRCROOT}/Pods\n"
  },
  {
    "path": "Pods/Target Support Files/SDCycleScrollView/SDCycleScrollView-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_SDCycleScrollView : NSObject\n@end\n@implementation PodsDummy_SDCycleScrollView\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/SDCycleScrollView/SDCycleScrollView-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n"
  },
  {
    "path": "Pods/Target Support Files/SDCycleScrollView/SDCycleScrollView.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = \"${PODS_ROOT}/Headers/Private\" \"${PODS_ROOT}/Headers/Private/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nPODS_ROOT = ${SRCROOT}\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\n"
  },
  {
    "path": "Pods/Target Support Files/SDWebImage/SDWebImage-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_SDWebImage : NSObject\n@end\n@implementation PodsDummy_SDWebImage\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/SDWebImage/SDWebImage-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n"
  },
  {
    "path": "Pods/Target Support Files/SDWebImage/SDWebImage.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = \"${PODS_ROOT}/Headers/Private\" \"${PODS_ROOT}/Headers/Private/SDWebImage\" \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nOTHER_LDFLAGS = -framework \"ImageIO\"\nPODS_ROOT = ${SRCROOT}\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\n"
  },
  {
    "path": "Pods/Target Support Files/SDWebImage-Category/SDWebImage-Category-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_SDWebImage_Category : NSObject\n@end\n@implementation PodsDummy_SDWebImage_Category\n@end\n"
  },
  {
    "path": "Pods/Target Support Files/SDWebImage-Category/SDWebImage-Category-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n"
  },
  {
    "path": "Pods/Target Support Files/SDWebImage-Category/SDWebImage-Category.xcconfig",
    "content": "GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = \"${PODS_ROOT}/Headers/Private\" \"${PODS_ROOT}/Headers/Private/SDWebImage-Category\" \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AFNetworking\" \"${PODS_ROOT}/Headers/Public/MBProgressHUD\" \"${PODS_ROOT}/Headers/Public/MJExtension\" \"${PODS_ROOT}/Headers/Public/MJRefresh\" \"${PODS_ROOT}/Headers/Public/SDCycleScrollView\" \"${PODS_ROOT}/Headers/Public/SDWebImage\" \"${PODS_ROOT}/Headers/Public/SDWebImage-Category\"\nPODS_ROOT = ${SRCROOT}\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\n"
  },
  {
    "path": "README.md",
    "content": "SYStickHeaderWaterFall 中文介绍\n==============\n\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/zhangsuya/SYStickHeaderWaterFall) [![pod](https://img.shields.io/badge/pod-0.0.7-yellow.svg)](https://github.com/zhangsuya/SYStickHeaderWaterFall) [![platform](https://img.shields.io/badge/platform-iOS-ff69b4.svg)](https://github.com/zhangsuya/SYStickHeaderWaterFall) [![aboutme](https://img.shields.io/badge/about%20me-zhangsuya-blue.svg)](http://www.jianshu.com/u/f2503bba4cfa)\n\n\nMore flexible support various types of waterfalls flow .（更加灵活支持各种类型的瀑布流结构。）\n\n![image](https://github.com/zhangsuya/SYStickHeaderWaterFall/blob/master/SYStickHeaderWaterFall/2.gif)\n\n以后封装任务：\n1.装饰视图的增加。\n\n\n安装\n==============\n\n### CocoaPods\n\n1. 将 cocoapods 更新至最新版本.\n2. 在 Podfile 中添加 `pod \"SYStickHeaderWaterFall\"`。\n3. 执行 `pod install` 或 `pod update`。\n\n(usage) 用法\n==============\n### (init and set delegate) 初始化并设置delegate：\n\n    SYStickHeaderWaterFallLayout *cvLayout = [[SYStickHeaderWaterFallLayout alloc] init];\n\n    cvLayout.delegate = self;\n\n\n### (set property) 设置属性：\n\n //是否设置sectionHeader停留,默认YES\n \n    cvLayout.isStickyHeader = YES;\n    \n//是否设置Footer停留,默认NO\n\n    cvLayout.isStickyFooter = NO;\n    \n//section停留的位置是否包括原来设置的top，默认NO\n\n    cvLayout.isTopForHeader = YES;\n    \n//当你用UINavigationController和UITabbarViewController并设置一些属性时，collectionview的展示视图的坐标y会变得很奇怪，那就在此修正,默认64\n\n    cvLayout.fixTop = 64.0f;\n  \n### (implement delegate method) 实现代理方法：\n\n// 返回所在section的每个item的width（一个section只有一个width）\n\n    - (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    widthForItemInSection:( NSInteger )section;\n\n// 返回所在indexPath的每个item的height（每个item有一个height，要不然怎么是瀑布流😄）\n\n    - (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    heightForItemAtIndexPath:(nonnull NSIndexPath *)indexPath;\n\n@optional\n\n// 返回所在indexPath的header的height\n\n    - (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    heightForHeaderAtIndexPath:(nonnull NSIndexPath *)indexPath;\n\n\n// 返回所在indexPath的footer的height\n\n    - (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    heightForFooterAtIndexPath:(nonnull NSIndexPath *)indexPath;\n\n\n//  返回所在section与上一个section的间距(表达的可能不够准确，但是你们都懂的)\n\n    - (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    topInSection:(NSInteger )section;\n\n//  返回所在section与下一个section的间距(表达的可能不够准确，但是你们都懂的)\n\n    - (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n            bottomInSection:( NSInteger)section;\n\n// 返回所在section的header停留时与顶部的距离（如果设置isTopForHeader ＝ yes ，则距离会叠加）\n\n    - (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n           headerToTopInSection:( NSInteger)section;\n\n另\n==============\n有什么问题可以邮箱联系我，或者issue我。也可以加交流群：436043199\n"
  },
  {
    "path": "SYSMAINMacro.h",
    "content": "//\n//  SYSMAINMacro.h\n//  SYStickHeaderWaterFall\n//\n//  Created by suya on 16/4/28.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#ifndef SYSMAINMacro_h\n#define SYSMAINMacro_h\n\n\n#endif /* SYSMAINMacro_h */\n\n#define kDeviceWidth  [UIScreen mainScreen].bounds.size.width\n#define kDeviceHeight [UIScreen mainScreen].bounds.size.height\n\nstatic NSString* const WaterfallCellIdentifier = @\"WaterfallCell\";\nstatic NSString* const WaterfallHeaderIdentifier = @\"WaterfallHeader\";"
  },
  {
    "path": "SYStickHeaderWaterFall/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@property (nonatomic, strong) UINavigationController *rootViewController;\n\n@end\n\n"
  },
  {
    "path": "SYStickHeaderWaterFall/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n#import \"HomeThreeViewController.h\"\n#import \"SYRootViewController.h\"\n#import \"NetWorkConfig.h\"\n#import \"SYSURLMacro.h\"\n/// Fix the navigation bar height when hide status bar.\n@interface SYExampleNavBar : UINavigationBar\n@end\n\n@implementation SYExampleNavBar {\n    CGSize _previousSize;\n}\n\n- (CGSize)sizeThatFits:(CGSize)size {\n    size = [super sizeThatFits:size];\n    if ([UIApplication sharedApplication].statusBarHidden) {\n        size.height = 64;\n    }\n    return size;\n}\n\n- (void)layoutSubviews {\n    [super layoutSubviews];\n    if (!CGSizeEqualToSize(self.bounds.size, _previousSize)) {\n        _previousSize = self.bounds.size;\n        [self.layer removeAllAnimations];\n        [self.layer.sublayers enumerateObjectsUsingBlock:^(CALayer *layer, NSUInteger idx, BOOL *stop) {\n            [layer removeAllAnimations];\n        }];\n    }\n}\n\n@end\n@interface SYExampleNavController : UINavigationController\n@end\n\n@implementation SYExampleNavController\n- (BOOL)shouldAutorotate {\n    return YES;\n}\n\n- (UIInterfaceOrientationMask)supportedInterfaceOrientations {\n    return UIInterfaceOrientationMaskPortrait;\n}\n\n- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {\n    return UIInterfaceOrientationPortrait;\n}\n\n@end\n@interface AppDelegate ()\n\n@end\n@implementation AppDelegate\n\n- (void)setupRequestFilters {\n    //    NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@\"CFBundleShortVersionString\"];\n    NetWorkConfig *config = [NetWorkConfig shareInstance];\n    config.baseUrl = URL_MAIN;\n    \n    \n}\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    \n    [self setupRequestFilters];\n    \n    SYRootViewController *root = [SYRootViewController new];\n    SYExampleNavController *nav = [[SYExampleNavController alloc] initWithNavigationBarClass:[SYExampleNavBar class] toolbarClass:[UIToolbar class]];\n    if ([nav respondsToSelector:@selector(setAutomaticallyAdjustsScrollViewInsets:)]) {\n        nav.automaticallyAdjustsScrollViewInsets = NO;\n    }\n    [nav pushViewController:root animated:NO];\n    \n    self.rootViewController = nav;\n    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];\n    self.window.rootViewController = self.rootViewController;\n    self.window.backgroundColor = [UIColor grayColor];\n    [self.window makeKeyAndVisible];\n    \n    return YES;\n\n}\n\n- (void)applicationWillResignActive:(UIApplication *)application {\n    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n}\n\n- (void)applicationDidEnterBackground:(UIApplication *)application {\n    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n}\n\n- (void)applicationWillEnterForeground:(UIApplication *)application {\n    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n}\n\n- (void)applicationDidBecomeActive:(UIApplication *)application {\n    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n}\n\n- (void)applicationWillTerminate:(UIApplication *)application {\n    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "SYStickHeaderWaterFall/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "SYStickHeaderWaterFall/Assets.xcassets/home_logo.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"home_logo.pdf\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "SYStickHeaderWaterFall/Assets.xcassets/shuaxin1.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"shuaxin1@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "SYStickHeaderWaterFall/Assets.xcassets/shuaxin2.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"shuaxin2@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "SYStickHeaderWaterFall/Assets.xcassets/start_logo.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"start_logo.pdf\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "SYStickHeaderWaterFall/Assets.xcassets/top_sidebar.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"top_back_b.pdf\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "SYStickHeaderWaterFall/BannerModel.h",
    "content": "//\n//  BannerModel.h\n//  mokoo\n//\n//  Created by Mac on 15/9/2.\n//  Copyright (c) 2015年 Mac. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n//\"banner_id\":\"banner广告ID\",\n//\"img_url\":\"图片链接\",\n//\"type\":\"广告类型\",  1.网页广告  2.推荐活动  3.推荐模特卡\n//（类型为1时跳转到网页，为2时跳转到活动 ，为3时跳转到模特卡）\n//\"url\":\"网页广告url链接\",\n//\"id\":\"活动或模特卡对应ID\",\n//\"form_user_id\":\"活动或模特卡对应用户ID\",\n//title 网页头部的title\n@interface BannerModel : NSObject\n@property (nonatomic,copy) NSString *banner_id;\n@property (nonatomic,copy) NSString *img_url;\n@property (nonatomic,copy) NSString *type;\n@property (nonatomic,copy) NSString *url;\n@property (nonatomic,copy) NSString *form_id;\n@property (nonatomic,copy) NSString *form_user_id;\n@property (nonatomic,copy) NSString *title;\n\n+(instancetype)initBannerWithDict:(NSDictionary *)dict;\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/BannerModel.m",
    "content": "//\n//  BannerModel.m\n//  mokoo\n//\n//  Created by Mac on 15/9/2.\n//  Copyright (c) 2015年 Mac. All rights reserved.\n//\n\n#import \"BannerModel.h\"\n#import <MJExtension.h>\n\n@implementation BannerModel\n+(instancetype)initBannerWithDict:(NSDictionary *)dict\n{\n    BannerModel *model = [[self alloc]init];\n    [model mj_setKeyValues:dict];\n    return model;\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"8150\" systemVersion=\"15A204g\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"8122\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"Llm-lL-Icb\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"xb3-aO-Qok\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <animations/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "SYStickHeaderWaterFall/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"6211\" systemVersion=\"14A298i\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"6204\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"ViewController\" customModuleProvider=\"\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"y3c-jy-aDJ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"wfy-db-euE\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "SYStickHeaderWaterFall/BaseRequest.h",
    "content": "//\n//  BaseRequest.h\n//  YZPro\n//\n//  Created by suya on 16/4/26.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"AFNetworking.h\"\n\ntypedef NS_ENUM(NSInteger, NetWorkRequestMethod)\n{\n    NetWorkRequestMethodGet = 0,\n    NetWorkRequestMethodPost,\n    NetWorkRequestMethodHead,\n    NetWorkRequestMethodPut,\n    NetWorkRequestMethodDelete,\n    NetWorkRequestMethodPatch\n};\n\ntypedef NS_ENUM(NSInteger,NetWorkRequestState)\n{\n    NetWorkRequestStateOn = 0,\n    NetWorkRequestStateOff,\n    NetWorkRequestStateSucced,\n    NetWorkRequestStateError\n};\n\ntypedef NS_ENUM(NSInteger, NetWorkSerializerType)\n{\n    NetWorkSerializerTypeHttp = 0,\n    NetWorkSerializerTypeJson\n};\n\ntypedef void (^AFConstructingBlock)(id<AFMultipartFormData> formData);\n//typedef void (^AFDownloadProgressBlock)(AFDownloadRequestOperation *operation, NSInteger bytesRead, long long totalBytesRead, long long totalBytesExpected, long long totalBytesReadForFile, long long totalBytesExpectedToReadForFile);\n\n@class BaseRequest;\n\ntypedef void(^requestComplete) (BOOL succed, id obj);\n\ntypedef void (^RequestCompletionBlock)(__kindof  BaseRequest *request, id obj);\n\n@protocol BaseRequestDelegate <NSObject>\n\n@optional\n- (void)requestFinished:(BaseRequest *)request;\n- (void)requestFailed:(BaseRequest *)request;\n- (void)clearRequest;\n\n@end\n\n@protocol RequestAccescory <NSObject>\n@optional\n-(void)requestWillStart:(id)request;\n-(void)requestWillStop:(id)request;\n-(void)requestDidStop:(id)request;\n\n@end\n\n//#define WARN_NETWORK_FAILE            @\"请检查您的网络\"\n//#define WARN_UNKNOW_FAILE               @\"未知错误\"\n//#define URL_MAIN                        @\"http://121.40.147.31/xgou/\"\n//#define RESULT_DATAS                    @\"data\"\n@interface BaseRequest : NSObject\n\n/// Tag\n@property (nonatomic) NSInteger tag;\n\n/// User info\n@property (nonatomic, strong) NSDictionary *userInfo;\n\n@property (nonatomic, strong) NSURLSessionDataTask *requestDataTask;\n\n/// request delegate object\n@property (nonatomic, weak) id<BaseRequestDelegate> delegate;\n\n@property (nonatomic, strong, readonly) NSDictionary *responseHeaders;\n\n@property (nonatomic, strong, readonly) NSData *responseData;\n\n@property (nonatomic, strong, readonly) NSString *responseString;\n\n@property (nonatomic, strong, readonly) id responseJSONObject;\n\n@property (nonatomic, readonly) NSInteger responseStatusCode;\n\n@property (nonatomic, strong, readonly) NSError *requestOperationError;\n\n@property (nonatomic, copy) RequestCompletionBlock successCompletionBlock;\n\n@property (nonatomic, copy) RequestCompletionBlock failureCompletionBlock;\n\n@property (nonatomic, strong) NSMutableArray *requestAccessories;\n\n/// 请求的优先级, 优先级高的请求会从请求队列中优先出列\n//@property (nonatomic) YTKRequestPriority requestPriority;\n\n/// append self to request queue\n- (void)start;\n\n/// remove self from request queue\n- (void)stop;\n\n//- (BOOL)isExecuting;\n\n/// block回调\n- (void)startWithCompletionBlockWithSuccess:(RequestCompletionBlock)success\n                                    failure:(RequestCompletionBlock)failure;\n\n- (void)setCompletionBlockWithSuccess:(RequestCompletionBlock)success\n                              failure:(RequestCompletionBlock)failure;\n\n/// 把block置nil来打破循环引用\n- (void)clearCompletionBlock;\n\n/// Request Accessory，可以hook Request的start和stop\n- (void)addAccessory:(id<RequestAccescory>)accessory;\n\n/// 以下方法由子类继承来覆盖默认值\n\n/// 请求成功的回调\n- (void)requestCompleteFilter;\n\n/// 请求失败的回调\n- (void)requestFailedFilter;\n\n/// 请求的URL\n- (NSString *)requestUrl;\n\n/// 请求的CdnURL\n- (NSString *)cdnUrl;\n\n/// 请求的BaseURL\n- (NSString *)baseUrl;\n\n/// 请求的连接超时时间，默认为60秒\n- (NSTimeInterval)requestTimeoutInterval;\n\n/// 请求的参数列表\n- (id)requestArgument;\n\n/// 用于在cache结果，计算cache文件名时，忽略掉一些指定的参数\n- (id)cacheFileNameFilterForRequestArgument:(id)argument;\n\n/// Http请求的方法\n- (NetWorkRequestMethod)requestMethod;\n\n/// 请求的SerializerType\n- (NetWorkSerializerType)requestSerializerType;\n\n/// 请求的Server用户名和密码\n- (NSArray *)requestAuthorizationHeaderFieldArray;\n\n/// 在HTTP报头添加的自定义参数\n- (NSDictionary *)requestHeaderFieldValueDictionary;\n\n/// 构建自定义的UrlRequest，\n/// 若这个方法返回非nil对象，会忽略requestUrl, requestArgument, requestMethod, requestSerializerType\n- (NSURLRequest *)buildCustomUrlRequest;\n\n/// 是否使用CDN的host地址\n- (BOOL)useCDN;\n\n/// 用于检查JSON是否合法的对象\n- (id)jsonValidator;\n\n/// 用于检查Status Code是否正常的方法\n- (BOOL)statusCodeValidator;\n\n/// 当POST的内容带有文件等富文本时使用\n- (AFConstructingBlock)constructingBodyBlock;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/BaseRequest.m",
    "content": "//\n//  BaseRequest.m\n//  YZPro\n//\n//  Created by suya on 16/4/26.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import \"BaseRequest.h\"\n#import \"AFNetworking.h\"\n#import \"NetWorkPrivate.h\"\n#import \"NetWorkAgent.h\"\n#import <CommonCrypto/CommonDigest.h>\n@implementation BaseRequest\n\n/// for subclasses to overwrite\n- (void)requestCompleteFilter {\n}\n\n- (void)requestFailedFilter {\n}\n\n- (NSString *)requestUrl {\n    return @\"\";\n}\n\n- (NSString *)cdnUrl {\n    return @\"\";\n}\n\n- (NSString *)baseUrl {\n    return @\"\";\n}\n\n- (NSTimeInterval)requestTimeoutInterval {\n    return 15;\n}\n\n- (id)requestArgument {\n    return nil;\n}\n\n- (id)cacheFileNameFilterForRequestArgument:(id)argument {\n    return argument;\n}\n\n- (NetWorkRequestMethod)requestMethod {\n    return NetWorkRequestMethodPost;\n}\n\n- (NetWorkSerializerType)requestSerializerType {\n    return NetWorkSerializerTypeHttp;\n}\n\n- (NSArray *)requestAuthorizationHeaderFieldArray {\n    return nil;\n}\n\n- (NSDictionary *)requestHeaderFieldValueDictionary {\n    return nil;\n}\n\n- (NSURLRequest *)buildCustomUrlRequest {\n    return nil;\n}\n\n- (BOOL)useCDN {\n    return NO;\n}\n\n- (id)jsonValidator {\n    return nil;\n}\n\n- (BOOL)statusCodeValidator {\n//    NSInteger statusCode = [self responseStatusCode];\n    return YES;\n//    if (statusCode >= 200 && statusCode <=299) {\n//        return YES;\n//    } else {\n//        return NO;\n//    }\n}\n\n- (AFConstructingBlock)constructingBodyBlock {\n    return nil;\n}\n\n- (NSString *)resumableDownloadPath {\n    return nil;\n}\n\n//- (AFDownloadProgressBlock)resumableDownloadProgressBlock {\n//    return nil;\n//}\n\n/// append self to request queue\n- (void)start {\n    [self toggleAccessoriesWillStartCallBack];\n    [[NetWorkAgent sharedInstance] addRequest:self];\n}\n\n/// remove self from request queue\n- (void)stop {\n    [self toggleAccessoriesWillStopCallBack];\n    self.delegate = nil;\n    [[NetWorkAgent sharedInstance] cancelRequest:self];\n    [self toggleAccessoriesDidStopCallBack];\n}\n\n//- (BOOL)isExecuting {\n//    return self.requestDataTask.isExecuting;\n//}\n\n- (void)clearCompletionBlock {\n    // nil out to break the retain cycle.\n    self.successCompletionBlock = nil;\n    self.failureCompletionBlock = nil;\n}\n\n- (void)startWithCompletionBlockWithSuccess:(RequestCompletionBlock)success\n                                    failure:(RequestCompletionBlock)failure {\n    [self setCompletionBlockWithSuccess:success failure:failure];\n    [self start];\n}\n\n- (void)setCompletionBlockWithSuccess:(RequestCompletionBlock)success\n                              failure:(RequestCompletionBlock)failure {\n    self.successCompletionBlock = success;\n    self.failureCompletionBlock = failure;\n}\n\n- (id)responseJSONObject {\n    return self.requestDataTask.response;\n}\n\n\n//- (NSData *)responseData {\n//    return self.requestOperation.responseData;\n//}\n//\n//- (NSString *)responseString {\n//    return self.requestDataTask.response.responseString;\n//}\n//\n//- (NSInteger)responseStatusCode {\n//    return self.requestDataTask.response.;\n//}\n//\n//- (NSDictionary *)responseHeaders {\n//    return self.requestOperation.response.allHeaderFields;\n//}\n//\n//- (NSError *)requestOperationError {\n//    return self.requestOperation.error;\n//}\n\n\n#pragma mark - Request Accessoies\n\n- (void)addAccessory:(id<RequestAccescory>)accessory {\n    if (!self.requestAccessories) {\n        self.requestAccessories = [NSMutableArray array];\n    }\n    [self.requestAccessories addObject:accessory];\n}\n\n//+(void)postRequestParameters:(NSDictionary *)dicParameters api:(NSString *)_typeApi andlastInterFace:(NSString *)_interface analysisDataComplete:(requestComplete)complete {\n//    AFHTTPSessionManager   *manager    = [BaseRequest managerCustom];\n//    \n//    NSMutableString *strURl = [[NSMutableString alloc] initWithString:URL_MAIN];\n//    if ([_typeApi isEqualToString:@\"Api\"]) {\n//        [strURl appendString:@\"Api/\"];\n//    } else if([_typeApi isEqualToString:@\"UserApi\"]){\n//        [strURl appendString:@\"UserApi/\"];\n//    }else if ([_typeApi isEqualToString:@\"FilmApi\"])\n//    {\n//        [strURl appendString:@\"FilmApi/\"];\n//    }else if ([_typeApi isEqualToString:@\"GoodsApi\"])\n//    {\n//        [strURl appendString:@\"GoodsApi/\"];\n//        \n//    }else if ([_typeApi isEqualToString:@\"OrderApi\"])\n//    {\n//        [strURl appendString:@\"OrderApi/\"];\n//        \n//    }else if ([_typeApi isEqualToString:@\"CartApi\"])\n//    {\n//        [strURl appendString:@\"CartApi/\"];\n//    }else if ([_typeApi isEqualToString:@\"AddressApi\"])\n//    {\n//        [strURl appendString:@\"AddressApi/\"];\n//    }else if ([_typeApi isEqualToString:@\"SetApi\"])\n//    {\n//        [strURl appendString:@\"SetApi/\"];\n//    }\n//    [strURl appendString:[NSString stringWithFormat:@\"%@/\",_interface]];\n//    \n//    [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;\n//    \n//    //        NSLog(@\"requstURLandDic%@::%@\\n>>>>>>>>\",strURl,dicParameters);\n//    [manager POST:strURl parameters:dicParameters progress:^(NSProgress *uploadProgress)\n//     {\n//         \n//     }\n//          success:^(NSURLSessionDataTask *task, id responseObject) {\n//              BOOL succed = [BaseRequest errorSolution:responseObject];\n//              //        SLog(@\"关于succed>>>>>>>%@\",@(succed));\n//              complete(succed,responseObject);\n//              \n//          } failure:^(NSURLSessionDataTask *task, NSError *error) {\n//              \n//              complete(NO,WARN_NETWORK_FAILE);\n//          }];\n//    \n//    \n//}\n//\n//+(BOOL)errorSolution:(id)responseObject {\n//    //数据data中没有 error 参数\n//    [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;\n//    BOOL succed = YES;\n//    //    if ([dicdatas isKindOfClass:[NSDictionary class]]) {\n//    //        NSString    *strError   = [dicdatas drObjectForKey:@\"error\"];\n//    //        if (![NSString isEmptyString:strError]) {\n//    //            succed = NO;\n//    //        }\n//    //    }\n//    if ([responseObject isKindOfClass:[NSDictionary class]]) {\n//        \n//        //                NSInteger status = [[responseObject objectForKey:@\"status\"] integerValue];\n//        //                NSString    *status = [responseObject objectForKey:@\"status\"];\n//        //                if (![status isEqualToString:@\"1\"]) {\n//        //                    succed = NO;\n//        //                }\n//    }\n//    \n//    return succed;\n//}\n//\n//+(AFHTTPSessionManager *)managerCustom {\n//    \n//    AFHTTPSessionManager   *manager    = [AFHTTPSessionManager manager];\n//    manager.requestSerializer.timeoutInterval   = 6;\n//    \n//    return manager;\n//}\n//\n//+(NSMutableDictionary *)baseOption {\n//    \n//    NSMutableDictionary *dicbase    = [[NSMutableDictionary alloc] init];\n//    \n//    return dicbase;\n//}\n//\n//+(NSMutableDictionary *)userIdOption {\n//    \n//    NSMutableDictionary *dicbase    = [[NSMutableDictionary alloc] init];\n//    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];\n//    [dicbase setObject:[userDefaults objectForKey:@\"user_id\"] forKey:@\"user_id\"];\n//    //    if (![NSString isEmptyString:[UserInfo shareUserInfo].strToken]) {\n//    //        [dicbase setObject:[UserInfo shareUserInfo].strToken forKey:@\"key\"];\n//    //    }\n//    \n//    return dicbase;\n//}\n//\n//+ (NSString *)md5HexDigest:(NSString *)str\n//{\n//    const char *original_str = [str UTF8String];\n//    unsigned char result[CC_MD5_DIGEST_LENGTH];\n//    CC_MD5(original_str, (CC_LONG)strlen(original_str), result);\n//    NSMutableString *hash = [NSMutableString string];\n//    for (int i = 0; i < CC_MD5_DIGEST_LENGTH; i++)\n//        [hash appendFormat:@\"%02X\", result[i]];\n//    return [hash lowercaseString];\n//    \n//}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/Classes/SYStickHeaderWaterFallLayout.h",
    "content": "//\n//  SYStickHeaderWaterFallLayout.h\n//  SYStickHeaderWaterFall\n//\n//  Created by 张苏亚 on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n//  Thank FRGWaterfallCollectionViewLayout😊.https://github.com/SureCase/WaterfallCollectionView\n\n// 项目有什么bug和建议 可以加群：436043199 来大家一起交流\n\n#import <UIKit/UIKit.h>\n\n@class SYStickHeaderWaterFallLayout;\n\n@protocol SYStickHeaderWaterFallDelegate <NSObject>\n//Inspired by UITableViewDelegate 😄\n/**\n *  返回所在section的每个item的width（一个section只有一个width）\n *\n */\n- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n   widthForItemInSection:( NSInteger )section;\n/**\n *  返回所在indexPath的每个item的height（每个item有一个height，要不然怎么是瀑布流😄）\n *\n */\n- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n heightForItemAtIndexPath:(nonnull NSIndexPath *)indexPath;\n\n@optional\n/**\n *  返回所在indexPath的header的height\n *\n*/\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\nheightForHeaderAtIndexPath:(nonnull NSIndexPath *)indexPath;\n/**\n *  返回所在indexPath的footer的height\n *\n */\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\nheightForFooterAtIndexPath:(nonnull NSIndexPath *)indexPath;\n/**\n *  返回所在section与上一个section的间距(表达的可能不够准确，但是你们都懂的)\n *\n */\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\ntopInSection:(NSInteger )section;\n/**\n *  返回所在section与下一个section的间距(表达的可能不够准确，但是你们都懂的)\n *\n */\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n            bottomInSection:( NSInteger)section;\n/**\n *  返回所在section的header停留时与顶部的距离（如果设置isTopForHeader ＝ YES ，则距离会叠加）\n *\n */\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n           headerToTopInSection:( NSInteger)section;\n@end\n\ntypedef NS_ENUM(NSUInteger,SYStickHeaderAlignment)\n{\n    SYStickHeaderAlignmentLeft =0,\n    SYStickHeaderAlignmentcenter\n};\n\n@interface SYStickHeaderWaterFallLayout : UICollectionViewLayout\n\n@property (nonatomic, assign,nonnull)  id<SYStickHeaderWaterFallDelegate> delegate;\n//当你用UINavigationController和UITabbarViewController并设置一些属性时，collectionview的展示视图的坐标y会变得很奇怪，那就在此修正,默认64\n@property (nonatomic,assign) CGFloat fixTop;\n//对齐方式一个是靠最左边，一个是靠中间\n@property(nonatomic,assign) SYStickHeaderAlignment headAlignment;\n//是否设置sectionHeader停留,默认YES\n@property (nonatomic) BOOL isStickyHeader;\n//section停留的位置是否包括原来设置的top，默认NO\n@property (nonatomic) BOOL isTopForHeader;\n\n@property (nonatomic) BOOL isStickyFooter;\n@end\n\n\n"
  },
  {
    "path": "SYStickHeaderWaterFall/Classes/SYStickHeaderWaterFallLayout.m",
    "content": "//\n//  SYStickHeaderWaterFallLayout.m\n//  SYStickHeaderWaterFall\n//\n//  Created by 张苏亚 on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"SYStickHeaderWaterFallLayout.h\"\n//#define kDeviceWidth  [UIScreen mainScreen].bounds.size.width\n//#define kDeviceHeight [UIScreen mainScreen].bounds.size.height\n#define NSLog(format, ...) do { \\\nfprintf(stderr, \"<%s : %d> %s\\n\", \\\n[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], \\\n__LINE__, __func__); \\\n(NSLog)((format), ##__VA_ARGS__); \\\nfprintf(stderr, \"-------\\n\"); \\\n} while (0)\n\nNSString* const SYStickHeaderWaterCellKind = @\"WaterfallCell\";\nNSString* const SYStickHeaderWaterDecorationKind = @\"Decoration\";\n\n@interface SYStickHeaderWaterFallLayout()\n@property (nonatomic,strong) NSArray *topInsetArray;//每个section的top\n@property (nonatomic,strong) NSArray *bottomInsetArray;//每个section的bottom\n@property (nonatomic,strong) NSArray *itemInnerMarginArray;//\n@property (nonatomic,strong) NSArray *columnsCountArray;//每个section的columncount\n@property (nonatomic,strong) NSArray *itemsWidthArray;\n@property (nonatomic,strong) NSArray *headerToTopArray;//每个section的停留时与顶部的距离\n@property (nonatomic,strong) NSDictionary *layoutInfo;//全部layoutAttribute信息\n@property (nonatomic,strong) NSArray *sectionsHeights;//\n@property (nonatomic,strong) NSArray *itemsInSectionsHeights;//每个section里cell的高度.\n@end\n\n@implementation SYStickHeaderWaterFallLayout\n#pragma mark - Lifecycle\n\n- (id)init {\n    self = [super init];\n    if (self) {\n        [self setup];\n    }\n    \n    return self;\n}\n\n- (id)initWithCoder:(NSCoder *)aDecoder {\n    self = [super init];\n    if (self) {\n        [self setup];\n    }\n    \n    return self;\n}\n\n\n\n- (void)setup {\n    self.fixTop = 64;\n    self.isTopForHeader = NO;\n    self.isStickyHeader = YES;\n    self.isStickyFooter = NO;\n    self.headAlignment = SYStickHeaderAlignmentLeft;\n    [self invalidateLayout];\n    \n}\n\n- (void)prepareLayout {\n    \n    [super prepareLayout];\n    \n    //    if (self.collectionView.isDecelerating || self.collectionView.isDragging) {\n    //\n    //    } else {\n    [self calculateHeaderToTop];//计算每个section的停留时与顶部的距离通,过代理方法（collectionView:layout:headerToTopInSection:）获得\n    [self calculateItemsWidth];//计算所在section的每个item的width（一个section只有一个width）.通过代理方法（collectionView:layout:widthForItemInSection:）获得\n    [self calculateSectionsTopInsetAndBottomInset];//计算所在section与上一个section的间距和所在section与下一个section的间距.通过代理方法（collectionView:layout:topInSection:和collectionView:layout:bottomInSection:）获得\n    [self calculateColumnsCount];//计算每个section的列数（根据itemsWidthArray计算列数，而itemsWidthArray是[self calculateItemsWidth]计算出来的）\n    [self calculateItemsInnerMarginArray];//计算每个section中item之间的间距(上下左右的间距都是同一个数值)(根据itemsWidthArray计算列数)\n    [self calculateItemsHeights];//计算item的高度\n    [self calculateSectionsHeights];//计算每个section的高度\n    [self calculateItemsAttributes];\n    //    }\n}\n\n- (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect {\n    NSMutableArray *allAttributes = [NSMutableArray arrayWithCapacity:self.layoutInfo.count];\n    \n    [self.layoutInfo enumerateKeysAndObjectsUsingBlock:^(NSString *elementIdentifier,\n                                                         NSDictionary *elementsInfo,\n                                                         BOOL *stop) {\n        [elementsInfo enumerateKeysAndObjectsUsingBlock:^(NSIndexPath *indexPath,\n                                                          UICollectionViewLayoutAttributes *attributes,\n                                                          BOOL *innerStop) {\n            if (CGRectIntersectsRect(rect, attributes.frame) || [elementIdentifier isEqualToString:UICollectionElementKindSectionHeader]) {\n                if (attributes.frame.size.height != 0) {//当用户不设置UICollectionElementKindSectionHeader时,如果不加这个判断的话,会走代理viewForSupplementaryElementOfKind:而如果你在这个方法里没有设置UICollectionReusableView则会造成崩溃\n                    [allAttributes addObject:attributes];\n                }\n                \n            }else if (CGRectIntersectsRect(rect, attributes.frame)||[elementIdentifier isEqualToString:UICollectionElementKindSectionFooter])\n            {\n                if (attributes.frame.size.height != 0) {//当用户不设置UICollectionElementKindSectionFooter时,如果不加判断的话,会走代理viewForSupplementaryElementOfKind:造成崩溃\n                    [allAttributes addObject:attributes];\n                }\n                \n            }\n        }];\n    }];\n    \n//    if(!self.isStickyHeader&&!self.isStickyFooter) {\n//        return allAttributes;\n//    }\n    //保证section停留\n    for (UICollectionViewLayoutAttributes *layoutAttributes in allAttributes) {\n        if (self.isStickyHeader) {\n            if ([layoutAttributes.representedElementKind isEqualToString:UICollectionElementKindSectionHeader]) {\n                NSInteger section = layoutAttributes.indexPath.section;\n                NSIndexPath *firstCellIndexPath = [NSIndexPath indexPathForItem:0 inSection:section];\n                UICollectionViewLayoutAttributes *firstCellAttrs = [self layoutAttributesForItemAtIndexPath:firstCellIndexPath];\n                \n                CGFloat headerHeight = CGRectGetHeight(layoutAttributes.frame) + [self.itemInnerMarginArray[section] floatValue];\n                CGFloat currentHeaderHeight = [self headerHeightForIndexPath:firstCellIndexPath];\n                CGPoint origin = layoutAttributes.frame.origin;\n                \n                origin.y = MIN(\n                               //保证停留\n                               MAX(self.collectionView.contentOffset.y + self.fixTop +[self.headerToTopArray[section] floatValue], (CGRectGetMinY(firstCellAttrs.frame) - headerHeight) - (self.isTopForHeader?[self.topInsetArray[section] floatValue]:0.0f)) ,\n                               //保证消失\n                               CGRectGetMinY(firstCellAttrs.frame) - headerHeight + [[self.sectionsHeights objectAtIndex:section] floatValue] - currentHeaderHeight - (self.isTopForHeader?[self.topInsetArray[section] floatValue]:0.0f)                           ) + (self.isTopForHeader?[self.topInsetArray[section] floatValue]:0.0f) ;//\n                CGFloat width = layoutAttributes.frame.size.width;\n//                if(self.collectionView.contentOffset.y > origin.y -self.fixTop -[self.headerToTopArray[section] floatValue]) {\n//                    width = self.collectionView.bounds.size.width;\n//                    origin.x = 0;\n//                    origin.y = origin.y + [self.headerToTopArray[section] floatValue];\n//                    NSLog(@\"self.collectionView.contentOffset.y%@\",@(self.collectionView.contentOffset.y));\n//                    \n//                } else {\n//                    \n//                    width = self.collectionView.bounds.size.width;\n//                    origin.x = 0;\n//                    \n//                }\n                \n                layoutAttributes.zIndex = 2048 +section;//这里的zIndex一定要比footer的高，确保不会被footer遮挡\n                layoutAttributes.frame = (CGRect){\n                    .origin = origin,\n                    .size = CGSizeMake(width, layoutAttributes.frame.size.height)\n                };\n            }\n        }\n        \n        if (self.isStickyFooter) {\n            //保证footer停留，\n            if ([layoutAttributes.representedElementKind isEqualToString:UICollectionElementKindSectionFooter]) {\n                \n                NSInteger section = layoutAttributes.indexPath.section;\n                NSLog(@\"indexPath.item%@\",@(layoutAttributes.indexPath.item));\n                NSIndexPath *firstCellIndexPath = [NSIndexPath indexPathForItem:0 inSection:section];\n                UICollectionViewLayoutAttributes *firstCellAttrs = [self layoutAttributesForItemAtIndexPath:firstCellIndexPath];\n                CGFloat headerHeight = [self headerHeightForIndexPath:firstCellIndexPath] + [self.itemInnerMarginArray[section] floatValue];\n                //            CGFloat currentHeaderHeight = [self headerHeightForIndexPath:firstCellIndexPath];\n                \n                \n                CGFloat currentFooterHeight = [self footerHeightForIndexPath:firstCellIndexPath];\n                CGPoint origin = layoutAttributes.frame.origin;\n                \n                origin.y = MAX(\n                               //保证footer停留\n                               //第一个是停留时的y,第二个是非停留时的y\n                               MIN(self.collectionView.contentOffset.y + self.collectionView.frame.size.height -currentFooterHeight,CGRectGetMinY(firstCellAttrs.frame) - headerHeight + [[self.sectionsHeights objectAtIndex:section] floatValue] -currentFooterHeight) ,\n                               //保证footer消失\n                               CGRectGetMinY(firstCellAttrs.frame)- headerHeight  ) ;//\n                CGFloat width = layoutAttributes.frame.size.width;\n                width = self.collectionView.bounds.size.width;\n                origin.x = 0;\n                //            if(self.collectionView.contentOffset.y > origin.y -self.fixTop -[self.headerToTopArray[section] floatValue]) {\n                //                width = self.collectionView.bounds.size.width;\n                //                origin.x = 0;\n                ////                origin.y = origin.y + [self.headerToTopArray[section] floatValue];\n                //                NSLog(@\"self.collectionView.contentOffset.y%@\",@(self.collectionView.contentOffset.y));\n                //\n                //            } else {\n                //\n                //                width = self.collectionView.bounds.size.width;\n                //                origin.x = 0;\n                //\n                //            }\n                \n                layoutAttributes.zIndex = 1024 +section;\n                layoutAttributes.frame = (CGRect){\n                    .origin = origin,\n                    .size = CGSizeMake(width, layoutAttributes.frame.size.height)\n                };\n            }\n\n        }\n    }\n    \n    return allAttributes;\n}\n\n- (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath {\n    \n    return self.layoutInfo[SYStickHeaderWaterCellKind][indexPath];\n    \n}\n\n- (UICollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)kind\n                                                                     atIndexPath:(NSIndexPath *)indexPath {\n    \n    if ([kind isEqualToString:UICollectionElementKindSectionHeader]) {\n        \n        return self.layoutInfo[UICollectionElementKindSectionHeader][indexPath];\n        \n    }else if ([kind isEqualToString:UICollectionElementKindSectionFooter])\n    {\n        return self.layoutInfo[UICollectionElementKindSectionFooter][indexPath];\n    }\n    \n    return nil;\n    \n}\n\n//- (UICollectionViewLayoutAttributes *)layoutAttributesForDecorationViewOfKind:\n//(NSString*)decorationViewKind atIndexPath:(NSIndexPath *)indexPath {\n//    return self.layoutInfo[SYStickHeaderWaterDecorationKind][indexPath];\n//}\n\n- (CGSize)collectionViewContentSize {\n    CGFloat height = 0;\n    for (NSInteger i =0; i< [self.topInsetArray count]; i++) {\n        height += [self.topInsetArray[i] floatValue];\n    }\n    //    NSLog(@\"height%@\",[NSString stringWithFormat:@\"%f\",[[NSNumber numberWithFloat:height] floatValue]]);\n    for (NSNumber *h in self.sectionsHeights) {\n        height += [h integerValue];\n    }\n    for (NSInteger i =0; i< [self.bottomInsetArray count]; i++) {\n        height += [self.bottomInsetArray[i] floatValue];\n    }\n    //    NSLog(@\"height%@\",[NSString stringWithFormat:@\"%li\",(long)[[NSNumber numberWithFloat:height] integerValue]]);\n    return CGSizeMake(self.collectionView.bounds.size.width, height);\n}\n\n-(BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBound {\n    return self.isStickyHeader||self.isStickyFooter;\n}\n\n#pragma mark - Prepare layout calculation\n//计算每个section的停留时与顶部的距离（此时不加上topInsetArray里的值）\n-(void)calculateHeaderToTop\n{\n    NSMutableArray *headerToTopArray = [NSMutableArray arrayWithCapacity:self.collectionView.numberOfSections];\n    for (NSInteger section = 0; section< self.collectionView.numberOfSections; section++) {\n        [headerToTopArray addObject:[NSNumber numberWithFloat:[self headerToTopInSection:section]]];\n    }\n    self.headerToTopArray = [headerToTopArray copy];\n}\n//每个cell的高度.\n- (void) calculateItemsHeights {\n    NSMutableArray *itemsInSectionsHeights = [NSMutableArray arrayWithCapacity:self.collectionView.numberOfSections];\n    NSIndexPath *itemIndex;\n    for (NSInteger section = 0; section < self.collectionView.numberOfSections; section++) {\n        NSMutableArray *itemsHeights = [NSMutableArray arrayWithCapacity:[self.collectionView numberOfItemsInSection:section]];\n        for (NSInteger item = 0; item < [self.collectionView numberOfItemsInSection:section]; item++) {\n            itemIndex = [NSIndexPath indexPathForItem:item inSection:section];\n            CGFloat itemHeight = [self.delegate collectionView:self.collectionView\n                                                        layout:self\n                                      heightForItemAtIndexPath:itemIndex];\n            NSAssert(![[NSNumber numberWithFloat:itemHeight] isEqualToNumber:[NSDecimalNumber notANumber]] , @\"itemHeight must not be nan\");\n            [itemsHeights addObject:[NSNumber numberWithFloat:itemHeight]];\n        }\n        [itemsInSectionsHeights addObject:itemsHeights];\n    }\n    \n    self.itemsInSectionsHeights = itemsInSectionsHeights;\n}\n//每个section的列数\n- (void) calculateColumnsCount {\n    NSMutableArray *itemsInSectionsCount = [NSMutableArray arrayWithCapacity:self.collectionView.numberOfSections];\n    for (NSInteger section = 0; section < self.collectionView.numberOfSections; section++) {\n        [itemsInSectionsCount addObject:[NSNumber numberWithInteger:self.collectionView.bounds.size.width / [self.itemsWidthArray[section] floatValue]]];\n    }\n    self.columnsCountArray = [itemsInSectionsCount copy];\n}\n//每个section的topInset和bottomInset\n-(void)calculateSectionsTopInsetAndBottomInset\n{\n    NSMutableArray *topInsetInSection = [NSMutableArray arrayWithCapacity:self.collectionView.numberOfSections];\n    NSMutableArray *bottomInsetInSection = [NSMutableArray arrayWithCapacity:self.collectionView.numberOfSections];\n    for (NSInteger section = 0; section < self.collectionView.numberOfSections; section++) {\n        [topInsetInSection addObject:[NSNumber numberWithFloat:[self topInSection:section]]];\n        [bottomInsetInSection addObject:[NSNumber numberWithFloat:[self bottomInSection:section]]];\n    }\n    self.topInsetArray = [topInsetInSection copy];\n    self.bottomInsetArray = [bottomInsetInSection copy];\n}\n//每个section的ItemArray\n-(void)calculateItemsWidth\n{\n    NSMutableArray *itemsWidthArray = [NSMutableArray arrayWithCapacity:self.collectionView.numberOfSections];\n    \n    for (NSInteger section = 0; section<self.collectionView.numberOfSections; section++) {\n        [itemsWidthArray addObject:[NSNumber numberWithFloat:[self itemWidthInSection:section]]];\n    }\n    self.itemsWidthArray = [itemsWidthArray copy];\n}\n//ItemsInnerMarginArray\n-(void)calculateItemsInnerMarginArray\n{\n    NSMutableArray *itemsInnerMarginArray = [NSMutableArray arrayWithCapacity:self.collectionView.numberOfSections];\n    for (NSInteger section = 0; section < self.columnsCountArray.count; section++) {\n        \n        NSInteger columnsCount = [self.columnsCountArray[section] integerValue];\n        \n        [itemsInnerMarginArray addObject:[NSNumber numberWithFloat:(self.collectionView.bounds.size.width -\n                                                                    columnsCount *[self.itemsWidthArray[section]floatValue])\n                                          /\n                                          (columnsCount + 1)]];\n        \n    }\n    self.itemInnerMarginArray = [itemsInnerMarginArray copy];\n}\n- (void) calculateSectionsHeights {\n    NSMutableArray *newSectionsHeights = [NSMutableArray array];\n    NSInteger sectionCount = [self.collectionView numberOfSections];\n    for (NSInteger section = 0; section < sectionCount; section++) {\n        [newSectionsHeights addObject:[self calculateHeightForSection:section]];\n    }\n    self.sectionsHeights = [NSArray arrayWithArray:newSectionsHeights];\n}\n//返回最高列的高度\n- (NSNumber*) calculateHeightForSection: (NSInteger)section {\n    NSInteger sectionColumns[[self.columnsCountArray[section] integerValue]];\n    //为每一列初始化高度。sectionHeight\n    NSIndexPath* indexPath = [NSIndexPath indexPathForItem:0 inSection:section];\n    for (NSInteger column = 0; column < [self.columnsCountArray[section] integerValue]; column++) {\n        CGFloat itemInnerMargin = [self.itemInnerMarginArray[section] floatValue];\n        sectionColumns[column] = [self headerHeightForIndexPath:indexPath]\n        + itemInnerMargin+[self.topInsetArray[section] floatValue] +[self.bottomInsetArray[section] floatValue]\n        +[self footerHeightForIndexPath:indexPath];\n    }\n    \n    NSInteger itemCount = [self.collectionView numberOfItemsInSection:section];\n    for (NSInteger item = 0; item < itemCount; item++) {\n        indexPath = [NSIndexPath indexPathForItem:item inSection:section];\n        \n        NSInteger currentColumn = 0;\n        for (NSInteger column = 0; column < [self.columnsCountArray[section] integerValue]; column++) {\n            if(sectionColumns[currentColumn] > sectionColumns[column]) {\n                currentColumn = column;\n            }\n        }\n        \n        sectionColumns[currentColumn] += [[[self.itemsInSectionsHeights objectAtIndex:section]\n                                           objectAtIndex:indexPath.item] floatValue];\n        sectionColumns[currentColumn] += [self.itemInnerMarginArray[section] floatValue];\n    }\n    \n    NSInteger biggestColumn = 0;\n    for (NSInteger column = 0; column < [self.columnsCountArray[section] integerValue]; column++) {\n        if(sectionColumns[biggestColumn] < sectionColumns[column]) {\n            biggestColumn = column;\n        }\n    }\n    \n    return [NSNumber numberWithFloat: sectionColumns[biggestColumn]];\n    \n}\n//预估每个单位的UICollectionViewLayoutAttributes\n- (void) calculateItemsAttributes {\n    NSMutableDictionary *newLayoutInfo = [NSMutableDictionary dictionary];\n    NSMutableDictionary *cellLayoutInfo = [NSMutableDictionary dictionary];\n    NSMutableDictionary *titleLayoutInfo = [NSMutableDictionary dictionary];\n    NSMutableDictionary *footertitleLayoutInfo = [NSMutableDictionary dictionary];\n    \n    NSIndexPath *indexPath = [NSIndexPath indexPathForItem:0 inSection:0];\n    //    UICollectionViewLayoutAttributes *emblemAttributes =\n    //    [UICollectionViewLayoutAttributes layoutAttributesForDecorationViewOfKind:SYStickHeaderWaterDecorationKind\n    //                                                                withIndexPath:indexPath];\n    //        emblemAttributes.frame = [self frameForWaterfallDecoration];\n    //    NSLog(@\"%@\",@([self.collectionView numberOfSections]));\n    for (NSInteger section = 0; section < [self.collectionView numberOfSections]; section++) {\n        for (NSInteger item = 0; item < [self.collectionView numberOfItemsInSection:section]; item++) {\n            indexPath = [NSIndexPath indexPathForItem:item inSection:section];\n            \n            UICollectionViewLayoutAttributes *itemAttributes = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:indexPath];\n            itemAttributes.frame = [self frameForWaterfallCellIndexPath:indexPath];\n            cellLayoutInfo[indexPath] = itemAttributes;\n            \n            //Only one header in section, so we get only item at 0 position? footer?\n            if (indexPath.item == 0) {\n                UICollectionViewLayoutAttributes *titleAttributes = [UICollectionViewLayoutAttributes\n                                                                     layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionHeader\n                                                                     withIndexPath:indexPath];\n                titleAttributes.frame = [self frameForWaterfallHeaderAtIndexPath:indexPath];\n                titleLayoutInfo[indexPath] = titleAttributes;\n                \n                UICollectionViewLayoutAttributes *footerTitleAttributes = [UICollectionViewLayoutAttributes layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionFooter withIndexPath:indexPath];\n                footerTitleAttributes.frame = [self frameForWaterfallFooterAtIndexPath:indexPath];\n                footertitleLayoutInfo[indexPath] = footerTitleAttributes;\n            }\n        }\n    }\n    \n    newLayoutInfo[SYStickHeaderWaterCellKind] = cellLayoutInfo;\n    newLayoutInfo[UICollectionElementKindSectionHeader] = titleLayoutInfo;\n    \n    newLayoutInfo[UICollectionElementKindSectionFooter] = footertitleLayoutInfo;\n    //    newLayoutInfo[SYStickHeaderWaterDecorationKind] = @{indexPath: emblemAttributes};\n    \n    self.layoutInfo = newLayoutInfo;\n    \n}\n\n#pragma mark - Items frames\n//每个item的frame\n- (CGRect)frameForWaterfallCellIndexPath:(NSIndexPath *)indexPath {\n    CGFloat width = [self.itemsWidthArray[indexPath.section] floatValue];\n    CGFloat height = [[[self.itemsInSectionsHeights objectAtIndex:indexPath.section]\n                       objectAtIndex:indexPath.item] floatValue];\n    \n    CGFloat topInset = [self.topInsetArray[indexPath.section] floatValue];\n    for (NSInteger section = 0; section < indexPath.section; section++) {\n        topInset += [[self.sectionsHeights objectAtIndex:section] integerValue];\n    }\n    \n    NSInteger columnsHeights[[self.columnsCountArray[indexPath.section] integerValue]];\n    for (NSInteger column = 0; column < [self.columnsCountArray[indexPath.section] integerValue]; column++) {\n        columnsHeights[column] = [self headerHeightForIndexPath:indexPath] + [self.itemInnerMarginArray[indexPath.section] floatValue];\n    }\n    \n    for (NSInteger item = 0; item < indexPath.item; item++) {\n        NSIndexPath *ip = [NSIndexPath indexPathForItem:item inSection:indexPath.section];\n        NSInteger currentColumn = 0;\n        for(NSInteger column = 0; column < [self.columnsCountArray[indexPath.section] integerValue]; column++) {\n            if(columnsHeights[currentColumn] > columnsHeights[column]) {\n                currentColumn = column;\n            }\n        }\n        \n        columnsHeights[currentColumn] += [[[self.itemsInSectionsHeights objectAtIndex:ip.section]\n                                           objectAtIndex:ip.item] floatValue];\n        columnsHeights[currentColumn] += [self.itemInnerMarginArray[indexPath.section] floatValue];\n    }\n    \n    NSInteger columnForCurrentItem = 0;\n    for (NSInteger column = 0; column < [self.columnsCountArray[indexPath.section] integerValue]; column++) {\n        if(columnsHeights[columnForCurrentItem] > columnsHeights[column]) {\n            columnForCurrentItem = column;\n        }\n    }\n    \n    CGFloat originX = [self.itemInnerMarginArray[indexPath.section] floatValue] +\n    columnForCurrentItem * [self.itemsWidthArray[indexPath.section] floatValue]+\n    columnForCurrentItem * [self.itemInnerMarginArray[indexPath.section] floatValue];\n    CGFloat originY =  columnsHeights[columnForCurrentItem] + topInset;\n    \n    return CGRectMake(originX, originY, width, height);\n}\n//headerView的frame\n- (CGRect)frameForWaterfallHeaderAtIndexPath:(NSIndexPath *)indexPath {\n    CGFloat width = self.collectionView.bounds.size.width;\n//    self.collectionView.bounds.size.width -\n//    [self.itemInnerMarginArray[indexPath.section] floatValue] * 2\n    CGFloat height = [self headerHeightForIndexPath:indexPath];\n    //before\n    //    CGFloat originY = self.topInset;\n    CGFloat originY = 0;\n    for (NSInteger i = 0; i < indexPath.section; i++) {\n        originY += [[self.sectionsHeights objectAtIndex:i] floatValue];\n    }\n    \n    CGFloat originX = 0;\n//    [self.itemInnerMarginArray[indexPath.section] floatValue]\n    return CGRectMake(originX, originY, width, height);\n}\n//footerView的frame\n- (CGRect)frameForWaterfallFooterAtIndexPath:(NSIndexPath *)indexPath {\n    CGFloat width = self.collectionView.bounds.size.width ;\n    CGFloat height = [self footerHeightForIndexPath:indexPath];\n    //before\n    //    CGFloat originY = self.topInset;\n    CGFloat originY = 0;\n    for (NSInteger i = 0; i < indexPath.section; i++) {\n        originY += [[self.sectionsHeights objectAtIndex:i] floatValue];\n    }\n    //加上当前section的高度（除footerView之外）\n    originY += [[self.sectionsHeights objectAtIndex:indexPath.section] floatValue]- height;\n    CGFloat originX = 0;\n    return CGRectMake(originX, originY, width, height);\n}\n//- (CGRect) frameForWaterfallDecoration {\n//    CGSize size = [FRGWaterfallDecorationReusableView defaultSize];\n//    CGFloat originX = floorf((self.collectionView.bounds.size.width - size.width) * 0.5f);\n//    CGFloat originY = -size.height - 30.0f;\n//    return CGRectMake(originX, originY, size.width, size.height);\n//}\n//headerView的height。通过代理返回，如果没有实现代理，返回0\n- (CGFloat) headerHeightForIndexPath:(NSIndexPath*)indexPath {\n    if ([self.delegate respondsToSelector:@selector(collectionView:layout:heightForHeaderAtIndexPath:)]) {\n        NSAssert(![[NSNumber numberWithFloat:[self.delegate collectionView:self.collectionView\n                                                                    layout:self\n                                                heightForHeaderAtIndexPath:indexPath]] isEqualToNumber:[NSDecimalNumber notANumber]] , @\"headerHeight must not be nan\");\n        return [self.delegate collectionView:self.collectionView\n                                      layout:self\n                  heightForHeaderAtIndexPath:indexPath];\n    }\n    \n    return 0.0f;\n}\n//footerView的height。通过代理返回，如果没有实现代理，返回0\n- (CGFloat) footerHeightForIndexPath:(NSIndexPath*)indexPath {\n    if ([self.delegate respondsToSelector:@selector(collectionView:layout:heightForFooterAtIndexPath:)]) {\n        NSAssert(![[NSNumber numberWithFloat:[self.delegate collectionView:self.collectionView\n                                                                    layout:self\n                                                heightForFooterAtIndexPath:indexPath]] isEqualToNumber:[NSDecimalNumber notANumber]] , @\"footerHeight must not be nan\");\n        return [self.delegate collectionView:self.collectionView\n                                      layout:self\n                  heightForFooterAtIndexPath:indexPath];\n    }\n    \n    return 0.0f;\n}\n//返回headerView（如果有）与cell之间的距离。通过代理返回，如果没有实现代理，返回0\n- (CGFloat) topInSection:(NSInteger )section\n{\n    if ([self.delegate respondsToSelector:@selector(collectionView:layout:topInSection:)]) {\n        \n        NSAssert(![[NSNumber numberWithFloat:[self.delegate collectionView:self.collectionView\n                                                                    layout:self\n                                                              topInSection:section]] isEqualToNumber:[NSDecimalNumber notANumber]] , @\"topInSection must not be nan\");\n        return [self.delegate collectionView:self.collectionView\n                                      layout:self\n                                topInSection:section];\n    }\n    return 0.0f;\n}\n//返回cell与下一个section的headerView（如果有）之间的距离。通过代理返回，如果没有实现代理，返回0\n-(CGFloat) bottomInSection:(NSInteger)section\n{\n    if ([self.delegate respondsToSelector:@selector(collectionView:layout:bottomInSection:)]) {\n        NSAssert(![[NSNumber numberWithFloat:[self.delegate collectionView:self.collectionView\n                                                                    layout:self\n                                                           bottomInSection:section]] isEqualToNumber:[NSDecimalNumber notANumber]] , @\"bottomInSection must not be nan\");\n        return [self.delegate collectionView:self.collectionView\n                                      layout:self\n                             bottomInSection:section];\n    }\n    return 0.0f;\n}\n//每个section里的item的width,默认返回屏幕的宽度\n-(CGFloat) itemWidthInSection :(NSInteger)section\n{\n    if ([self.delegate respondsToSelector:@selector(collectionView:layout:widthForItemInSection:)]) {\n        NSAssert(![[NSNumber numberWithFloat:[self.delegate collectionView:self.collectionView layout:self widthForItemInSection:section]] isEqualToNumber:[NSDecimalNumber notANumber]] , @\"widthForItemInSection must not be nan\");\n        return [self.delegate collectionView:self.collectionView layout:self widthForItemInSection:section];\n    }\n    return self.collectionView.bounds.size.width;\n}\n/**\n *返回所在section的header停留时与顶部的距离（如果设置isTopForHeader ＝ yes ，则距离会叠加），默认返回0\n *\n */\n-(CGFloat)headerToTopInSection:(NSInteger)section\n{\n    if ([self.delegate respondsToSelector:@selector(collectionView:layout:headerToTopInSection:)]) {\n        \n        NSAssert(![[NSNumber numberWithFloat:[self.delegate collectionView:self.collectionView layout:self headerToTopInSection:section]] isEqualToNumber:[NSDecimalNumber notANumber]] , @\"headerToTopInSection must not be nan\");\n        return [self.delegate collectionView:self.collectionView layout:self headerToTopInSection:section];\n    }\n    return 0.0f;\n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HPCollectionViewCell.h",
    "content": "//\n//  HPCollectionViewCell.h\n//  mokoo\n//\n//  Created by Mac on 15/9/20.\n//  Copyright (c) 2015年 Mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"HomeModel.h\"\n\n\n@interface HPCollectionViewCell : UICollectionViewCell\n@property(nonatomic,retain)HomeModel * shop;\n@property (weak, nonatomic) IBOutlet UIImageView *shopImage;\n@property (weak, nonatomic) IBOutlet UILabel *shopName;\n@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;\n@property (weak, nonatomic) IBOutlet UIImageView *vImageView;\n@property (weak, nonatomic) IBOutlet UILabel *nameLabel;\n@property (weak, nonatomic) IBOutlet UIImageView *locationImageView;\n@property (weak, nonatomic) IBOutlet UILabel *locationLabel;\n@property (weak, nonatomic) IBOutlet UIImageView *markImageView;\n@property (weak, nonatomic) IBOutlet NSLayoutConstraint *nameLabelWidthConstraint;\n@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leadingNameLableConstraint;\n\n@property (weak, nonatomic) IBOutlet NSLayoutConstraint *nameLabelConstraint;\n@property (weak, nonatomic) IBOutlet NSLayoutConstraint *locationNameConstraint;\n@property (weak, nonatomic) IBOutlet NSLayoutConstraint *locationIconConstraint;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HPCollectionViewCell.m",
    "content": "//\n//  HPCollectionViewCell.m\n//  mokoo\n//\n//  Created by Mac on 15/9/20.\n//  Copyright (c) 2015年 Mac. All rights reserved.\n//\n#define kDeviceWidth  [UIScreen mainScreen].bounds.size.width\n#define kDeviceHeight [UIScreen mainScreen].bounds.size.height\n#import \"HPCollectionViewCell.h\"\n#import \"UIImageView+WebCache.h\"\n//#import \"UIImage+ImageBlur.h\"\n//#import \"MokooMacro.h\"\n@implementation HPCollectionViewCell\n\n- (void)awakeFromNib {\n    // Initialization code\n    [super awakeFromNib];\n}\n-(void)setShop:(HomeModel *)shop\n{\n    _nameLabelWidthConstraint.constant = kDeviceWidth/2 -50 -38 -7.5;\n    _leadingNameLableConstraint.constant = -(kDeviceWidth/2 -50 -38 -7.5) -38;\n    _nameLabelConstraint.constant = -8;\n    _locationIconConstraint.constant = -27;\n    _locationNameConstraint.constant = -32;\n    _shop = shop;\n    self.vImageView.hidden = YES;\n    [self.shopImage sd_setImageWithURL:[NSURL URLWithString:_shop.model_img] placeholderImage:[UIImage imageNamed:@\"pic_loading.pdf\"]];\n    //    [self insertColorGradientByUIImageView:self.shopImage];\n    self.avatarImageView.layer.cornerRadius = self.avatarImageView.frame.size.width/2;\n    self.avatarImageView.layer.masksToBounds = YES;\n    self.avatarImageView.contentMode =UIViewContentModeScaleAspectFill;\n    self.shopName.text = _shop.city;\n    [self.avatarImageView sd_setImageWithURL:[NSURL URLWithString:_shop.user_img] placeholderImage:[UIImage imageNamed:@\"head.pdf\"]];\n    [self.shopImage addSubview:self.avatarImageView];\n    if ([_shop.is_verify isEqualToString:@\"1\"]) {\n        self.vImageView.hidden = NO;\n\n    }\n    [self.shopImage addSubview:self.vImageView];\n    [self.nameLabel setText:_shop.nick_name];\n    [self.shopImage addSubview:self.nameLabel];\n    [self.shopImage addSubview:self.locationImageView];\n    [self.locationLabel setText:_shop.city];\n    [self.shopImage addSubview:self.locationLabel];\n    \n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HPCollectionViewCell.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"3.0\" toolsVersion=\"9531\" systemVersion=\"15D21\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"9529\"/>\n    </dependencies>\n    <objects>\n        <placeholder placeholderIdentifier=\"IBFilesOwner\" id=\"-1\" userLabel=\"File's Owner\"/>\n        <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"-2\" customClass=\"UIResponder\"/>\n        <collectionViewCell opaque=\"NO\" clipsSubviews=\"YES\" multipleTouchEnabled=\"YES\" contentMode=\"center\" id=\"gTV-IL-0wX\" customClass=\"HPCollectionViewCell\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"160\" height=\"138\"/>\n            <autoresizingMask key=\"autoresizingMask\"/>\n            <view key=\"contentView\" opaque=\"NO\" clipsSubviews=\"YES\" multipleTouchEnabled=\"YES\" contentMode=\"center\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"160\" height=\"138\"/>\n                <subviews>\n                    <imageView userInteractionEnabled=\"NO\" contentMode=\"scaleToFill\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Rh1-wU-gri\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"160\" height=\"138\"/>\n                    </imageView>\n                    <imageView userInteractionEnabled=\"NO\" contentMode=\"scaleToFill\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" image=\"home_mark\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"HwQ-dD-TQa\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"98\" width=\"160\" height=\"40\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"height\" constant=\"40\" id=\"Ivm-eT-ahs\"/>\n                        </constraints>\n                    </imageView>\n                    <imageView userInteractionEnabled=\"NO\" contentMode=\"scaleToFill\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" image=\"home_head\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"PO1-GJ-EBA\">\n                        <rect key=\"frame\" x=\"6\" y=\"109\" width=\"24\" height=\"24\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"width\" constant=\"24\" id=\"4GK-xr-Tno\"/>\n                            <constraint firstAttribute=\"width\" constant=\"24\" id=\"b9P-5V-DKp\"/>\n                            <constraint firstAttribute=\"height\" constant=\"24\" id=\"rIG-Cw-VmJ\"/>\n                            <constraint firstAttribute=\"height\" constant=\"24\" id=\"sw5-il-6yv\"/>\n                        </constraints>\n                        <variation key=\"default\">\n                            <mask key=\"constraints\">\n                                <exclude reference=\"b9P-5V-DKp\"/>\n                                <exclude reference=\"rIG-Cw-VmJ\"/>\n                            </mask>\n                        </variation>\n                    </imageView>\n                    <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"北京\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"wLJ-bE-S3S\">\n                        <rect key=\"frame\" x=\"127\" y=\"104\" width=\"25\" height=\"21\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"height\" constant=\"21\" id=\"Fhc-jv-5Lv\"/>\n                            <constraint firstAttribute=\"width\" constant=\"25\" id=\"JcO-H3-dby\"/>\n                            <constraint firstAttribute=\"height\" constant=\"21\" id=\"YGR-fT-4Ll\"/>\n                            <constraint firstAttribute=\"width\" constant=\"25\" id=\"fw5-vg-ZJ7\"/>\n                        </constraints>\n                        <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"12\"/>\n                        <color key=\"textColor\" white=\"1\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                        <nil key=\"highlightedColor\"/>\n                        <variation key=\"default\">\n                            <mask key=\"constraints\">\n                                <exclude reference=\"Fhc-jv-5Lv\"/>\n                                <exclude reference=\"JcO-H3-dby\"/>\n                            </mask>\n                        </variation>\n                    </label>\n                    <imageView userInteractionEnabled=\"NO\" contentMode=\"scaleToFill\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" image=\"v\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5Gb-CT-zpv\">\n                        <rect key=\"frame\" x=\"24\" y=\"122\" width=\"12\" height=\"12\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"width\" constant=\"12\" id=\"0Rn-jm-2pc\"/>\n                            <constraint firstAttribute=\"height\" constant=\"12\" id=\"5hP-6P-ssh\"/>\n                            <constraint firstAttribute=\"height\" constant=\"12\" id=\"JcV-HB-xdq\"/>\n                            <constraint firstAttribute=\"width\" constant=\"12\" id=\"ieG-Fj-YgG\"/>\n                        </constraints>\n                        <variation key=\"default\">\n                            <mask key=\"constraints\">\n                                <exclude reference=\"5hP-6P-ssh\"/>\n                                <exclude reference=\"ieG-Fj-YgG\"/>\n                            </mask>\n                        </variation>\n                    </imageView>\n                    <imageView userInteractionEnabled=\"NO\" contentMode=\"scaleToFill\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" image=\"location\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"qXm-uq-sP4\">\n                        <rect key=\"frame\" x=\"118\" y=\"110\" width=\"8\" height=\"11\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"height\" constant=\"11\" id=\"N3G-dG-IZt\"/>\n                            <constraint firstAttribute=\"height\" constant=\"11\" id=\"dZJ-nT-nBf\"/>\n                            <constraint firstAttribute=\"width\" constant=\"7\" id=\"hFx-ec-GRP\"/>\n                            <constraint firstAttribute=\"width\" constant=\"8\" id=\"wtQ-aw-d79\"/>\n                        </constraints>\n                        <variation key=\"default\">\n                            <mask key=\"constraints\">\n                                <exclude reference=\"dZJ-nT-nBf\"/>\n                                <exclude reference=\"hFx-ec-GRP\"/>\n                            </mask>\n                        </variation>\n                    </imageView>\n                    <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"Anna\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"CRD-w4-L58\">\n                        <rect key=\"frame\" x=\"38\" y=\"104\" width=\"62\" height=\"21\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"width\" constant=\"62\" id=\"8b5-Qw-g9L\"/>\n                            <constraint firstAttribute=\"height\" constant=\"21\" id=\"Xzg-kK-97f\"/>\n                        </constraints>\n                        <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"14\"/>\n                        <color key=\"textColor\" white=\"1\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                        <nil key=\"highlightedColor\"/>\n                    </label>\n                </subviews>\n                <color key=\"backgroundColor\" white=\"0.0\" alpha=\"0.0\" colorSpace=\"calibratedWhite\"/>\n            </view>\n            <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n            <constraints>\n                <constraint firstItem=\"HwQ-dD-TQa\" firstAttribute=\"trailing\" secondItem=\"qXm-uq-sP4\" secondAttribute=\"trailing\" constant=\"34\" id=\"1j9-Gs-4Sj\"/>\n                <constraint firstItem=\"HwQ-dD-TQa\" firstAttribute=\"leading\" secondItem=\"5Gb-CT-zpv\" secondAttribute=\"trailing\" constant=\"-36\" id=\"3d6-1m-ODW\"/>\n                <constraint firstItem=\"Rh1-wU-gri\" firstAttribute=\"bottom\" secondItem=\"HwQ-dD-TQa\" secondAttribute=\"bottom\" id=\"FW7-2B-ccz\"/>\n                <constraint firstItem=\"HwQ-dD-TQa\" firstAttribute=\"bottom\" secondItem=\"5Gb-CT-zpv\" secondAttribute=\"bottom\" constant=\"4\" id=\"I73-3X-3y3\"/>\n                <constraint firstItem=\"Rh1-wU-gri\" firstAttribute=\"trailing\" secondItem=\"HwQ-dD-TQa\" secondAttribute=\"trailing\" id=\"J1i-o7-KhI\"/>\n                <constraint firstItem=\"HwQ-dD-TQa\" firstAttribute=\"top\" secondItem=\"qXm-uq-sP4\" secondAttribute=\"bottom\" constant=\"-23\" id=\"LYA-QG-2Q4\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"Rh1-wU-gri\" secondAttribute=\"bottom\" id=\"Lfd-3H-kCc\"/>\n                <constraint firstItem=\"Rh1-wU-gri\" firstAttribute=\"leading\" secondItem=\"gTV-IL-0wX\" secondAttribute=\"leading\" id=\"RsQ-S3-jAV\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"Rh1-wU-gri\" secondAttribute=\"trailing\" id=\"S1x-Pc-7eb\"/>\n                <constraint firstItem=\"HwQ-dD-TQa\" firstAttribute=\"leading\" secondItem=\"CRD-w4-L58\" secondAttribute=\"trailing\" constant=\"-100\" id=\"Vhw-Tt-QeZ\"/>\n                <constraint firstItem=\"PO1-GJ-EBA\" firstAttribute=\"top\" secondItem=\"HwQ-dD-TQa\" secondAttribute=\"bottom\" constant=\"-29\" id=\"XjK-Fa-pP0\"/>\n                <constraint firstItem=\"HwQ-dD-TQa\" firstAttribute=\"top\" secondItem=\"wLJ-bE-S3S\" secondAttribute=\"bottom\" constant=\"-27\" id=\"YX7-AE-0Eg\"/>\n                <constraint firstItem=\"CRD-w4-L58\" firstAttribute=\"bottom\" secondItem=\"HwQ-dD-TQa\" secondAttribute=\"bottom\" constant=\"-13\" id=\"amJ-Bw-8Tr\"/>\n                <constraint firstItem=\"wLJ-bE-S3S\" firstAttribute=\"leading\" secondItem=\"HwQ-dD-TQa\" secondAttribute=\"trailing\" constant=\"-33\" id=\"l63-ob-cFE\"/>\n                <constraint firstItem=\"Rh1-wU-gri\" firstAttribute=\"top\" secondItem=\"gTV-IL-0wX\" secondAttribute=\"top\" id=\"lnI-Zs-Pwc\"/>\n                <constraint firstItem=\"Rh1-wU-gri\" firstAttribute=\"leading\" secondItem=\"HwQ-dD-TQa\" secondAttribute=\"leading\" id=\"tll-CN-K2H\"/>\n                <constraint firstItem=\"HwQ-dD-TQa\" firstAttribute=\"leading\" secondItem=\"PO1-GJ-EBA\" secondAttribute=\"leading\" constant=\"-6\" id=\"yV4-FP-yaV\"/>\n            </constraints>\n            <size key=\"customSize\" width=\"113\" height=\"50\"/>\n            <connections>\n                <outlet property=\"avatarImageView\" destination=\"PO1-GJ-EBA\" id=\"5cI-6i-N3C\"/>\n                <outlet property=\"leadingNameLableConstraint\" destination=\"Vhw-Tt-QeZ\" id=\"6TV-nf-Lgn\"/>\n                <outlet property=\"locationIconConstraint\" destination=\"LYA-QG-2Q4\" id=\"E7E-qh-Ee7\"/>\n                <outlet property=\"locationImageView\" destination=\"qXm-uq-sP4\" id=\"EfF-Nz-aos\"/>\n                <outlet property=\"locationLabel\" destination=\"wLJ-bE-S3S\" id=\"tlO-bZ-fff\"/>\n                <outlet property=\"locationNameConstraint\" destination=\"YX7-AE-0Eg\" id=\"U8I-Hl-cF0\"/>\n                <outlet property=\"markImageView\" destination=\"HwQ-dD-TQa\" id=\"VUc-kR-0Le\"/>\n                <outlet property=\"nameLabel\" destination=\"CRD-w4-L58\" id=\"46c-ki-LYN\"/>\n                <outlet property=\"nameLabelConstraint\" destination=\"amJ-Bw-8Tr\" id=\"5iG-4L-21k\"/>\n                <outlet property=\"nameLabelWidthConstraint\" destination=\"8b5-Qw-g9L\" id=\"wM8-X7-4gl\"/>\n                <outlet property=\"shopImage\" destination=\"Rh1-wU-gri\" id=\"RLI-Xn-O6d\"/>\n                <outlet property=\"vImageView\" destination=\"5Gb-CT-zpv\" id=\"C8M-rK-fTq\"/>\n            </connections>\n            <point key=\"canvasLocation\" x=\"206\" y=\"262\"/>\n        </collectionViewCell>\n    </objects>\n    <resources>\n        <image name=\"home_head\" width=\"50\" height=\"50\"/>\n        <image name=\"home_mark\" width=\"302\" height=\"70\"/>\n        <image name=\"location\" width=\"7\" height=\"10\"/>\n        <image name=\"v\" width=\"14\" height=\"14\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomeData.json",
    "content": "{\r\n    \"data\": [\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/3b89133d4ca52396a9f1/B2q2TT5T_zLMBMZdW2/59oG_GOGWyfGtG/Csq5ZVkARMOANuxXAAAZIGT69cQ974.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/3b89133d4ca52396a9f1/B2q2TT5T_zLMBMZdW2/59oG_GOGWyfGtG/Csq5ZVkARMOANuxXAAAZIGT69cQ974.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"400\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/3b89133d4ca52396a9f1/B2q2TT5T_zLMBMZdW2/59oG_GOGWyfGtG/Csq5ZVkARMOANuxXAAAZIGT69cQ974.png\",\r\n             \"width\": \"100\",\r\n             \"height\": \"200\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"100\",\r\n             \"height\": \"150\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"600\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"150\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"400\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"360\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             },\r\n             {\r\n             \"user_id\": \"899333\",\r\n             \"user_name\": \"timi\",\r\n             \"nick_name\": \"coco\",\r\n             \"user_img\": \"\",\r\n             \"model_id\": \"89\",\r\n             \"model_img\": \"http://img.beta1.fn/pic/bca6133d4ca823997f78/Bnq2zz72_2fMKdudW2/7imR3GjRpyfata/Csq5ZVkARQeAeaPbAAAZIGT69cQ790.png\",\r\n             \"width\": \"200\",\r\n             \"height\": \"300\",\r\n             \"city\": \"上海\",\r\n             \"is_verify\": \"是否实名认证\"\r\n             }\r\n             ],\r\n    \"status\":\"1\"\r\n}\r\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomeFooterCollectionReusableView.h",
    "content": "//\n//  HomeFooterCollectionReusableView.h\n//  SYStickHeaderWaterFall\n//\n//  Created by 张苏亚 on 16/4/30.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HomeFooterCollectionReusableView : UICollectionReusableView\n@property (nonatomic,strong)UIView *footerView;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomeFooterCollectionReusableView.m",
    "content": "//\n//  HomeFooterCollectionReusableView.m\n//  SYStickHeaderWaterFall\n//\n//  Created by 张苏亚 on 16/4/30.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n#define kDeviceWidth  [UIScreen mainScreen].bounds.size.width\n#define kDeviceHeight [UIScreen mainScreen].bounds.size.height\n#import \"HomeFooterCollectionReusableView.h\"\n\n@implementation HomeFooterCollectionReusableView\n-(instancetype)initWithFrame:(CGRect)frame\n{\n    if (self = [super initWithFrame:frame]) {\n        self.footerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 50)];\n        [self addSubview:self.footerView];\n    }\n    return self;\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomeModel.h",
    "content": "//\n//  shopModel.h\n//  瀑布流demo\n//\n//  Created by yuxin on 15/6/6.\n//  Copyright (c) 2015年 yuxin. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n@interface HomeModel : NSObject\n@property (nonatomic,copy)NSString *user_id;\n@property (nonatomic,copy)NSString *user_name;\n@property (nonatomic,copy)NSString *nick_name;\n@property (nonatomic,copy)NSString *user_img;\n@property (nonatomic,copy)NSString *card_id;\n@property (nonatomic,copy)NSString *model_img;\n@property (nonatomic,assign)CGFloat width;\n@property (nonatomic,assign)CGFloat height;\n@property (nonatomic,copy)NSString *city;\n@property (nonatomic,copy)NSString *is_verify;\n+(instancetype)initHomeModelWithDict:(NSDictionary *)dict;\n\n//\"user_id\":\"用户ID\",\n//\"user_name\":\"用户名\",\n//\"nick_name\":\"用户昵称\",\n//\"user_img\":\"用户头像\",\n//\"model_id\":\"模特卡ID\",\n//\"model_img\":\"图片链接\",\n//\"width\":\"图片宽度\",\n//\"height\":\"图片高度\",\n//\"city\":\"城市\",\n//\"is_verify\":\"是否实名认证\",  0.否   1.是\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomeModel.m",
    "content": "//\n//  shopModel.m\n//  \n//\n//  Created by sy on 15/6/6.\n//  Copyright (c) 2015年 sy. All rights reserved.\n//\n\n#import \"HomeModel.h\"\n#import <MJExtension.h>\n\n@implementation HomeModel\n+(instancetype)initHomeModelWithDict:(NSDictionary *)dict\n{\n    HomeModel *model = [[self alloc]init];\n    [model mj_setKeyValues:dict];\n    return model;\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomePageHeadView.h",
    "content": "//\n//  HomePageHeadView.h\n//  mokoo\n//\n//  Created by Mac on 15/8/24.\n//  Copyright (c) 2015年 Mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HomePageHeadView : UICollectionReusableView\n@property (nonatomic,strong)UIButton *styleBtn;\n@property (nonatomic,strong)UIButton *typeBtn;\n@property (nonatomic,strong)UIButton *moreBtn;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomePageHeadView.m",
    "content": "//\n//  HomePageHeadView.m\n//  mokoo\n//\n//  Created by Mac on 15/8/24.\n//  Copyright (c) 2015年 Mac. All rights reserved.\n//\n#define kDeviceWidth  [UIScreen mainScreen].bounds.size.width\n#define kDeviceHeight [UIScreen mainScreen].bounds.size.height\n#import \"HomePageHeadView.h\"\n@implementation HomePageHeadView\n\n-(id)initWithFrame:(CGRect)frame\n{\n    self = [super initWithFrame:frame];\n    if (self) {\n        UIView *styleView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kDeviceWidth/3, 38)];\n        [self addSubview:styleView];\n        UIView *typeView = [[UIView alloc]initWithFrame:CGRectMake(kDeviceWidth/3, 0, kDeviceWidth/3, 38)];\n        [self addSubview:typeView];\n        UIView *moreView = [[UIView alloc]initWithFrame:CGRectMake(2*kDeviceWidth/3, 0, kDeviceWidth/3, 38)];\n        [self addSubview:moreView];\n        _styleBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, kDeviceWidth/4, 38)];\n        _styleBtn.center = CGPointMake(kDeviceWidth/6, 38/2);\n        [_styleBtn setTitle:@\"风格\" forState:UIControlStateNormal];\n        [_styleBtn.titleLabel setFont:[UIFont systemFontOfSize:14]];\n        [_styleBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];\n        UIImageView *styleImageView = [[UIImageView alloc]initWithFrame:CGRectMake(kDeviceWidth/8 +35, 17, 9, 5)];\n        styleImageView.image = [UIImage imageNamed:@\"home_re_arrow_down.pdf\"];\n        [_styleBtn addSubview:styleImageView];\n//        [_styleBtn setImage:[UIImage imageNamed:@\"home_re_arrow_down.pdf\"] forState:UIControlStateNormal];\n        CALayer *lineLayer = [[CALayer alloc]init];\n        lineLayer.backgroundColor = [[UIColor blackColor] CGColor];\n        lineLayer.frame = CGRectMake(kDeviceWidth/3-1, 10, 1, 18);\n        CALayer *typeLineLayer = [[CALayer alloc]init];\n        typeLineLayer.backgroundColor = [[UIColor blackColor] CGColor];\n        typeLineLayer.frame = CGRectMake(kDeviceWidth/3-1, 10, 1, 18);\n\n        CALayer *moreLineLayer = [[CALayer alloc]init];\n        moreLineLayer.backgroundColor = [[UIColor blackColor] CGColor];\n        moreLineLayer.frame = CGRectMake(kDeviceWidth/3-1, 10, 1, 18);\n\n        [styleView.layer addSublayer:lineLayer];\n//        [_styleBtn setTitleEdgeInsets:UIEdgeInsetsMake(0, -9, 0, 9)];\n//        [_styleBtn setImageEdgeInsets:UIEdgeInsetsMake(0, _styleBtn.titleLabel.bounds.size.width, 0, -_styleBtn.titleLabel.bounds.size.width)];\n\n        _typeBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, kDeviceWidth/4, 38)];\n        _typeBtn.center = CGPointMake(kDeviceWidth/6, 38/2);\n        [_typeBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];\n        [_typeBtn setTitle:@\"类型\" forState:UIControlStateNormal];\n        [_typeBtn.titleLabel setFont:[UIFont systemFontOfSize:14]];\n        UIImageView *typeImageView = [[UIImageView alloc]initWithFrame:CGRectMake(kDeviceWidth/8 +35, 16, 9, 5)];\n        typeImageView.image = [UIImage imageNamed:@\"home_re_arrow_down.pdf\"];\n//        [_typeBtn setImage:[UIImage imageNamed:@\"home_re_arrow_down.pdf\"] forState:UIControlStateNormal];\n        [_typeBtn addSubview:typeImageView];\n        [typeView.layer addSublayer:typeLineLayer];\n        [typeView addSubview:_typeBtn];\n        _moreBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, kDeviceWidth/4, 38)];\n        _moreBtn.center = CGPointMake(kDeviceWidth/6 +13, 38/2);\n        [_moreBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];\n        [_moreBtn setTitle:@\"筛选\" forState:UIControlStateNormal];\n        [_moreBtn.titleLabel setFont:[UIFont systemFontOfSize:14]];\n//        UIImageView *moreImageView = [[UIImageView alloc]initWithFrame:CGRectMake(kDeviceWidth/8 +25, 16, 9, 5)];\n//        moreImageView.image = [UIImage imageNamed:@\"home_re_arrow_down.pdf\"];\n//        [_moreBtn addSubview:moreImageView];\n        UIImageView *moreImageView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 11, 16, 16)];\n        moreImageView.image = [UIImage imageNamed:@\"home_refine.pdf\"];\n        [_moreBtn addSubview:moreImageView];\n//        [_moreBtn setImage:[UIImage imageNamed:@\"home_refine.pdf\"] forState:UIControlStateNormal];\n        [moreView.layer addSublayer:moreLineLayer];\n        [moreView addSubview:_moreBtn];\n        [styleView addSubview:_styleBtn];\n        CALayer *lineBoLayer = [[CALayer alloc]init];\n        lineBoLayer.frame = CGRectMake(0, 37.5f, kDeviceWidth, 0.5f);\n        lineBoLayer.backgroundColor = [[UIColor blackColor] CGColor];\n        [self.layer addSublayer:lineBoLayer];\n        self.backgroundColor = [UIColor whiteColor];\n    }\n    return self;\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomeThreeViewController.h",
    "content": "//\n//  HomeThreeViewController.h\n//  mokoo\n//\n//  Created by Mac on 15/12/14.\n//  Copyright © 2015年 Mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n/**\n *  HomeThreeViewControllerDelegate for SlidingMenuViewController, show menu\n */\n@protocol HomeThreeViewControllerDelegate <NSObject>\n@optional\n- (void)leftBtnClicked;\n\n@end\n/**\n *  HomeThreeViewController use one collectionview to implement cover flow  and sticky head\n */\n@interface HomeThreeViewController : UIViewController\n@property (strong, nonatomic) UIButton *leftBtn;\n@property (nonatomic,strong) UIImageView *titleImageView;\n//@property (nonatomic, strong) NSArray *scrollADImageURLStringsArray;\n@property (nonatomic,weak) id<HomeThreeViewControllerDelegate>delegate;\n@property (nonatomic,strong)UIButton *goToTopBtn;\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/HomeThreeViewController.m",
    "content": "//\n//  HomeThreeViewController.m\n//  mokoo\n//\n//  Created by Mac on 15/12/14.\n//  Copyright © 2015年 Mac. All rights reserved.\n//\n\n#import \"HomeThreeViewController.h\"\n#import \"Classes/SYStickHeaderWaterFallLayout.h\"\n#import \"HomeModel.h\"\n#import \"MJExtension.h\"\n#import \"SDCycleScrollView.h\"\n#import \"HomePageHeadView.h\"\n#import \"MJRefresh.h\"\n//#import \"RequestCustom.h\"\n#import \"BannerModel.h\"\n#import \"MBProgressHUD.h\"\n#import \"HPCollectionViewCell.h\"\n#import \"UIView+SDExtension.h\"\n#import \"SYSHomeRequest.h\"\n#import \"SYSHomeBannerRequest.h\"\n#import \"SYSMAINMacro.h\"\n\n@interface HomeThreeViewController ()< UICollectionViewDataSource,UICollectionViewDelegate,UIScrollViewDelegate,SDCycleScrollViewDelegate,SYStickHeaderWaterFallDelegate>\n{\n    NSInteger showPage;\n    HomePageHeadView *headView;\n    UICollectionReusableView *reusableView;\n}\n@property (nonatomic,strong)UIScrollView *baseScrollView;\n@property (nonatomic,strong )SDCycleScrollView *cycleScrollADView;\n@property(nonatomic,strong)UICollectionView * collectView;\n@property(nonatomic,strong)NSMutableArray * shops;\n@property (nonatomic,strong)NSMutableArray *banners;\n@property (nonatomic,strong)NSMutableDictionary *optionalParam;\n@end\n#define kFileName @\"homePage.plist\"\n@implementation HomeThreeViewController\n@synthesize goToTopBtn =  _goToTopBtn;\n\n-(NSMutableArray *)banners\n{\n    if (_banners ==nil) {\n        self.banners = [NSMutableArray array];\n    }\n    return _banners;\n}\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    if (_shops==nil) {\n        self.shops = [NSMutableArray array];\n    }\n    if (_optionalParam ==nil) {\n        self.optionalParam = [[NSMutableDictionary alloc]init];\n    }\n    // Do any additional setup after loading the view.\n    [self initCollectionView];\n    [self initNavigationItem];\n    [self initRefresh];\n    [self initData];\n    //    [self.collectView.header beginRefreshing];\n    //    [self requestHomePageList:@\"1\" refreshType:@\"header\"];\n    \n}\n-(void)initCollectionView\n{\n    SYStickHeaderWaterFallLayout *cvLayout = [[SYStickHeaderWaterFallLayout alloc] init];\n    cvLayout.delegate = self;\n    //    cvLayout.itemWidth = (kDeviceWidth-15)/2;\n    //    cvLayout.topInset = 0.0f;\n    //    cvLayout.bottomInset = 0.0f;\n    cvLayout.isStickyHeader = YES;\n    \n    \n    self.collectView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, kDeviceHeight ) collectionViewLayout:cvLayout];\n    \n    //    self.collectView.delegate = self;\n    //    self.collectView.dataSource = self;\n    self.collectView.backgroundColor = [UIColor whiteColor];\n    [self.view addSubview:self.collectView];\n    [self.view insertSubview:self.goToTopBtn aboveSubview:self.collectView];\n    \n    [self.collectView registerNib:[UINib nibWithNibName:@\"HPCollectionViewCell\" bundle:nil] forCellWithReuseIdentifier:WaterfallCellIdentifier];\n    \n    [self.collectView registerClass:[HomePageHeadView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier];\n    [self.collectView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@\"cell\"];\n    [self.collectView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@\"head\"];\n    \n    self.collectView.footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{\n        // 进入刷新状态后会自动调用这个block\n        showPage += 1;\n        NSString *page = [NSString stringWithFormat:@\"%ld\",(long)showPage];\n        [self requestHomePageList:page refreshType:@\"footer\"];\n    }];\n}\n-(void)initNavigationItem\n{\n    //    self.edgesForExtendedLayout = UIRectEdgeNone;\n    self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n    self.leftBtn.frame = CGRectMake(16, 16, 14, 13);\n    [self.leftBtn addTarget:self action:@selector(clicked) forControlEvents:UIControlEventTouchUpInside];\n    [self.leftBtn setImage:[UIImage imageNamed:@\"top_sidebar.pdf\"]  forState:UIControlStateNormal];\n    //    [self.leftBtn setEnlargeEdgeWithTop:10 right:20 bottom:10 left:20];\n    UIBarButtonItem *barLeftBtn = [[UIBarButtonItem alloc]initWithCustomView:self.leftBtn];\n    UIImageView *titleImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 34, 20)];\n    titleImageView.image = [UIImage imageNamed:@\"home_logo.pdf\"];\n    _titleImageView = titleImageView;\n    self.navigationItem.titleView = _titleImageView;\n    [self.navigationItem setLeftBarButtonItem:barLeftBtn];\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n\n/*\n #pragma mark - Navigation\n \n // In a storyboard-based application, you will often want to do a little preparation before navigation\n - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {\n // Get the new view controller using [segue destinationViewController].\n // Pass the selected object to the new view controller.\n }\n */\n- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView\n{\n    [collectionView.collectionViewLayout invalidateLayout];\n    return 2;\n}\n- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section\n{\n    NSInteger itemCount;\n    if (section ==1) {\n        if (self.shops.count ==0) {\n            itemCount = 1;\n        }else\n        {\n            itemCount = self.shops.count;\n        }\n        \n        \n    }\n    else\n    {\n        itemCount = 1;\n    }\n    return itemCount;\n}\n\n- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath\n{\n    reusableView = nil;\n    if ([kind isEqual:UICollectionElementKindSectionHeader]&&indexPath.section ==1) {\n        headView= (HomePageHeadView *)[collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier forIndexPath:indexPath];\n        //            headView = [[HomePageHeadView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 30)];\n        headView.tag = 1001;\n        [headView.styleBtn addTarget:self action:@selector(styleBtnClicked:) forControlEvents:UIControlEventTouchUpInside];\n        [headView.typeBtn addTarget:self action:@selector(typeBtnClicked:) forControlEvents:UIControlEventTouchUpInside];\n        [headView.moreBtn addTarget:self action:@selector(moreBtnClicked:) forControlEvents:UIControlEventTouchUpInside];\n        reusableView = headView;\n        return reusableView;\n    }else if ([kind isEqual:UICollectionElementKindSectionHeader]&&indexPath.section ==0)\n    {\n        //这一段代码可以想办法去掉\n        reusableView =[collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@\"head\" forIndexPath:indexPath];\n        reusableView.frame = CGRectMake(0, 0, 0, 0);\n        reusableView.hidden = YES;\n        return reusableView;\n    }\n    \n    return nil;\n    \n}\n- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    if (indexPath.section ==1) {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shops[indexPath.item];\n        UITapGestureRecognizer *personalGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(imageGesture:)];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        [cell.markImageView addGestureRecognizer:personalGesture];\n        return cell;\n        \n    }else if (indexPath.section ==0)\n    {\n        SDCycleScrollView *cycleView = [[SDCycleScrollView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 180)];\n        cycleView.autoScroll = true;\n        cycleView.autoScrollTimeInterval = 4.0;\n        cycleView.delegate = self;\n        cycleView.pageControlAliment = SDCycleScrollViewPageContolAlimentRight;\n        SYSHomeBannerRequest *bannerRequest = [[SYSHomeBannerRequest alloc] initRequestWithUserId:[[NSUserDefaults standardUserDefaults] objectForKey:@\"user_id\"]];\n        [bannerRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n            if ([status isEqual:@\"1\"]) {\n                NSArray *dataArray = [obj objectForKey:@\"data\"];\n                //                    NSDictionary *dataDict = (NSDictionary *)[obj objectForKey:@\"data\"];\n                NSMutableArray *imageArray = [NSMutableArray array];\n                _banners = [NSMutableArray array];\n                if ([status isEqual:@\"1\"]) {\n                    for (int i =0; i<[dataArray count]; i++) {\n                        [_banners addObject:[BannerModel initBannerWithDict:dataArray[i]]];\n                        [imageArray addObject:[dataArray[i] objectForKey:@\"img_url\"]];\n                    }\n                    cycleView.imageURLStringsGroup = imageArray;\n                    \n                }\n            }\n        } failure:^(__kindof BaseRequest *request, id obj) {\n            \n        }];\n        \n        //    [self.baseScrollView addSubview:cycleView];\n        _cycleScrollADView = cycleView;\n        \n        \n        \n        UICollectionViewCell *cycleCollectionViewCell = [collectionView dequeueReusableCellWithReuseIdentifier:@\"cell\" forIndexPath:indexPath ];\n        cycleCollectionViewCell.frame = cycleView.frame;\n        //        cycleCollectionViewCell.mj_y =38;\n        //            [[UICollectionViewCell alloc]initWithFrame:cycleView.frame];\n        [cycleCollectionViewCell addSubview:cycleView];\n        return cycleCollectionViewCell;\n        \n    }\n    \n    return nil;\n    \n}\n\n- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    \n}\n//代理方法\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\n heightForItemAtIndexPath:(NSIndexPath *)indexPath {\n    CGFloat cellHeight;\n    if (indexPath.section ==1) {\n        if (self.shops.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shops[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n        \n        \n    }else if (indexPath.section ==0)\n    {\n        cellHeight =  180;\n    }\n    return cellHeight;\n}\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\nheightForHeaderAtIndexPath:(NSIndexPath *)indexPath {\n    if (indexPath.section ==1) {\n        return 38.0f;\n    }\n    return 0.0f;\n}\n- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    widthForItemInSection:( NSInteger )section\n{\n    if (section ==0) {\n        return kDeviceWidth;\n    }else if (section ==1)\n    {\n        return (kDeviceWidth-15)/2;\n    }\n    return 0;\n}\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n              topInSection:(NSInteger )section\n{\n    return 0;\n}\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n           bottomInSection:( NSInteger)section\n{\n    return 0;\n}\n-(void)clicked\n{\n    [self.navigationController popViewControllerAnimated:YES];\n}\n//SDCycleScrollViewDelegate\n- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index\n{\n    //广告页跳转\n    //广告页跳转\n}\n\n-(void)requestHomePageList:(NSString *)page refreshType:(NSString *)type\n{\n//    SYSHomeRequest *homeRequest = [[SYSHomeRequest alloc] initRequestWithPageLine:10 pageNum:[page integerValue]];\n\n    __weak typeof(self) weakSelf = self;\n    \n    NSData *data =  [self dataNamed:@\"HomeData.json\"];\n    \n    NSDictionary *obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];\n    dispatch_async(dispatch_get_main_queue(), ^{\n        if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n            if ([page isEqualToString:@\"1\"]) {\n                [weakSelf.shops removeAllObjects];\n                [weakSelf.collectView.header endRefreshing];\n                [weakSelf.collectView reloadData];\n                \n                return;\n                \n            }else\n            {\n                MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n                hud.mode = MBProgressHUDModeText;\n                hud.labelText = @\"内容看光了 刷新也白搭\";\n                hud.margin = 10.f;\n                hud.removeFromSuperViewOnHide = YES;\n                [hud hide:YES afterDelay:1];\n                [weakSelf.collectView.footer endRefreshing];\n                return ;\n            }\n            \n        }\n        NSArray *dataArray = [obj objectForKey:@\"data\"];\n        NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n        if ([status isEqual:@\"1\"]) {\n            weakSelf.collectView.delegate =self;\n            weakSelf.collectView.dataSource =self;\n            if ([status isEqual:@\"1\"]) {\n                if ([page isEqualToString:@\"1\"]) {\n                    [weakSelf.shops removeAllObjects];\n                    showPage = 1;\n                }\n                for (int i =0; i<[dataArray count]; i++) {\n                    [weakSelf.shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n                }\n                \n            }\n            if ([type isEqualToString:@\"header\"]) {\n                [weakSelf.collectView.header endRefreshing];\n            }else if([type isEqualToString:@\"footer\"])\n            {\n                [weakSelf.collectView.footer endRefreshing];\n            }\n            [weakSelf.collectView.collectionViewLayout invalidateLayout];\n            [weakSelf.collectView reloadData];\n        }\n        \n    });\n\n//    [homeRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n//        dispatch_async(dispatch_get_main_queue(), ^{\n//            if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n//                if ([page isEqualToString:@\"1\"]) {\n//                    [weakSelf.shops removeAllObjects];\n//                    [weakSelf.collectView.header endRefreshing];\n//                    [weakSelf.collectView reloadData];\n//                    \n//                    return;\n//                    \n//                }else\n//                {\n//                    MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n//                    hud.mode = MBProgressHUDModeText;\n//                    hud.labelText = @\"内容看光了 刷新也白搭\";\n//                    hud.margin = 10.f;\n//                    hud.removeFromSuperViewOnHide = YES;\n//                    [hud hide:YES afterDelay:1];\n//                    [weakSelf.collectView.footer endRefreshing];\n//                    return ;\n//                }\n//                \n//            }\n//            NSArray *dataArray = [obj objectForKey:@\"data\"];\n//            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n//            if ([status isEqual:@\"1\"]) {\n//                weakSelf.collectView.delegate =self;\n//                weakSelf.collectView.dataSource =self;\n//                if ([status isEqual:@\"1\"]) {\n//                    if ([page isEqualToString:@\"1\"]) {\n//                        [weakSelf.shops removeAllObjects];\n//                        showPage = 1;\n//                    }\n//                    for (int i =0; i<[dataArray count]; i++) {\n//                        [weakSelf.shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n//                    }\n//                    \n//                }\n//                if ([type isEqualToString:@\"header\"]) {\n//                    [weakSelf.collectView.header endRefreshing];\n//                }else if([type isEqualToString:@\"footer\"])\n//                {\n//                    [weakSelf.collectView.footer endRefreshing];\n//                }\n//                [weakSelf.collectView.collectionViewLayout invalidateLayout];\n//                [weakSelf.collectView reloadData];\n//            }\n//            \n//        });\n//        \n//    } failure:^(__kindof BaseRequest *request, id obj) {\n//        if (weakSelf.view.superview) {\n//            MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view.superview animated:YES];\n//            hud.mode = MBProgressHUDModeText;\n//            hud.labelText = @\"网络不给力 挥泪重连中\";\n//            hud.margin = 10.f;\n//            hud.removeFromSuperViewOnHide = YES;\n//            [hud hide:YES afterDelay:1];\n//        }\n//        \n//        if ([type isEqualToString:@\"header\"]) {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.header endRefreshing];\n//            });\n//            \n//            \n//        }else if([type isEqualToString:@\"footer\"])\n//        {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.footer endRefreshing];\n//                \n//            });\n//            \n//        }\n//    }];\n    \n}\n//\n-(void)styleBtnClicked:(UIButton *)btn\n{\n    \n}\n-(void)typeBtnClicked:(UIButton *)btn\n{\n    \n}\n-(void)moreBtnClicked:(UIButton *)btn\n{\n    \n    \n}\n-(void)doAfter\n{\n    \n}\n\n\n-(void)imageGesture:(UIGestureRecognizer *)tap\n{\n    HPCollectionViewCell * cell = (HPCollectionViewCell *)tap.view.superview.superview;\n    NSIndexPath *indexPath = [_collectView indexPathForCell:cell];\n    cell.shop = self.shops[indexPath.item];\n    //    PersonalCenterViewController *personalViewController = [[PersonalCenterViewController alloc]init];\n    //    personalViewController.user_id = cell.shop.user_id;\n    //    [self.navigationController pushViewController:personalViewController animated:NO];\n}\n\n\n//- (void)setScrollADImageURLStringsArray:(NSArray *)scrollADImageURLStringsArray\n//{\n//    _scrollADImageURLStringsArray = scrollADImageURLStringsArray;\n//\n//    _cycleScrollADView.imageURLStringsGroup = scrollADImageURLStringsArray;\n//}\n-(void)initRefresh\n{\n    UIImage *imgR1 = [UIImage imageNamed:@\"shuaxin1\"];\n    \n    UIImage *imgR2 = [UIImage imageNamed:@\"shuaxin2\"];\n    \n    //    UIImage *imgR3 = [UIImage imageNamed:@\"cameras_3\"];\n    \n    NSArray *reFreshone = [NSArray arrayWithObjects:imgR1, nil];\n    \n    NSArray *reFreshtwo = [NSArray arrayWithObjects:imgR2, nil];\n    \n    NSArray *reFreshthree = [NSArray arrayWithObjects:imgR1,imgR2, nil];\n    \n    \n    \n    \n    \n    \n    MJRefreshGifHeader  *header = [MJRefreshGifHeader headerWithRefreshingBlock:^{\n        \n        [self requestHomePageList:@\"1\" refreshType:@\"header\"];\n        \n    }];\n    \n    [header setImages:reFreshone forState:MJRefreshStateIdle];\n    \n    [header setImages:reFreshtwo forState:MJRefreshStatePulling];\n    [header setImages:reFreshthree duration:0.5 forState:MJRefreshStateRefreshing];\n    //    [header setImages:reFreshthree forState:MJRefreshStateRefreshing];\n    \n    header.lastUpdatedTimeLabel.hidden  = YES;\n    \n    //    header.stateLabel.hidden            = YES;\n    \n    self.collectView.header   = header;\n    \n    \n}\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView\n{\n    if ( self.collectView.contentOffset.y > 800) {\n        self.goToTopBtn.alpha = 1;\n        //        [self.view bringSubviewToFront:_goToTopBtn];\n    } else {\n        self.goToTopBtn.alpha = 0;\n    }\n}\n-(UIButton *)goToTopBtn\n{\n    if(!_goToTopBtn)\n    {\n        _goToTopBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n        _goToTopBtn.backgroundColor = [UIColor clearColor];\n        _goToTopBtn.frame = CGRectMake(kDeviceWidth-52, kDeviceHeight-52, 39, 39);\n        _goToTopBtn.alpha = 0;\n        [_goToTopBtn setImage:[UIImage imageNamed:@\"up\"] forState:UIControlStateNormal];\n        [_goToTopBtn addTarget:self action:@selector(goToTop) forControlEvents:UIControlEventTouchUpInside];\n    }\n    return _goToTopBtn;\n}\n//回到顶部\n- (void)goToTop\n{\n    [UIView animateWithDuration:0.5 animations:^{\n        \n        \n        \n    }completion:^(BOOL finished){\n        \n    }];\n    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];\n    [self.collectView scrollToItemAtIndexPath:indexPath atScrollPosition:0 animated:YES];\n    \n    \n    \n}\n//获得文件路径\n-(NSString *)dataFilePath{\n    //检索Documents目录\n    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask,YES);//备注1\n    NSString *documentsDirectory = [paths objectAtIndex:0];//备注2\n    return [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@\"%@\",kFileName]];\n}\n\n-(void)initData{\n    NSString *filePath = [self dataFilePath];\n    NSLog(@\"filePath=%@\",filePath);\n    \n    //从文件中读取数据，首先判断文件是否存在\n    if([[NSFileManager defaultManager] fileExistsAtPath:filePath]){\n        //        NSArray *array = [[NSArray alloc]initWithContentsOfFile:filePath];\n        //因为直接写入不成功，所以序列化一下,这里反序列化取出\n        NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];\n        for (int i =0; i<[array count]; i++) {\n            [_shops addObject:[HomeModel initHomeModelWithDict:array[i]]];\n            //                        ShowCell *cell = [[ShowCell alloc]initShowCell];\n            //                        [_allCells addObject:cell];\n        }\n        //                    }if (showPage%2 ==0) {\n        //                        [[SDImageCache sharedImageCache] setValue:nil forKey:@\"memCache\"];\n        //                    }\n        \n        //先加载缓存数据\n        [self.collectView reloadData];\n    }\n    //后加载新数据\n    [self.collectView.header performSelector:@selector(beginRefreshing) withObject:nil];\n}\n\n-(BOOL)prefersStatusBarHidden\n{\n    return YES;\n}\n\n- (NSData *)dataNamed:(NSString *)name {\n    NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@\"\"];\n    if (!path) return nil;\n    NSData *data = [NSData dataWithContentsOfFile:path];\n    return data;\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n    <key>NSAppTransportSecurity</key>\n    <dict>\n        <key>NSAllowsArbitraryLoads</key>\n        <true/>\n    </dict>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>Main</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "SYStickHeaderWaterFall/MulitipleSectionHeaderFooterViewController.h",
    "content": "//\n//  MulitipleSectionHeaderToTopViewController.h\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/22.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MulitipleSectionHeaderFooterViewController : UIViewController\n@property (strong, nonatomic) UIButton *leftBtn;\n@property (nonatomic,strong) UIImageView *titleImageView;\n\n@property (nonatomic,strong)UIButton *goToTopBtn;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/MulitipleSectionHeaderFooterViewController.m",
    "content": "//\n//  MulitipleSectionHeaderToTopViewController.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/22.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"MulitipleSectionHeaderFooterViewController.h\"\n#import \"Classes/SYStickHeaderWaterFallLayout.h\"\n#import \"HomeModel.h\"\n#import \"MJExtension.h\"\n#import \"SDCycleScrollView.h\"\n#import \"HomePageHeadView.h\"\n#import \"MJRefresh.h\"\n#import \"RequestCustom.h\"\n#import \"BannerModel.h\"\n#import \"MBProgressHUD.h\"\n#import \"HPCollectionViewCell.h\"\n#import \"UIView+SDExtension.h\"\n#import \"HomeFooterCollectionReusableView.h\"\n#import \"YYFPSLabel.h\"\n#define kDeviceWidth  [UIScreen mainScreen].bounds.size.width\n#define kDeviceHeight [UIScreen mainScreen].bounds.size.height\n#define kFileName @\"MulitipleSectionNoTopHeightVC.plist\"\nstatic NSString* const WaterfallCellIdentifier = @\"WaterfallCell\";\nstatic NSString* const WaterfallHeaderIdentifier = @\"WaterfallHeader\";\nstatic NSString* const WaterfallFooterIdentifier = @\"WaterfallFooter\";\n@interface MulitipleSectionHeaderFooterViewController ()<UICollectionViewDataSource,UICollectionViewDelegate,UIScrollViewDelegate,SDCycleScrollViewDelegate,SYStickHeaderWaterFallDelegate>\n{\n    NSInteger showPage;\n    //    notiNilView *_notinilView;\n    \n    UICollectionReusableView *reusableView;\n}\n@property (nonatomic, strong) YYFPSLabel *fpsLabel;\n\n@property (nonatomic,strong)UIScrollView *baseScrollView;\n@property (nonatomic,strong )SDCycleScrollView *cycleScrollADView;\n@property(nonatomic,strong)UICollectionView * collectView;\n@property(nonatomic,strong)NSMutableArray * shops;\n@property (nonatomic,strong)NSMutableArray *shopForThree;\n@property (nonatomic,strong)NSMutableArray *banners;\n@property (nonatomic,strong)NSMutableDictionary *optionalParam;\n\n@end\n\n@implementation MulitipleSectionHeaderFooterViewController\n\n-(NSMutableArray *)banners\n{\n    if (_banners ==nil) {\n        self.banners = [NSMutableArray array];\n    }\n    return _banners;\n}\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    if (_shops==nil) {\n        self.shops = [NSMutableArray array];\n    }\n    if (_shopForThree==nil) {\n        self.shopForThree = [NSMutableArray array];\n    }\n    if (_optionalParam ==nil) {\n        self.optionalParam = [[NSMutableDictionary alloc]init];\n    }\n    \n    \n    \n    // Do any additional setup after loading the view.\n    [self initCollectionView];\n    [self initNavigationItem];\n    _fpsLabel = [YYFPSLabel new];\n    [_fpsLabel sizeToFit];\n    _fpsLabel.frame = CGRectMake(30, self.view.bounds.size.height - 30, 55, 20);\n    //    _fpsLabel.bottom = self.view.bounds.size.height - 30;\n    //    _fpsLabel.left = 20;\n    _fpsLabel.alpha = 0;\n    [self.view addSubview:_fpsLabel];\n    [self initRefresh];\n    [self initData];\n    \n    // Do any additional setup after loading the view.\n}\n-(void)initCollectionView\n{\n    SYStickHeaderWaterFallLayout *cvLayout = [[SYStickHeaderWaterFallLayout alloc] init];\n    cvLayout.delegate = self;\n    cvLayout.isStickyHeader = YES;\n    cvLayout.isStickyFooter = YES;\n    self.collectView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, kDeviceHeight ) collectionViewLayout:cvLayout];\n    self.collectView.backgroundColor = [UIColor grayColor];\n    [self.view addSubview:self.collectView];\n    [self.view insertSubview:self.goToTopBtn aboveSubview:self.collectView];\n    \n    [self.collectView registerNib:[UINib nibWithNibName:@\"HPCollectionViewCell\" bundle:nil] forCellWithReuseIdentifier:WaterfallCellIdentifier];\n    \n    [self.collectView registerClass:[HomePageHeadView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier];\n    [self.collectView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@\"cell\"];\n    [self.collectView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@\"head\"];\n    [self.collectView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:WaterfallFooterIdentifier];\n    \n    self.collectView.delegate =self;\n    self.collectView.dataSource =self;\n    \n    self.collectView.footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{\n        // 进入刷新状态后会自动调用这个block\n        showPage += 1;\n        NSString *page = [NSString stringWithFormat:@\"%ld\",(long)showPage];\n        [self requestHomePageList:page refreshType:@\"footer\"];\n    }];\n}\n\n-(void)initNavigationItem\n{\n    //    self.edgesForExtendedLayout = UIRectEdgeNone;\n    self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n    self.leftBtn.frame = CGRectMake(16, 16, 14, 13);\n    [self.leftBtn addTarget:self action:@selector(clicked) forControlEvents:UIControlEventTouchUpInside];\n    [self.leftBtn setImage:[UIImage imageNamed:@\"top_sidebar.pdf\"]  forState:UIControlStateNormal];\n    //    [self.leftBtn setEnlargeEdgeWithTop:10 right:20 bottom:10 left:20];\n    UIBarButtonItem *barLeftBtn = [[UIBarButtonItem alloc]initWithCustomView:self.leftBtn];\n    UIImageView *titleImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 34, 20)];\n    titleImageView.image = [UIImage imageNamed:@\"home_logo.pdf\"];\n    _titleImageView = titleImageView;\n    self.navigationItem.titleView = _titleImageView;\n    [self.navigationItem setLeftBarButtonItem:barLeftBtn];\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n\n- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView\n{\n    return 3;\n}\n- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section\n{\n    NSInteger itemCount;\n    if (section ==1) {\n        if (self.shops.count ==0) {\n            itemCount = 1;\n        }else\n        {\n            itemCount = self.shops.count;\n        }\n        \n        \n    }\n    else if(section ==0)\n    {\n        itemCount = 1;\n    }else if (section ==2)\n    {\n        if (self.shopForThree.count ==0) {\n            itemCount = 1;\n        }else\n        {\n            itemCount = self.shopForThree.count;\n        }\n    }\n    return itemCount;\n}\n\n- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath\n{\n    reusableView = nil;\n    if ([kind isEqual:UICollectionElementKindSectionHeader]) {\n        HomePageHeadView *headView= (HomePageHeadView *)[collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier forIndexPath:indexPath];\n        //            headView = [[HomePageHeadView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 30)];\n        headView.tag = 1001 +indexPath.section;\n        reusableView = headView;\n        return reusableView;\n    }else if ([kind isEqualToString:UICollectionElementKindSectionFooter])\n    {\n        HomeFooterCollectionReusableView *footerView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:WaterfallFooterIdentifier forIndexPath:indexPath];\n        //        footerView.frame = CGRectMake(0, 0, kDeviceWidth, 50);\n        footerView.tag = 10001 + indexPath.section;\n        footerView.backgroundColor = [UIColor redColor];\n        return footerView;\n        \n    }\n    \n    return nil;\n    \n}\n- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    if (indexPath.section ==1) {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shops[indexPath.item];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        return cell;\n        \n    }else if (indexPath.section ==0)\n    {\n        SDCycleScrollView *cycleView = [[SDCycleScrollView alloc] initWithFrame:CGRectMake(0, 18, kDeviceWidth, 180)];\n        cycleView.autoScroll = true;\n        cycleView.autoScrollTimeInterval = 4.0;\n        cycleView.delegate = self;\n        cycleView.pageControlAliment = SDCycleScrollViewPageContolAlimentRight;\n        [RequestCustom requestBanner:[[NSUserDefaults standardUserDefaults] objectForKey:@\"user_id\"] complete:^(BOOL succed,id obj){\n            if (succed) {\n                NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n                if ([status isEqual:@\"1\"]) {\n                    NSArray *dataArray = [obj objectForKey:@\"data\"];\n                    //                    NSDictionary *dataDict = (NSDictionary *)[obj objectForKey:@\"data\"];\n                    NSMutableArray *imageArray = [NSMutableArray array];\n                    _banners = [NSMutableArray array];\n                    if ([status isEqual:@\"1\"]) {\n                        for (int i =0; i<[dataArray count]; i++) {\n                            [_banners addObject:[BannerModel initBannerWithDict:dataArray[i]]];\n                            [imageArray addObject:[dataArray[i] objectForKey:@\"img_url\"]];\n                        }\n                        cycleView.imageURLStringsGroup = imageArray;\n                        \n                    }\n                }\n                \n            }\n            \n        }];\n        //    [self.baseScrollView addSubview:cycleView];\n        _cycleScrollADView = cycleView;\n        \n        \n        \n        UICollectionViewCell *cycleCollectionViewCell = [collectionView dequeueReusableCellWithReuseIdentifier:@\"cell\" forIndexPath:indexPath ];\n        cycleCollectionViewCell.frame = cycleView.frame;\n        //        cycleCollectionViewCell.mj_y =38;\n        //            [[UICollectionViewCell alloc]initWithFrame:cycleView.frame];\n        [cycleCollectionViewCell addSubview:cycleView];\n        return cycleCollectionViewCell;\n        \n    }else if (indexPath.section ==2)\n    {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shopForThree[indexPath.item];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        return cell;\n    }\n    \n    return nil;\n    \n}\n\n- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    \n}\n//代理方法\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\n heightForItemAtIndexPath:(NSIndexPath *)indexPath {\n    CGFloat cellHeight;\n    if (indexPath.section ==1) {\n        if (self.shops.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shops[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n        \n        \n    }else if (indexPath.section ==0)\n    {\n        cellHeight =  180;\n    }else if (indexPath.section ==2)\n    {\n        if (self.shopForThree.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shopForThree[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n    }\n    return cellHeight;\n}\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\nheightForHeaderAtIndexPath:(NSIndexPath *)indexPath {\n    return 38.0f;\n}\n- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    widthForItemInSection:( NSInteger )section\n{\n    if (section ==0) {\n        return kDeviceWidth;\n    }else if (section ==1)\n    {\n        return (kDeviceWidth-15)/2;\n    }else if (section ==2)\n    {\n        return (kDeviceWidth-15)/3;\n    }\n    return 0;\n}\n\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n      headerToTopInSection:( NSInteger)section\n{\n    if (section ==0) {\n        return 10;\n    }else if (section == 1)\n    {\n        return 20;\n    }\n    return 0;\n}\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\nheightForFooterAtIndexPath:(nonnull NSIndexPath *)indexPath\n{\n    return 50;\n}\n//-(CGFloat)collectionView:(UICollectionView *)collectionView layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout bottomInSection:(NSInteger)section\n//{\n//    return 50;\n//}\n//SDCycleScrollViewDelegate\n- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index\n{\n    //广告页跳转\n    //广告页跳转\n}\n//UIScrollViewDelegate\n- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {\n    if (_fpsLabel.alpha == 0) {\n        [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:^{\n            _fpsLabel.alpha = 1;\n        } completion:NULL];\n    }\n}\n\n- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {\n    if (!decelerate) {\n        if (_fpsLabel.alpha != 0) {\n            [UIView animateWithDuration:1 delay:2 options:UIViewAnimationOptionBeginFromCurrentState animations:^{\n                _fpsLabel.alpha = 0;\n            } completion:NULL];\n        }\n    }\n}\n\n- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {\n    if (_fpsLabel.alpha != 0) {\n        [UIView animateWithDuration:1 delay:2 options:UIViewAnimationOptionBeginFromCurrentState animations:^{\n            _fpsLabel.alpha = 0;\n        } completion:NULL];\n    }\n}\n\n- (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView {\n    if (_fpsLabel.alpha == 0) {\n        [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:^{\n            _fpsLabel.alpha = 1;\n        } completion:^(BOOL finished) {\n        }];\n    }\n}\n\n-(void)requestHomePageList:(NSString *)page refreshType:(NSString *)type\n{\n    \n    if ([type isEqualToString:@\"head\"]) {\n        if (showPage ==1) {\n            self.shops = [[self.shops subarrayWithRange:NSMakeRange(0, 9)] mutableCopy];\n            [self.collectView.collectionViewLayout invalidateLayout];\n            [self.collectView setContentOffset:CGPointZero animated:NO];\n        }\n        \n    }\n    \n    __weak typeof(self) weakSelf = self;\n    \n    NSData *data =  [self dataNamed:@\"HomeData.json\"];\n    \n    NSDictionary *obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];\n    \n    dispatch_async(dispatch_get_main_queue(), ^{\n        \n        if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n            if ([page isEqualToString:@\"1\"]) {\n                [weakSelf.shopForThree removeAllObjects];\n                [weakSelf.collectView.header endRefreshing];\n                [weakSelf.collectView reloadData];\n                \n                return;\n                \n            }else\n            {\n                MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n                hud.mode = MBProgressHUDModeText;\n                hud.labelText = @\"内容看光了 刷新也白搭\";\n                hud.margin = 10.f;\n                hud.removeFromSuperViewOnHide = YES;\n                [hud hide:YES afterDelay:1];\n                [weakSelf.collectView.footer endRefreshing];\n                return ;\n            }\n            \n        }\n        NSArray *dataArray = [obj objectForKey:@\"data\"];\n        NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n        if ([status isEqual:@\"1\"]) {\n            \n            if ([status isEqual:@\"1\"]) {\n                if ([page isEqualToString:@\"1\"]) {\n                    [weakSelf.shopForThree removeAllObjects];\n                    showPage = 1;\n                }\n                for (int i =0; i<[dataArray count]; i++) {\n                    [weakSelf.shopForThree addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n                }\n                if (showPage ==1) {\n                    weakSelf.shops=[weakSelf.shopForThree mutableCopy];\n                }\n                \n            }\n            if ([type isEqualToString:@\"header\"]) {\n                [weakSelf.collectView.header endRefreshing];\n            }else if([type isEqualToString:@\"footer\"])\n            {\n                [weakSelf.collectView.footer endRefreshing];\n            }\n            \n            \n            [UIView performWithoutAnimation:^{\n                [weakSelf.collectView reloadData];\n            }];\n            \n            [weakSelf.collectView.collectionViewLayout invalidateLayout];\n            \n            //                    [weakSelf.collectView setContentOffset:CGPointZero animated:NO];\n            \n        }\n        \n        \n    });\n\n//    [RequestCustom requestFlowWater:_optionalParam pageNUM:page pageLINE:@\"10\" complete:^(BOOL succed, id obj){\n//        if (succed) {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                \n//                if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n//                    if ([page isEqualToString:@\"1\"]) {\n//                        [weakSelf.shopForThree removeAllObjects];\n//                        [weakSelf.collectView.header endRefreshing];\n//                        [weakSelf.collectView reloadData];\n//                        \n//                        return;\n//                        \n//                    }else\n//                    {\n//                        MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n//                        hud.mode = MBProgressHUDModeText;\n//                        hud.labelText = @\"内容看光了 刷新也白搭\";\n//                        hud.margin = 10.f;\n//                        hud.removeFromSuperViewOnHide = YES;\n//                        [hud hide:YES afterDelay:1];\n//                        [weakSelf.collectView.footer endRefreshing];\n//                        return ;\n//                    }\n//                    \n//                }\n//                NSArray *dataArray = [obj objectForKey:@\"data\"];\n//                NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n//                if ([status isEqual:@\"1\"]) {\n//                    \n//                    if ([status isEqual:@\"1\"]) {\n//                        if ([page isEqualToString:@\"1\"]) {\n//                            [weakSelf.shopForThree removeAllObjects];\n//                            showPage = 1;\n//                        }\n//                        for (int i =0; i<[dataArray count]; i++) {\n//                            [weakSelf.shopForThree addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n//                        }\n//                        if (showPage ==1) {\n//                            weakSelf.shops=[weakSelf.shopForThree mutableCopy];\n//                        }\n//                        \n//                    }\n//                    if ([type isEqualToString:@\"header\"]) {\n//                        [weakSelf.collectView.header endRefreshing];\n//                    }else if([type isEqualToString:@\"footer\"])\n//                    {\n//                        [weakSelf.collectView.footer endRefreshing];\n//                    }\n//                    \n//                    \n//                    [UIView performWithoutAnimation:^{\n//                        [weakSelf.collectView reloadData];\n//                    }];\n//                    \n//                    [weakSelf.collectView.collectionViewLayout invalidateLayout];\n//                    \n//                    //                    [weakSelf.collectView setContentOffset:CGPointZero animated:NO];\n//                    \n//                }\n//                \n//                \n//            });\n//            \n//        }else\n//        {\n//            if (weakSelf.view.superview) {\n//                MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view.superview animated:YES];\n//                hud.mode = MBProgressHUDModeText;\n//                hud.labelText = @\"网络不给力 挥泪重连中\";\n//                hud.margin = 10.f;\n//                hud.removeFromSuperViewOnHide = YES;\n//                [hud hide:YES afterDelay:1];\n//            }\n//            \n//            if ([type isEqualToString:@\"header\"]) {\n//                dispatch_async(dispatch_get_main_queue(), ^{\n//                    [weakSelf.collectView.header endRefreshing];\n//                });\n//                \n//                \n//            }else if([type isEqualToString:@\"footer\"])\n//            {\n//                dispatch_async(dispatch_get_main_queue(), ^{\n//                    [weakSelf.collectView.footer endRefreshing];\n//                    \n//                });\n//                \n//            }\n//            \n//        }\n//        \n//        \n//        \n//    }];\n    \n}\n//\n\n-(void)doAfter\n{\n    \n}\n\n\n\n\n\n//- (void)setScrollADImageURLStringsArray:(NSArray *)scrollADImageURLStringsArray\n//{\n//    _scrollADImageURLStringsArray = scrollADImageURLStringsArray;\n//\n//    _cycleScrollADView.imageURLStringsGroup = scrollADImageURLStringsArray;\n//}\n-(void)initRefresh\n{\n    UIImage *imgR1 = [UIImage imageNamed:@\"shuaxin1\"];\n    \n    UIImage *imgR2 = [UIImage imageNamed:@\"shuaxin2\"];\n    \n    //    UIImage *imgR3 = [UIImage imageNamed:@\"cameras_3\"];\n    \n    NSArray *reFreshone = [NSArray arrayWithObjects:imgR1, nil];\n    \n    NSArray *reFreshtwo = [NSArray arrayWithObjects:imgR2, nil];\n    \n    NSArray *reFreshthree = [NSArray arrayWithObjects:imgR1,imgR2, nil];\n    \n    \n    \n    \n    \n    \n    MJRefreshGifHeader  *header = [MJRefreshGifHeader headerWithRefreshingBlock:^{\n        \n        [self requestHomePageList:@\"1\" refreshType:@\"header\"];\n        \n    }];\n    \n    [header setImages:reFreshone forState:MJRefreshStateIdle];\n    \n    [header setImages:reFreshtwo forState:MJRefreshStatePulling];\n    [header setImages:reFreshthree duration:0.5 forState:MJRefreshStateRefreshing];\n    //    [header setImages:reFreshthree forState:MJRefreshStateRefreshing];\n    \n    header.lastUpdatedTimeLabel.hidden  = YES;\n    \n    //    header.stateLabel.hidden            = YES;\n    \n    self.collectView.header   = header;\n    \n    \n}\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView\n{\n    if ( self.collectView.contentOffset.y > 800) {\n        self.goToTopBtn.alpha = 1;\n        //        [self.view bringSubviewToFront:_goToTopBtn];\n    } else {\n        self.goToTopBtn.alpha = 0;\n    }\n}\n-(UIButton *)goToTopBtn\n{\n    if(!_goToTopBtn)\n    {\n        _goToTopBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n        _goToTopBtn.backgroundColor = [UIColor clearColor];\n        _goToTopBtn.frame = CGRectMake(kDeviceWidth-52, kDeviceHeight-52, 39, 39);\n        _goToTopBtn.alpha = 0;\n        [_goToTopBtn setImage:[UIImage imageNamed:@\"up\"] forState:UIControlStateNormal];\n        [_goToTopBtn addTarget:self action:@selector(goToTop) forControlEvents:UIControlEventTouchUpInside];\n    }\n    return _goToTopBtn;\n}\n//回到顶部\n- (void)goToTop\n{\n    [UIView animateWithDuration:0.5 animations:^{\n        \n        \n        \n    }completion:^(BOOL finished){\n        \n    }];\n    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];\n    [self.collectView scrollToItemAtIndexPath:indexPath atScrollPosition:0 animated:YES];\n    \n    \n    \n}\n//获得文件路径\n-(NSString *)dataFilePath{\n    //检索Documents目录\n    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask,YES);//备注1\n    NSString *documentsDirectory = [paths objectAtIndex:0];//备注2\n    return [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@\"%@\",kFileName]];\n}\n\n-(void)initData{\n    NSString *filePath = [self dataFilePath];\n    NSLog(@\"filePath=%@\",filePath);\n    \n    //从文件中读取数据，首先判断文件是否存在\n    if([[NSFileManager defaultManager] fileExistsAtPath:filePath]){\n        //        NSArray *array = [[NSArray alloc]initWithContentsOfFile:filePath];\n        //因为直接写入不成功，所以序列化一下,这里反序列化取出\n        NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];\n        for (int i =0; i<[array count]; i++) {\n            [_shops addObject:[HomeModel initHomeModelWithDict:array[i]]];\n            //                        ShowCell *cell = [[ShowCell alloc]initShowCell];\n            //                        [_allCells addObject:cell];\n        }\n        //                    }if (showPage%2 ==0) {\n        //                        [[SDImageCache sharedImageCache] setValue:nil forKey:@\"memCache\"];\n        //                    }\n        \n        //先加载缓存数据\n        [self.collectView reloadData];\n    }\n    //后加载新数据\n    [self.collectView.header performSelector:@selector(beginRefreshing) withObject:nil];\n}\n-(void)clicked\n{\n    [self.navigationController popViewControllerAnimated:YES];\n}\n-(BOOL)prefersStatusBarHidden\n{\n    return YES;\n}\n\n- (NSData *)dataNamed:(NSString *)name {\n    NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@\"\"];\n    if (!path) return nil;\n    NSData *data = [NSData dataWithContentsOfFile:path];\n    return data;\n}\n\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/MulitipleSectionHeaderToTopViewController.h",
    "content": "//\n//  MulitipleSectionHeaderToTopViewController.h\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/22.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MulitipleSectionHeaderToTopViewController : UIViewController\n@property (strong, nonatomic) UIButton *leftBtn;\n@property (nonatomic,strong) UIImageView *titleImageView;\n\n@property (nonatomic,strong)UIButton *goToTopBtn;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/MulitipleSectionHeaderToTopViewController.m",
    "content": "//\n//  MulitipleSectionHeaderToTopViewController.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/22.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"MulitipleSectionHeaderToTopViewController.h\"\n#import \"Classes/SYStickHeaderWaterFallLayout.h\"\n#import \"HomeModel.h\"\n#import \"MJExtension.h\"\n#import \"SDCycleScrollView.h\"\n#import \"HomePageHeadView.h\"\n#import \"MJRefresh.h\"\n//#import \"RequestCustom.h\"\n#import \"BannerModel.h\"\n#import \"MBProgressHUD.h\"\n#import \"HPCollectionViewCell.h\"\n#import \"UIView+SDExtension.h\"\n#import \"SYSHomeRequest.h\"\n#import \"SYSHomeBannerRequest.h\"\n#import \"SYSMAINMacro.h\"\n\n#define kFileName @\"MulitipleSectionNoTopHeightVC.plist\"\n\n@interface MulitipleSectionHeaderToTopViewController ()<UICollectionViewDataSource,UICollectionViewDelegate,UIScrollViewDelegate,SDCycleScrollViewDelegate,SYStickHeaderWaterFallDelegate>\n{\n    NSInteger showPage;\n    //    notiNilView *_notinilView;\n    \n    UICollectionReusableView *reusableView;\n}\n@property (nonatomic,strong)UIScrollView *baseScrollView;\n@property (nonatomic,strong )SDCycleScrollView *cycleScrollADView;\n@property(nonatomic,strong)UICollectionView * collectView;\n@property(nonatomic,strong)NSMutableArray * shops;\n@property (nonatomic,strong)NSMutableArray *shopForThree;\n@property (nonatomic,strong)NSMutableArray *banners;\n@property (nonatomic,strong)NSMutableDictionary *optionalParam;\n\n@end\n\n@implementation MulitipleSectionHeaderToTopViewController\n\n-(NSMutableArray *)banners\n{\n    if (_banners ==nil) {\n        self.banners = [NSMutableArray array];\n    }\n    return _banners;\n}\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    if (_shops==nil) {\n        self.shops = [NSMutableArray array];\n    }\n    if (_shopForThree==nil) {\n        self.shopForThree = [NSMutableArray array];\n    }\n    if (_optionalParam ==nil) {\n        self.optionalParam = [[NSMutableDictionary alloc]init];\n    }\n    // Do any additional setup after loading the view.\n    [self initCollectionView];\n    [self initNavigationItem];\n    [self initRefresh];\n    [self initData];\n    \n    // Do any additional setup after loading the view.\n}\n-(void)initCollectionView\n{\n    SYStickHeaderWaterFallLayout *cvLayout = [[SYStickHeaderWaterFallLayout alloc] init];\n    cvLayout.delegate = self;\n    cvLayout.isStickyHeader = YES;\n    \n    self.collectView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, kDeviceHeight ) collectionViewLayout:cvLayout];\n    self.collectView.backgroundColor = [UIColor grayColor];\n    [self.view addSubview:self.collectView];\n    [self.view insertSubview:self.goToTopBtn aboveSubview:self.collectView];\n    \n    [self.collectView registerNib:[UINib nibWithNibName:@\"HPCollectionViewCell\" bundle:nil] forCellWithReuseIdentifier:WaterfallCellIdentifier];\n    \n    [self.collectView registerClass:[HomePageHeadView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier];\n    [self.collectView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@\"cell\"];\n    [self.collectView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@\"head\"];\n    \n    self.collectView.footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{\n        // 进入刷新状态后会自动调用这个block\n        showPage += 1;\n        NSString *page = [NSString stringWithFormat:@\"%ld\",(long)showPage];\n        [self requestHomePageList:page refreshType:@\"footer\"];\n    }];\n}\n-(void)initNavigationItem\n{\n    //    self.edgesForExtendedLayout = UIRectEdgeNone;\n    self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n    self.leftBtn.frame = CGRectMake(16, 16, 14, 13);\n    [self.leftBtn addTarget:self action:@selector(clicked) forControlEvents:UIControlEventTouchUpInside];\n    [self.leftBtn setImage:[UIImage imageNamed:@\"top_sidebar.pdf\"]  forState:UIControlStateNormal];\n    //    [self.leftBtn setEnlargeEdgeWithTop:10 right:20 bottom:10 left:20];\n    UIBarButtonItem *barLeftBtn = [[UIBarButtonItem alloc]initWithCustomView:self.leftBtn];\n    UIImageView *titleImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 34, 20)];\n    titleImageView.image = [UIImage imageNamed:@\"home_logo.pdf\"];\n    _titleImageView = titleImageView;\n    self.navigationItem.titleView = _titleImageView;\n    [self.navigationItem setLeftBarButtonItem:barLeftBtn];\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n\n- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView\n{\n    [collectionView.collectionViewLayout invalidateLayout];\n    \n    return 3;\n}\n- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section\n{\n    NSInteger itemCount;\n    if (section ==1) {\n        if (self.shops.count ==0) {\n            itemCount = 1;\n        }else\n        {\n            itemCount = self.shops.count;\n        }\n        \n        \n    }\n    else if(section ==0)\n    {\n        itemCount = 1;\n    }else if (section ==2)\n    {\n        if (self.shopForThree.count ==0) {\n            itemCount = 1;\n        }else\n        {\n            itemCount = self.shopForThree.count;\n        }\n    }\n    return itemCount;\n}\n\n- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath\n{\n    reusableView = nil;\n    if ([kind isEqual:UICollectionElementKindSectionHeader]) {\n        HomePageHeadView *headView= (HomePageHeadView *)[collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier forIndexPath:indexPath];\n        //            headView = [[HomePageHeadView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 30)];\n        headView.tag = 1001 +indexPath.section;\n        reusableView = headView;\n        return reusableView;\n    }\n    \n    return nil;\n    \n}\n- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    if (indexPath.section ==1) {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shops[indexPath.item];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        return cell;\n        \n    }else if (indexPath.section ==0)\n    {\n        SDCycleScrollView *cycleView = [[SDCycleScrollView alloc] initWithFrame:CGRectMake(0, 18, kDeviceWidth, 180)];\n        cycleView.autoScroll = true;\n        cycleView.autoScrollTimeInterval = 4.0;\n        cycleView.delegate = self;\n        cycleView.pageControlAliment = SDCycleScrollViewPageContolAlimentRight;\n        \n        SYSHomeBannerRequest *bannerRequest = [[SYSHomeBannerRequest alloc] initRequestWithUserId:[[NSUserDefaults standardUserDefaults] objectForKey:@\"user_id\"]];\n        [bannerRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n            if ([status isEqual:@\"1\"]) {\n                NSArray *dataArray = [obj objectForKey:@\"data\"];\n                //                    NSDictionary *dataDict = (NSDictionary *)[obj objectForKey:@\"data\"];\n                NSMutableArray *imageArray = [NSMutableArray array];\n                _banners = [NSMutableArray array];\n                if ([status isEqual:@\"1\"]) {\n                    for (int i =0; i<[dataArray count]; i++) {\n                        [_banners addObject:[BannerModel initBannerWithDict:dataArray[i]]];\n                        [imageArray addObject:[dataArray[i] objectForKey:@\"img_url\"]];\n                    }\n                    cycleView.imageURLStringsGroup = imageArray;\n                    \n                }\n            }\n        } failure:^(__kindof BaseRequest *request, id obj) {\n            \n        }];\n        //    [self.baseScrollView addSubview:cycleView];\n        _cycleScrollADView = cycleView;\n        \n        \n        \n        UICollectionViewCell *cycleCollectionViewCell = [collectionView dequeueReusableCellWithReuseIdentifier:@\"cell\" forIndexPath:indexPath ];\n        cycleCollectionViewCell.frame = cycleView.frame;\n        //        cycleCollectionViewCell.mj_y =38;\n        //            [[UICollectionViewCell alloc]initWithFrame:cycleView.frame];\n        [cycleCollectionViewCell addSubview:cycleView];\n        return cycleCollectionViewCell;\n        \n    }else if (indexPath.section ==2)\n    {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shopForThree[indexPath.item];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        return cell;\n    }\n    \n    return nil;\n    \n}\n\n- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    \n}\n//代理方法\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\n heightForItemAtIndexPath:(NSIndexPath *)indexPath {\n    CGFloat cellHeight;\n    if (indexPath.section ==1) {\n        if (self.shops.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shops[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n        \n        \n    }else if (indexPath.section ==0)\n    {\n        cellHeight =  180;\n    }else if (indexPath.section ==2)\n    {\n        if (self.shopForThree.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shopForThree[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n    }\n    return cellHeight;\n}\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\nheightForHeaderAtIndexPath:(NSIndexPath *)indexPath {\n    return 38.0f;\n}\n- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    widthForItemInSection:( NSInteger )section\n{\n    if (section ==0) {\n        return kDeviceWidth;\n    }else if (section ==1)\n    {\n        return (kDeviceWidth-15)/2;\n    }else if (section ==2)\n    {\n        return (kDeviceWidth-15)/3;\n    }\n    return 0;\n}\n\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n      headerToTopInSection:( NSInteger)section\n{\n    if (section ==0) {\n        return 10;\n    }else if (section == 1)\n    {\n        return 20;\n    }\n    return 0;\n}\n//SDCycleScrollViewDelegate\n- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index\n{\n    //广告页跳转\n    //广告页跳转\n}\n\n-(void)requestHomePageList:(NSString *)page refreshType:(NSString *)type\n{\n//    SYSHomeRequest *homeRequest = [[SYSHomeRequest alloc] initRequestWithPageLine:10 pageNum:[page integerValue]];\n    \n    __weak typeof(self) weakSelf = self;\n    \n    NSData *data =  [self dataNamed:@\"HomeData.json\"];\n    \n    NSDictionary *obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];\n    dispatch_async(dispatch_get_main_queue(), ^{\n        \n        if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n            if ([page isEqualToString:@\"1\"]) {\n                [weakSelf.shopForThree removeAllObjects];\n                [weakSelf.shops removeAllObjects];\n                [weakSelf.collectView.header endRefreshing];\n                [weakSelf.collectView reloadData];\n                \n                return;\n                \n            }else\n            {\n                MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n                hud.mode = MBProgressHUDModeText;\n                hud.labelText = @\"内容看光了 刷新也白搭\";\n                hud.margin = 10.f;\n                hud.removeFromSuperViewOnHide = YES;\n                [hud hide:YES afterDelay:1];\n                [weakSelf.collectView.footer endRefreshing];\n                return ;\n            }\n            \n        }\n        NSArray *dataArray = [obj objectForKey:@\"data\"];\n        NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n        if ([status isEqual:@\"1\"]) {\n            weakSelf.collectView.delegate =self;\n            weakSelf.collectView.dataSource =self;\n            if ([status isEqual:@\"1\"]) {\n                if ([page isEqualToString:@\"1\"]) {\n                    [weakSelf.shopForThree removeAllObjects];\n                    [weakSelf.shops removeAllObjects];\n                    showPage = 1;\n                }\n                for (int i =0; i<[dataArray count]; i++) {\n                    [weakSelf.shopForThree addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n                    //                    [_shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n                }\n                if (showPage ==1) {\n                    weakSelf.shops=[weakSelf.shopForThree mutableCopy];\n                }\n            }\n            if ([type isEqualToString:@\"header\"]) {\n                [weakSelf.collectView.header endRefreshing];\n            }else if([type isEqualToString:@\"footer\"])\n            {\n                [weakSelf.collectView.footer endRefreshing];\n            }\n            \n            [weakSelf.collectView reloadData];\n        }\n        \n        \n    });\n\n//    [homeRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n//        dispatch_async(dispatch_get_main_queue(), ^{\n//            \n//            if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n//                if ([page isEqualToString:@\"1\"]) {\n//                    [weakSelf.shopForThree removeAllObjects];\n//                    [weakSelf.shops removeAllObjects];\n//                    [weakSelf.collectView.header endRefreshing];\n//                    [weakSelf.collectView reloadData];\n//                    \n//                    return;\n//                    \n//                }else\n//                {\n//                    MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n//                    hud.mode = MBProgressHUDModeText;\n//                    hud.labelText = @\"内容看光了 刷新也白搭\";\n//                    hud.margin = 10.f;\n//                    hud.removeFromSuperViewOnHide = YES;\n//                    [hud hide:YES afterDelay:1];\n//                    [weakSelf.collectView.footer endRefreshing];\n//                    return ;\n//                }\n//                \n//            }\n//            NSArray *dataArray = [obj objectForKey:@\"data\"];\n//            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n//            if ([status isEqual:@\"1\"]) {\n//                weakSelf.collectView.delegate =self;\n//                weakSelf.collectView.dataSource =self;\n//                if ([status isEqual:@\"1\"]) {\n//                    if ([page isEqualToString:@\"1\"]) {\n//                        [weakSelf.shopForThree removeAllObjects];\n//                        [weakSelf.shops removeAllObjects];\n//                        showPage = 1;\n//                    }\n//                    for (int i =0; i<[dataArray count]; i++) {\n//                        [weakSelf.shopForThree addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n//                        //                    [_shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n//                    }\n//                    if (showPage ==1) {\n//                        weakSelf.shops=[weakSelf.shopForThree mutableCopy];\n//                    }\n//                }\n//                if ([type isEqualToString:@\"header\"]) {\n//                    [weakSelf.collectView.header endRefreshing];\n//                }else if([type isEqualToString:@\"footer\"])\n//                {\n//                    [weakSelf.collectView.footer endRefreshing];\n//                }\n//                \n//                [weakSelf.collectView reloadData];\n//            }\n//            \n//            \n//        });\n    \n        \n//    } failure:^(__kindof BaseRequest *request, id obj) {\n//        if (weakSelf.view.superview) {\n//            MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:self.view.superview animated:YES];\n//            hud.mode = MBProgressHUDModeText;\n//            hud.labelText = @\"网络不给力 挥泪重连中\";\n//            hud.margin = 10.f;\n//            hud.removeFromSuperViewOnHide = YES;\n//            [hud hide:YES afterDelay:1];\n//        }\n//        \n//        if ([type isEqualToString:@\"header\"]) {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.header endRefreshing];\n//            });\n//            \n//            \n//        }else if([type isEqualToString:@\"footer\"])\n//        {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.footer endRefreshing];\n//                \n//            });\n//            \n//        }\n//    }];\n    \n}\n//\n\n-(void)doAfter\n{\n    \n}\n\n\n\n\n\n//- (void)setScrollADImageURLStringsArray:(NSArray *)scrollADImageURLStringsArray\n//{\n//    _scrollADImageURLStringsArray = scrollADImageURLStringsArray;\n//\n//    _cycleScrollADView.imageURLStringsGroup = scrollADImageURLStringsArray;\n//}\n-(void)initRefresh\n{\n    UIImage *imgR1 = [UIImage imageNamed:@\"shuaxin1\"];\n    \n    UIImage *imgR2 = [UIImage imageNamed:@\"shuaxin2\"];\n    \n    //    UIImage *imgR3 = [UIImage imageNamed:@\"cameras_3\"];\n    \n    NSArray *reFreshone = [NSArray arrayWithObjects:imgR1, nil];\n    \n    NSArray *reFreshtwo = [NSArray arrayWithObjects:imgR2, nil];\n    \n    NSArray *reFreshthree = [NSArray arrayWithObjects:imgR1,imgR2, nil];\n    \n    \n    \n    \n    \n    \n    MJRefreshGifHeader  *header = [MJRefreshGifHeader headerWithRefreshingBlock:^{\n        \n        [self requestHomePageList:@\"1\" refreshType:@\"header\"];\n        \n    }];\n    \n    [header setImages:reFreshone forState:MJRefreshStateIdle];\n    \n    [header setImages:reFreshtwo forState:MJRefreshStatePulling];\n    [header setImages:reFreshthree duration:0.5 forState:MJRefreshStateRefreshing];\n    //    [header setImages:reFreshthree forState:MJRefreshStateRefreshing];\n    \n    header.lastUpdatedTimeLabel.hidden  = YES;\n    \n    //    header.stateLabel.hidden            = YES;\n    \n    self.collectView.header   = header;\n    \n    \n}\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView\n{\n    if ( self.collectView.contentOffset.y > 800) {\n        self.goToTopBtn.alpha = 1;\n        //        [self.view bringSubviewToFront:_goToTopBtn];\n    } else {\n        self.goToTopBtn.alpha = 0;\n    }\n}\n-(UIButton *)goToTopBtn\n{\n    if(!_goToTopBtn)\n    {\n        _goToTopBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n        _goToTopBtn.backgroundColor = [UIColor clearColor];\n        _goToTopBtn.frame = CGRectMake(kDeviceWidth-52, kDeviceHeight-52, 39, 39);\n        _goToTopBtn.alpha = 0;\n        [_goToTopBtn setImage:[UIImage imageNamed:@\"up\"] forState:UIControlStateNormal];\n        [_goToTopBtn addTarget:self action:@selector(goToTop) forControlEvents:UIControlEventTouchUpInside];\n    }\n    return _goToTopBtn;\n}\n//回到顶部\n- (void)goToTop\n{\n    [UIView animateWithDuration:0.5 animations:^{\n        \n        \n        \n    }completion:^(BOOL finished){\n        \n    }];\n    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];\n    [self.collectView scrollToItemAtIndexPath:indexPath atScrollPosition:0 animated:YES];\n    \n    \n    \n}\n//获得文件路径\n-(NSString *)dataFilePath{\n    //检索Documents目录\n    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask,YES);//备注1\n    NSString *documentsDirectory = [paths objectAtIndex:0];//备注2\n    return [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@\"%@\",kFileName]];\n}\n\n-(void)initData{\n    NSString *filePath = [self dataFilePath];\n    NSLog(@\"filePath=%@\",filePath);\n    \n    //从文件中读取数据，首先判断文件是否存在\n    if([[NSFileManager defaultManager] fileExistsAtPath:filePath]){\n        //        NSArray *array = [[NSArray alloc]initWithContentsOfFile:filePath];\n        //因为直接写入不成功，所以序列化一下,这里反序列化取出\n        NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];\n        for (int i =0; i<[array count]; i++) {\n            [_shops addObject:[HomeModel initHomeModelWithDict:array[i]]];\n            //                        ShowCell *cell = [[ShowCell alloc]initShowCell];\n            //                        [_allCells addObject:cell];\n        }\n        //                    }if (showPage%2 ==0) {\n        //                        [[SDImageCache sharedImageCache] setValue:nil forKey:@\"memCache\"];\n        //                    }\n        \n        //先加载缓存数据\n        [self.collectView reloadData];\n    }\n    //后加载新数据\n    [self.collectView.header performSelector:@selector(beginRefreshing) withObject:nil];\n}\n-(void)clicked\n{\n    [self.navigationController popViewControllerAnimated:YES];\n}\n-(BOOL)prefersStatusBarHidden\n{\n    return YES;\n}\n\n- (NSData *)dataNamed:(NSString *)name {\n    NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@\"\"];\n    if (!path) return nil;\n    NSData *data = [NSData dataWithContentsOfFile:path];\n    return data;\n}\n\n\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/MulitipleSectionNoTopHeightViewController.h",
    "content": "//\n//  MulitipleSectionNoTopHeightViewController.h\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/22.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MulitipleSectionNoTopHeightViewController : UIViewController\n@property (strong, nonatomic) UIButton *leftBtn;\n@property (nonatomic,strong) UIImageView *titleImageView;\n\n@property (nonatomic,strong)UIButton *goToTopBtn;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/MulitipleSectionNoTopHeightViewController.m",
    "content": "//\n//  MulitipleSectionNoTopHeightViewController.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/22.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"MulitipleSectionNoTopHeightViewController.h\"\n#import \"Classes/SYStickHeaderWaterFallLayout.h\"\n#import \"HomeModel.h\"\n#import \"MJExtension.h\"\n#import \"SDCycleScrollView.h\"\n#import \"HomePageHeadView.h\"\n#import \"MJRefresh.h\"\n//#import \"RequestCustom.h\"\n#import \"BannerModel.h\"\n#import \"MBProgressHUD.h\"\n#import \"HPCollectionViewCell.h\"\n#import \"UIView+SDExtension.h\"\n#import \"SYSHomeRequest.h\"\n#import \"SYSHomeBannerRequest.h\"\n#import \"SYSMAINMacro.h\"\n\n#define kFileName @\"MulitipleSectionNoTopHeightVC.plist\"\n@interface MulitipleSectionNoTopHeightViewController ()<UICollectionViewDataSource,UICollectionViewDelegate,UIScrollViewDelegate,SDCycleScrollViewDelegate,SYStickHeaderWaterFallDelegate>\n{\n    NSInteger showPage;\n    //    notiNilView *_notinilView;\n    \n    UICollectionReusableView *reusableView;\n}\n@property (nonatomic,strong)UIScrollView *baseScrollView;\n@property (nonatomic,strong )SDCycleScrollView *cycleScrollADView;\n@property(nonatomic,strong)UICollectionView * collectView;\n@property(nonatomic,strong)NSMutableArray *shops;\n@property (nonatomic,strong)NSMutableArray *shopForThree;\n@property (nonatomic,strong)NSMutableArray *banners;\n@property (nonatomic,strong)NSMutableDictionary *optionalParam;\n\n@end\n\n@implementation MulitipleSectionNoTopHeightViewController\n\n-(NSMutableArray *)banners\n{\n    if (_banners ==nil) {\n        self.banners = [NSMutableArray array];\n    }\n    return _banners;\n}\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    if (_shops==nil) {\n        self.shops = [NSMutableArray array];\n    }\n    if (_shopForThree==nil) {\n        self.shopForThree = [NSMutableArray array];\n    }\n    if (_optionalParam ==nil) {\n        self.optionalParam = [[NSMutableDictionary alloc]init];\n    }\n    // Do any additional setup after loading the view.\n    [self initCollectionView];\n    [self initNavigationItem];\n    [self initRefresh];\n    [self initData];\n    \n    // Do any additional setup after loading the view.\n}\n-(void)initCollectionView\n{\n    SYStickHeaderWaterFallLayout *cvLayout = [[SYStickHeaderWaterFallLayout alloc] init];\n    cvLayout.delegate = self;\n    \n    cvLayout.isStickyHeader = YES;\n    \n    self.collectView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, kDeviceHeight ) collectionViewLayout:cvLayout];\n    \n    self.collectView.backgroundColor = [UIColor grayColor];\n    [self.view addSubview:self.collectView];\n    [self.view insertSubview:self.goToTopBtn aboveSubview:self.collectView];\n    \n    [self.collectView registerNib:[UINib nibWithNibName:@\"HPCollectionViewCell\" bundle:nil] forCellWithReuseIdentifier:WaterfallCellIdentifier];\n    \n    [self.collectView registerClass:[HomePageHeadView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier];\n    [self.collectView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@\"cell\"];\n    [self.collectView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@\"head\"];\n    \n    self.collectView.delegate =self;\n    self.collectView.dataSource =self;\n    \n    self.collectView.footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{\n        // 进入刷新状态后会自动调用这个block\n        showPage += 1;\n        NSString *page = [NSString stringWithFormat:@\"%ld\",(long)showPage];\n        [self requestHomePageList:page refreshType:@\"footer\"];\n    }];\n}\n-(void)initNavigationItem\n{\n    //    self.edgesForExtendedLayout = UIRectEdgeNone;\n    self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n    self.leftBtn.frame = CGRectMake(16, 16, 14, 13);\n    [self.leftBtn addTarget:self action:@selector(clicked) forControlEvents:UIControlEventTouchUpInside];\n    [self.leftBtn setImage:[UIImage imageNamed:@\"top_sidebar.pdf\"]  forState:UIControlStateNormal];\n    //    [self.leftBtn setEnlargeEdgeWithTop:10 right:20 bottom:10 left:20];\n    UIBarButtonItem *barLeftBtn = [[UIBarButtonItem alloc]initWithCustomView:self.leftBtn];\n    UIImageView *titleImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 34, 20)];\n    titleImageView.image = [UIImage imageNamed:@\"home_logo.pdf\"];\n    _titleImageView = titleImageView;\n    self.navigationItem.titleView = _titleImageView;\n    [self.navigationItem setLeftBarButtonItem:barLeftBtn];\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n\n- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView\n{\n    [collectionView.collectionViewLayout invalidateLayout];\n    return 3;\n}\n- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section\n{\n    NSInteger itemCount;\n    if (section ==1) {\n        if (self.shops.count ==0) {\n            itemCount = 0;\n        }else\n        {\n            itemCount = self.shops.count;\n        }\n        \n        \n    }\n    else if(section ==0)\n    {\n        itemCount = 1;\n    }else if (section ==2)\n    {\n        if (self.shopForThree.count ==0) {\n            itemCount = 0;\n        }else\n        {\n            itemCount = self.shopForThree.count;\n        }\n    }\n    return itemCount;\n}\n\n- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath\n{\n    reusableView = nil;\n    if ([kind isEqual:UICollectionElementKindSectionHeader]) {\n        HomePageHeadView *headView= (HomePageHeadView *)[collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier forIndexPath:indexPath];\n        //            headView = [[HomePageHeadView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 30)];\n        headView.tag = 1001 +indexPath.section;\n        reusableView = headView;\n        return reusableView;\n    }\n    \n    return nil;\n    \n}\n- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    if (indexPath.section ==1) {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shops[indexPath.item];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        return cell;\n        \n    }else if (indexPath.section ==0)\n    {\n        SDCycleScrollView *cycleView = [[SDCycleScrollView alloc] initWithFrame:CGRectMake(0, 18, kDeviceWidth, 180)];\n        cycleView.autoScroll = true;\n        cycleView.autoScrollTimeInterval = 4.0;\n        cycleView.delegate = self;\n        cycleView.pageControlAliment = SDCycleScrollViewPageContolAlimentRight;\n        SYSHomeBannerRequest *bannerRequest = [[SYSHomeBannerRequest alloc] initRequestWithUserId:[[NSUserDefaults standardUserDefaults] objectForKey:@\"user_id\"]];\n        [bannerRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n            if ([status isEqual:@\"1\"]) {\n                NSArray *dataArray = [obj objectForKey:@\"data\"];\n                //                    NSDictionary *dataDict = (NSDictionary *)[obj objectForKey:@\"data\"];\n                NSMutableArray *imageArray = [NSMutableArray array];\n                _banners = [NSMutableArray array];\n                if ([status isEqual:@\"1\"]) {\n                    for (int i =0; i<[dataArray count]; i++) {\n                        [_banners addObject:[BannerModel initBannerWithDict:dataArray[i]]];\n                        [imageArray addObject:[dataArray[i] objectForKey:@\"img_url\"]];\n                    }\n                    cycleView.imageURLStringsGroup = imageArray;\n                    \n                }\n            }\n        } failure:^(__kindof BaseRequest *request, id obj) {\n            \n        }];\n        //    [self.baseScrollView addSubview:cycleView];\n        _cycleScrollADView = cycleView;\n        \n        \n        \n        UICollectionViewCell *cycleCollectionViewCell = [collectionView dequeueReusableCellWithReuseIdentifier:@\"cell\" forIndexPath:indexPath ];\n        cycleCollectionViewCell.frame = cycleView.frame;\n        //        cycleCollectionViewCell.mj_y =38;\n        //            [[UICollectionViewCell alloc]initWithFrame:cycleView.frame];\n        [cycleCollectionViewCell addSubview:cycleView];\n        return cycleCollectionViewCell;\n        \n    }else if (indexPath.section ==2)\n    {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shopForThree[indexPath.item];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        return cell;\n    }\n    \n    return nil;\n    \n}\n\n- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    \n}\n//代理方法\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\n heightForItemAtIndexPath:(NSIndexPath *)indexPath {\n    CGFloat cellHeight;\n    if (indexPath.section ==1) {\n        if (self.shops.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shops[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n        \n        \n    }else if (indexPath.section ==0)\n    {\n        cellHeight =  180;\n    }else if (indexPath.section ==2)\n    {\n        if (self.shopForThree.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shopForThree[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n    }\n    return cellHeight;\n}\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\nheightForHeaderAtIndexPath:(NSIndexPath *)indexPath {\n    return 38.0f;\n}\n- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    widthForItemInSection:( NSInteger )section\n{\n    if (section ==0) {\n        return kDeviceWidth;\n    }else if (section ==1)\n    {\n        return (kDeviceWidth-15)/2;\n    }else if (section ==2)\n    {\n        return (kDeviceWidth-15)/2;\n    }\n    return 0;\n}\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n              topInSection:(NSInteger )section\n{\n    return 10;\n}\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n           bottomInSection:( NSInteger)section\n{\n    return 5;\n}\n\n//SDCycleScrollViewDelegate\n- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index\n{\n    //广告页跳转\n    //广告页跳转\n}\n\n-(void)requestHomePageList:(NSString *)page refreshType:(NSString *)type\n{\n//    SYSHomeRequest *homeRequest = [[SYSHomeRequest alloc] initRequestWithPageLine:10 pageNum:[page integerValue]];\n    \n    __weak typeof(self) weakSelf = self;\n    \n    NSData *data =  [self dataNamed:@\"HomeData.json\"];\n    \n    NSDictionary *obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];\n    if ([type isEqualToString:@\"head\"]) {\n        if (showPage ==1)  {\n            self.shopForThree = [[self.shopForThree subarrayWithRange:NSMakeRange(0, 9)] mutableCopy];\n            [self.collectView.collectionViewLayout invalidateLayout];\n            [self.collectView setContentOffset:CGPointZero animated:NO];\n        }\n        \n    }\n    dispatch_async(dispatch_get_main_queue(), ^{\n        \n        if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n            if ([page isEqualToString:@\"1\"]) {\n                [weakSelf.shopForThree removeAllObjects];\n                [weakSelf.shops removeAllObjects];\n                [weakSelf.collectView.header endRefreshing];\n                [weakSelf.collectView reloadData];\n                \n                return;\n                \n            }else\n            {\n                MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n                hud.mode = MBProgressHUDModeText;\n                hud.labelText = @\"内容看光了 刷新也白搭\";\n                hud.margin = 10.f;\n                hud.removeFromSuperViewOnHide = YES;\n                [hud hide:YES afterDelay:1];\n                [weakSelf.collectView.footer endRefreshing];\n                return ;\n            }\n            \n        }\n        NSArray *dataArray = [obj objectForKey:@\"data\"];\n        NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n        if ([status isEqual:@\"1\"]) {\n            \n            if ([status isEqual:@\"1\"]) {\n                if ([page isEqualToString:@\"1\"]) {\n                    [weakSelf.shopForThree removeAllObjects];\n                    [weakSelf.shops removeAllObjects];\n                    showPage = 1;\n                }\n                for (int i =0; i<[dataArray count]; i++) {\n                    [weakSelf.shopForThree addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n                    //                    [_shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n                }\n                if (showPage ==1) {\n                    weakSelf.shops=[weakSelf.shopForThree mutableCopy];\n                }\n            }\n            if ([type isEqualToString:@\"header\"]) {\n                [weakSelf.collectView.header endRefreshing];\n            }else if([type isEqualToString:@\"footer\"])\n            {\n                [weakSelf.collectView.footer endRefreshing];\n            }\n            \n            [weakSelf.collectView reloadData];\n        }\n        \n    });\n\n//    [homeRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n//        \n//        dispatch_async(dispatch_get_main_queue(), ^{\n//            \n//            if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n//                if ([page isEqualToString:@\"1\"]) {\n//                    [weakSelf.shopForThree removeAllObjects];\n//                    [weakSelf.shops removeAllObjects];\n//                    [weakSelf.collectView.header endRefreshing];\n//                    [weakSelf.collectView reloadData];\n//                    \n//                    return;\n//                    \n//                }else\n//                {\n//                    MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n//                    hud.mode = MBProgressHUDModeText;\n//                    hud.labelText = @\"内容看光了 刷新也白搭\";\n//                    hud.margin = 10.f;\n//                    hud.removeFromSuperViewOnHide = YES;\n//                    [hud hide:YES afterDelay:1];\n//                    [weakSelf.collectView.footer endRefreshing];\n//                    return ;\n//                }\n//                \n//            }\n//            NSArray *dataArray = [obj objectForKey:@\"data\"];\n//            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n//            if ([status isEqual:@\"1\"]) {\n//                \n//                if ([status isEqual:@\"1\"]) {\n//                    if ([page isEqualToString:@\"1\"]) {\n//                        [weakSelf.shopForThree removeAllObjects];\n//                        [weakSelf.shops removeAllObjects];\n//                        showPage = 1;\n//                    }\n//                    for (int i =0; i<[dataArray count]; i++) {\n//                        [weakSelf.shopForThree addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n//                        //                    [_shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n//                    }\n//                    if (showPage ==1) {\n//                        weakSelf.shops=[weakSelf.shopForThree mutableCopy];\n//                    }\n//                }\n//                if ([type isEqualToString:@\"header\"]) {\n//                    [weakSelf.collectView.header endRefreshing];\n//                }else if([type isEqualToString:@\"footer\"])\n//                {\n//                    [weakSelf.collectView.footer endRefreshing];\n//                }\n//                \n//                [weakSelf.collectView reloadData];\n//            }\n//            \n//        });\n//        \n//    } failure:^(__kindof BaseRequest *request, id obj) {\n//        if (weakSelf.view.superview) {\n//            MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:self.view.superview animated:YES];\n//            hud.mode = MBProgressHUDModeText;\n//            hud.labelText = @\"网络不给力 挥泪重连中\";\n//            hud.margin = 10.f;\n//            hud.removeFromSuperViewOnHide = YES;\n//            [hud hide:YES afterDelay:1];\n//        }\n//        \n//        if ([type isEqualToString:@\"header\"]) {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.header endRefreshing];\n//            });\n//            \n//            \n//        }else if([type isEqualToString:@\"footer\"])\n//        {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.footer endRefreshing];\n//                \n//            });\n//            \n//        }\n//    }];\n//    \n}\n//\n\n-(void)doAfter\n{\n    \n}\n\n\n\n\n\n//- (void)setScrollADImageURLStringsArray:(NSArray *)scrollADImageURLStringsArray\n//{\n//    _scrollADImageURLStringsArray = scrollADImageURLStringsArray;\n//\n//    _cycleScrollADView.imageURLStringsGroup = scrollADImageURLStringsArray;\n//}\n-(void)initRefresh\n{\n    UIImage *imgR1 = [UIImage imageNamed:@\"shuaxin1\"];\n    \n    UIImage *imgR2 = [UIImage imageNamed:@\"shuaxin2\"];\n    \n    //    UIImage *imgR3 = [UIImage imageNamed:@\"cameras_3\"];\n    \n    NSArray *reFreshone = [NSArray arrayWithObjects:imgR1, nil];\n    \n    NSArray *reFreshtwo = [NSArray arrayWithObjects:imgR2, nil];\n    \n    NSArray *reFreshthree = [NSArray arrayWithObjects:imgR1,imgR2, nil];\n    \n    \n    \n    \n    \n    \n    MJRefreshGifHeader  *header = [MJRefreshGifHeader headerWithRefreshingBlock:^{\n        \n        [self requestHomePageList:@\"1\" refreshType:@\"header\"];\n        \n    }];\n    \n    [header setImages:reFreshone forState:MJRefreshStateIdle];\n    \n    [header setImages:reFreshtwo forState:MJRefreshStatePulling];\n    [header setImages:reFreshthree duration:0.5 forState:MJRefreshStateRefreshing];\n    //    [header setImages:reFreshthree forState:MJRefreshStateRefreshing];\n    \n    header.lastUpdatedTimeLabel.hidden  = YES;\n    \n    //    header.stateLabel.hidden            = YES;\n    \n    self.collectView.header   = header;\n    \n    \n}\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView\n{\n    if ( self.collectView.contentOffset.y > 800) {\n        self.goToTopBtn.alpha = 1;\n        //        [self.view bringSubviewToFront:_goToTopBtn];\n    } else {\n        self.goToTopBtn.alpha = 0;\n    }\n}\n-(UIButton *)goToTopBtn\n{\n    if(!_goToTopBtn)\n    {\n        _goToTopBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n        _goToTopBtn.backgroundColor = [UIColor clearColor];\n        _goToTopBtn.frame = CGRectMake(kDeviceWidth-52, kDeviceHeight-52, 39, 39);\n        _goToTopBtn.alpha = 0;\n        [_goToTopBtn setImage:[UIImage imageNamed:@\"up\"] forState:UIControlStateNormal];\n        [_goToTopBtn addTarget:self action:@selector(goToTop) forControlEvents:UIControlEventTouchUpInside];\n    }\n    return _goToTopBtn;\n}\n//回到顶部\n- (void)goToTop\n{\n    [UIView animateWithDuration:0.5 animations:^{\n        \n        \n        \n    }completion:^(BOOL finished){\n        \n    }];\n    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];\n    [self.collectView scrollToItemAtIndexPath:indexPath atScrollPosition:0 animated:YES];\n    \n    \n    \n}\n//获得文件路径\n-(NSString *)dataFilePath{\n    //检索Documents目录\n    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask,YES);//备注1\n    NSString *documentsDirectory = [paths objectAtIndex:0];//备注2\n    return [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@\"%@\",kFileName]];\n}\n\n-(void)initData{\n    NSString *filePath = [self dataFilePath];\n    NSLog(@\"filePath=%@\",filePath);\n    \n    //从文件中读取数据，首先判断文件是否存在\n    if([[NSFileManager defaultManager] fileExistsAtPath:filePath]){\n        //        NSArray *array = [[NSArray alloc]initWithContentsOfFile:filePath];\n        //因为直接写入不成功，所以序列化一下,这里反序列化取出\n        NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];\n        for (int i =0; i<[array count]; i++) {\n            [_shops addObject:[HomeModel initHomeModelWithDict:array[i]]];\n            //                        ShowCell *cell = [[ShowCell alloc]initShowCell];\n            //                        [_allCells addObject:cell];\n        }\n        //                    }if (showPage%2 ==0) {\n        //                        [[SDImageCache sharedImageCache] setValue:nil forKey:@\"memCache\"];\n        //                    }\n        \n        //先加载缓存数据\n        [self.collectView reloadData];\n    }\n    //后加载新数据\n    [self.collectView.header performSelector:@selector(beginRefreshing) withObject:nil];\n}\n-(void)clicked\n{\n    [self.navigationController popViewControllerAnimated:YES];\n}\n-(BOOL)prefersStatusBarHidden\n{\n    return YES;\n}\n\n- (NSData *)dataNamed:(NSString *)name {\n    NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@\"\"];\n    if (!path) return nil;\n    NSData *data = [NSData dataWithContentsOfFile:path];\n    return data;\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/MulitipleSectionViewController.h",
    "content": "//\n//  MulitipleSectionViewController.h\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/21.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MulitipleSectionViewController : UIViewController\n@property (strong, nonatomic) UIButton *leftBtn;\n@property (nonatomic,strong) UIImageView *titleImageView;\n\n@property (nonatomic,strong)UIButton *goToTopBtn;\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/MulitipleSectionViewController.m",
    "content": "//\n//  MulitipleSectionViewController.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/21.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"MulitipleSectionViewController.h\"\n#import \"Classes/SYStickHeaderWaterFallLayout.h\"\n#import \"HomeModel.h\"\n#import \"MJExtension.h\"\n#import \"SDCycleScrollView.h\"\n#import \"HomePageHeadView.h\"\n#import \"MJRefresh.h\"\n//#import \"RequestCustom.h\"\n#import \"BannerModel.h\"\n#import \"MBProgressHUD.h\"\n#import \"HPCollectionViewCell.h\"\n#import \"UIView+SDExtension.h\"\n#import \"SYSHomeRequest.h\"\n#import \"SYSHomeBannerRequest.h\"\n#import \"SYSMAINMacro.h\"\n\n@interface MulitipleSectionViewController ()<UICollectionViewDataSource,UICollectionViewDelegate,UIScrollViewDelegate,SDCycleScrollViewDelegate,SYStickHeaderWaterFallDelegate>\n{\n    NSInteger showPage;\n    //    notiNilView *_notinilView;\n    \n    UICollectionReusableView *reusableView;\n}\n@property (nonatomic,strong)UIScrollView *baseScrollView;\n@property (nonatomic,strong )SDCycleScrollView *cycleScrollADView;\n@property(nonatomic,strong)UICollectionView * collectView;\n@property(nonatomic,strong)NSMutableArray * shops;\n@property (nonatomic,strong)NSMutableArray *banners;\n@property (nonatomic,strong)NSMutableDictionary *optionalParam;\n@end\n#define kFileName @\"MulitipleSectionVC.plist\"\n\n@implementation MulitipleSectionViewController\n-(NSMutableArray *)banners\n{\n    if (_banners ==nil) {\n        self.banners = [NSMutableArray array];\n    }\n    return _banners;\n}\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    self.edgesForExtendedLayout = UIRectEdgeNone;\n    if (_shops==nil) {\n        self.shops = [NSMutableArray array];\n    }\n    if (_optionalParam ==nil) {\n        self.optionalParam = [[NSMutableDictionary alloc]init];\n    }\n    // Do any additional setup after loading the view.\n    [self initCollectionView];\n    [self initNavigationItem];\n    [self initRefresh];\n    [self initData];\n    \n    // Do any additional setup after loading the view.\n}\n-(void)initCollectionView\n{\n    SYStickHeaderWaterFallLayout *cvLayout = [[SYStickHeaderWaterFallLayout alloc] init];\n    cvLayout.delegate = self;\n    cvLayout.fixTop = 0;\n    cvLayout.isStickyHeader = YES;\n    cvLayout.isTopForHeader = YES;\n    \n    self.collectView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, kDeviceHeight -64 ) collectionViewLayout:cvLayout];\n    self.collectView.backgroundColor = [UIColor grayColor];\n    \n    [self.view addSubview:self.collectView];\n    [self.view insertSubview:self.goToTopBtn aboveSubview:self.collectView];\n    \n    [self.collectView registerNib:[UINib nibWithNibName:@\"HPCollectionViewCell\" bundle:nil] forCellWithReuseIdentifier:WaterfallCellIdentifier];\n    \n    [self.collectView registerClass:[HomePageHeadView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier];\n    [self.collectView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@\"cell\"];\n    [self.collectView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@\"head\"];\n    \n    self.collectView.delegate =self;\n    self.collectView.dataSource =self;\n    \n    self.collectView.footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{\n        // 进入刷新状态后会自动调用这个block\n        showPage += 1;\n        NSString *page = [NSString stringWithFormat:@\"%ld\",(long)showPage];\n        [self requestHomePageList:page refreshType:@\"footer\"];\n    }];\n}\n-(void)initNavigationItem\n{\n    //    self.edgesForExtendedLayout = UIRectEdgeNone;\n    self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n    self.leftBtn.frame = CGRectMake(16, 16, 14, 13);\n    [self.leftBtn addTarget:self action:@selector(clicked) forControlEvents:UIControlEventTouchUpInside];\n    [self.leftBtn setImage:[UIImage imageNamed:@\"top_sidebar.pdf\"]  forState:UIControlStateNormal];\n    //    [self.leftBtn setEnlargeEdgeWithTop:10 right:20 bottom:10 left:20];\n    UIBarButtonItem *barLeftBtn = [[UIBarButtonItem alloc]initWithCustomView:self.leftBtn];\n    UIImageView *titleImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 34, 20)];\n    titleImageView.image = [UIImage imageNamed:@\"home_logo.pdf\"];\n    _titleImageView = titleImageView;\n    self.navigationItem.titleView = _titleImageView;\n    [self.navigationItem setLeftBarButtonItem:barLeftBtn];\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n\n- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView\n{\n    [self.collectView.collectionViewLayout invalidateLayout];\n    \n    return 2;\n}\n- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section\n{\n    NSInteger itemCount;\n    if (section ==1) {\n        if (self.shops.count ==0) {\n            itemCount = 0;\n        }else\n        {\n            itemCount = self.shops.count;\n        }\n        \n        \n    }\n    else\n    {\n        itemCount = 1;\n    }\n    return itemCount;\n}\n\n- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath\n{\n    reusableView = nil;\n    if ([kind isEqual:UICollectionElementKindSectionHeader]) {\n        HomePageHeadView *headView= (HomePageHeadView *)[collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier forIndexPath:indexPath];\n        //            headView = [[HomePageHeadView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 30)];\n        headView.tag = 1001 +indexPath.section;\n        reusableView = headView;\n        return reusableView;\n    }\n    \n    return nil;\n    \n}\n- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    if (indexPath.section ==1) {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shops[indexPath.item];\n        UITapGestureRecognizer *personalGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(imageGesture:)];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        [cell.markImageView addGestureRecognizer:personalGesture];\n        return cell;\n        \n    }else if (indexPath.section ==0)\n    {\n        SDCycleScrollView *cycleView = [[SDCycleScrollView alloc] initWithFrame:CGRectMake(0, 18, kDeviceWidth, 180)];\n        cycleView.autoScroll = true;\n        cycleView.autoScrollTimeInterval = 4.0;\n        cycleView.delegate = self;\n        cycleView.pageControlAliment = SDCycleScrollViewPageContolAlimentRight;\n        SYSHomeBannerRequest *bannerRequest = [[SYSHomeBannerRequest alloc] initRequestWithUserId:[[NSUserDefaults standardUserDefaults] objectForKey:@\"user_id\"]];\n        [bannerRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n            if ([status isEqual:@\"1\"]) {\n                NSArray *dataArray = [obj objectForKey:@\"data\"];\n                //                    NSDictionary *dataDict = (NSDictionary *)[obj objectForKey:@\"data\"];\n                NSMutableArray *imageArray = [NSMutableArray array];\n                _banners = [NSMutableArray array];\n                if ([status isEqual:@\"1\"]) {\n                    for (int i =0; i<[dataArray count]; i++) {\n                        [_banners addObject:[BannerModel initBannerWithDict:dataArray[i]]];\n                        [imageArray addObject:[dataArray[i] objectForKey:@\"img_url\"]];\n                    }\n                    cycleView.imageURLStringsGroup = imageArray;\n                    \n                }\n            }\n        } failure:^(__kindof BaseRequest *request, id obj) {\n            \n        }];\n        //    [self.baseScrollView addSubview:cycleView];\n        _cycleScrollADView = cycleView;\n        \n        \n        \n        UICollectionViewCell *cycleCollectionViewCell = [collectionView dequeueReusableCellWithReuseIdentifier:@\"cell\" forIndexPath:indexPath ];\n        cycleCollectionViewCell.frame = cycleView.frame;\n        //        cycleCollectionViewCell.mj_y =38;\n        //            [[UICollectionViewCell alloc]initWithFrame:cycleView.frame];\n        [cycleCollectionViewCell addSubview:cycleView];\n        return cycleCollectionViewCell;\n        \n    }\n    \n    return nil;\n    \n}\n\n- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    \n}\n//代理方法\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\n heightForItemAtIndexPath:(NSIndexPath *)indexPath {\n    CGFloat cellHeight;\n    if (indexPath.section ==1) {\n        if (self.shops.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shops[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n        \n        \n    }else if (indexPath.section ==0)\n    {\n        cellHeight =  180;\n    }\n    return cellHeight;\n}\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\nheightForHeaderAtIndexPath:(NSIndexPath *)indexPath {\n    return 38.0f;\n}\n- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    widthForItemInSection:( NSInteger )section\n{\n    if (section ==0) {\n        return kDeviceWidth;\n    }else if (section ==1)\n    {\n        return (kDeviceWidth-15)/2;\n    }\n    return 0;\n}\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n              topInSection:(NSInteger )section\n{\n    if (section ==0) {\n        return 3;\n    }else if (section ==1)\n    {\n        return 10;\n    }\n    return 10;\n}\n\n- (CGFloat) collectionView:(nonnull UICollectionView *)collectionView\n                    layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n           bottomInSection:( NSInteger)section\n{\n    return 5;\n}\n\n//SDCycleScrollViewDelegate\n- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index\n{\n    //广告页跳转\n    //广告页跳转\n}\n\n-(void)requestHomePageList:(NSString *)page refreshType:(NSString *)type\n{\n//    SYSHomeRequest *homeRequest = [[SYSHomeRequest alloc] initRequestWithPageLine:10 pageNum:[page integerValue]];\n    \n    __weak typeof(self) weakSelf = self;\n    \n    //    if ([type isEqualToString:@\"header\"]) {\n    //        if (showPage ==2) {\n    //            self.shops = [[self.shops subarrayWithRange:NSMakeRange(0, 10)] mutableCopy];\n    ////            [self.collectView.collectionViewLayout invalidateLayout];\n    ////            [self.collectView setContentOffset:CGPointZero animated:NO];\n    //        }\n    //\n    //    }\n    NSData *data =  [self dataNamed:@\"HomeData.json\"];\n    \n    NSDictionary *obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];\n    dispatch_async(dispatch_get_main_queue(), ^{\n        \n        if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n            if ([page isEqualToString:@\"1\"]) {\n                [_shops removeAllObjects];\n                [weakSelf.collectView.header endRefreshing];\n                [weakSelf.collectView.collectionViewLayout invalidateLayout];\n                [weakSelf.collectView reloadData];\n                \n                return;\n                \n            }else\n            {\n                MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n                hud.mode = MBProgressHUDModeText;\n                hud.labelText = @\"内容看光了 刷新也白搭\";\n                hud.margin = 10.f;\n                hud.removeFromSuperViewOnHide = YES;\n                [hud hide:YES afterDelay:1];\n                [weakSelf.collectView.footer endRefreshing];\n                return ;\n            }\n            \n        }\n        NSArray *dataArray = [obj objectForKey:@\"data\"];\n        NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n        if ([status isEqual:@\"1\"]) {\n            \n            if ([status isEqual:@\"1\"]) {\n                if ([page isEqualToString:@\"1\"]) {\n                    \n                    [weakSelf.shops removeAllObjects];\n                    showPage = 1;\n                }\n                for (int i =0; i<[dataArray count]; i++) {\n                    [weakSelf.shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n                }\n                \n            }\n            \n            if ([type isEqualToString:@\"header\"]) {\n                [weakSelf.collectView.header endRefreshing];\n            }else if([type isEqualToString:@\"footer\"])\n            {\n                [weakSelf.collectView.footer endRefreshing];\n            }\n            \n            [UIView performWithoutAnimation:^{\n                if ([type isEqualToString:@\"head\"]) {\n                    [weakSelf.collectView reloadData];\n                    \n                }else\n                {\n                    [weakSelf.collectView reloadData];\n                    \n                }\n            }];\n            \n            [weakSelf.collectView.collectionViewLayout invalidateLayout];\n            \n            \n        }\n        \n    });\n\n//    [homeRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n//        dispatch_async(dispatch_get_main_queue(), ^{\n//            \n//            if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n//                if ([page isEqualToString:@\"1\"]) {\n//                    [_shops removeAllObjects];\n//                    [weakSelf.collectView.header endRefreshing];\n//                    [weakSelf.collectView.collectionViewLayout invalidateLayout];\n//                    [weakSelf.collectView reloadData];\n//                    \n//                    return;\n//                    \n//                }else\n//                {\n//                    MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n//                    hud.mode = MBProgressHUDModeText;\n//                    hud.labelText = @\"内容看光了 刷新也白搭\";\n//                    hud.margin = 10.f;\n//                    hud.removeFromSuperViewOnHide = YES;\n//                    [hud hide:YES afterDelay:1];\n//                    [weakSelf.collectView.footer endRefreshing];\n//                    return ;\n//                }\n//                \n//            }\n//            NSArray *dataArray = [obj objectForKey:@\"data\"];\n//            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n//            if ([status isEqual:@\"1\"]) {\n//                \n//                if ([status isEqual:@\"1\"]) {\n//                    if ([page isEqualToString:@\"1\"]) {\n//                        \n//                        [weakSelf.shops removeAllObjects];\n//                        showPage = 1;\n//                    }\n//                    for (int i =0; i<[dataArray count]; i++) {\n//                        [weakSelf.shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n//                    }\n//                    \n//                }\n//                \n//                if ([type isEqualToString:@\"header\"]) {\n//                    [weakSelf.collectView.header endRefreshing];\n//                }else if([type isEqualToString:@\"footer\"])\n//                {\n//                    [weakSelf.collectView.footer endRefreshing];\n//                }\n//                \n//                [UIView performWithoutAnimation:^{\n//                    if ([type isEqualToString:@\"head\"]) {\n//                        [weakSelf.collectView reloadData];\n//                        \n//                    }else\n//                    {\n//                        [weakSelf.collectView reloadData];\n//                        \n//                    }\n//                }];\n//                \n//                [weakSelf.collectView.collectionViewLayout invalidateLayout];\n//                \n//                \n//            }\n//            \n//        });\n//        \n//    } failure:^(__kindof BaseRequest *request, id obj) {\n//        if (weakSelf.view.superview) {\n//            MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view.superview animated:YES];\n//            hud.mode = MBProgressHUDModeText;\n//            hud.labelText = @\"网络不给力 挥泪重连中\";\n//            hud.margin = 10.f;\n//            hud.removeFromSuperViewOnHide = YES;\n//            [hud hide:YES afterDelay:1];\n//        }\n//        \n//        if ([type isEqualToString:@\"header\"]) {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.header endRefreshing];\n//            });\n//            \n//            \n//        }else if([type isEqualToString:@\"footer\"])\n//        {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.footer endRefreshing];\n//                \n//            });\n//            \n//        }\n//    }];\n    \n}\n//\n\n-(void)doAfter\n{\n    \n}\n\n\n-(void)imageGesture:(UIGestureRecognizer *)tap\n{\n    HPCollectionViewCell * cell = (HPCollectionViewCell *)tap.view.superview.superview;\n    NSIndexPath *indexPath = [_collectView indexPathForCell:cell];\n    cell.shop = self.shops[indexPath.item];\n    //    PersonalCenterViewController *personalViewController = [[PersonalCenterViewController alloc]init];\n    //    personalViewController.user_id = cell.shop.user_id;\n    //    [self.navigationController pushViewController:personalViewController animated:NO];\n}\n\n\n//- (void)setScrollADImageURLStringsArray:(NSArray *)scrollADImageURLStringsArray\n//{\n//    _scrollADImageURLStringsArray = scrollADImageURLStringsArray;\n//\n//    _cycleScrollADView.imageURLStringsGroup = scrollADImageURLStringsArray;\n//}\n-(void)initRefresh\n{\n    UIImage *imgR1 = [UIImage imageNamed:@\"shuaxin1\"];\n    \n    UIImage *imgR2 = [UIImage imageNamed:@\"shuaxin2\"];\n    \n    //    UIImage *imgR3 = [UIImage imageNamed:@\"cameras_3\"];\n    \n    NSArray *reFreshone = [NSArray arrayWithObjects:imgR1, nil];\n    \n    NSArray *reFreshtwo = [NSArray arrayWithObjects:imgR2, nil];\n    \n    NSArray *reFreshthree = [NSArray arrayWithObjects:imgR1,imgR2, nil];\n    \n    \n    \n    \n    \n    \n    MJRefreshGifHeader  *header = [MJRefreshGifHeader headerWithRefreshingBlock:^{\n        \n        [self requestHomePageList:@\"1\" refreshType:@\"header\"];\n        \n    }];\n    \n    [header setImages:reFreshone forState:MJRefreshStateIdle];\n    \n    [header setImages:reFreshtwo forState:MJRefreshStatePulling];\n    [header setImages:reFreshthree duration:0.5 forState:MJRefreshStateRefreshing];\n    //    [header setImages:reFreshthree forState:MJRefreshStateRefreshing];\n    \n    header.lastUpdatedTimeLabel.hidden  = YES;\n    \n    //    header.stateLabel.hidden            = YES;\n    \n    self.collectView.header   = header;\n    \n    \n}\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView\n{\n    if ( self.collectView.contentOffset.y > 800) {\n        self.goToTopBtn.alpha = 1;\n        //        [self.view bringSubviewToFront:_goToTopBtn];\n    } else {\n        self.goToTopBtn.alpha = 0;\n    }\n}\n-(UIButton *)goToTopBtn\n{\n    if(!_goToTopBtn)\n    {\n        _goToTopBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n        _goToTopBtn.backgroundColor = [UIColor clearColor];\n        _goToTopBtn.frame = CGRectMake(kDeviceWidth-52, kDeviceHeight-52, 39, 39);\n        _goToTopBtn.alpha = 0;\n        [_goToTopBtn setImage:[UIImage imageNamed:@\"up\"] forState:UIControlStateNormal];\n        [_goToTopBtn addTarget:self action:@selector(goToTop) forControlEvents:UIControlEventTouchUpInside];\n    }\n    return _goToTopBtn;\n}\n//回到顶部\n- (void)goToTop\n{\n    [UIView animateWithDuration:0.5 animations:^{\n        \n        \n        \n    }completion:^(BOOL finished){\n        \n    }];\n    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];\n    [self.collectView scrollToItemAtIndexPath:indexPath atScrollPosition:0 animated:YES];\n    \n    \n    \n}\n//获得文件路径\n-(NSString *)dataFilePath{\n    //检索Documents目录\n    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask,YES);//备注1\n    NSString *documentsDirectory = [paths objectAtIndex:0];//备注2\n    return [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@\"%@\",kFileName]];\n}\n\n-(void)initData{\n    NSString *filePath = [self dataFilePath];\n    NSLog(@\"filePath=%@\",filePath);\n    \n    //从文件中读取数据，首先判断文件是否存在\n    if([[NSFileManager defaultManager] fileExistsAtPath:filePath]){\n        //        NSArray *array = [[NSArray alloc]initWithContentsOfFile:filePath];\n        //因为直接写入不成功，所以序列化一下,这里反序列化取出\n        NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];\n        for (int i =0; i<[array count]; i++) {\n            [_shops addObject:[HomeModel initHomeModelWithDict:array[i]]];\n            //                        ShowCell *cell = [[ShowCell alloc]initShowCell];\n            //                        [_allCells addObject:cell];\n        }\n        //                    }if (showPage%2 ==0) {\n        //                        [[SDImageCache sharedImageCache] setValue:nil forKey:@\"memCache\"];\n        //                    }\n        \n        //先加载缓存数据\n        [self.collectView reloadData];\n    }\n    //后加载新数据\n    [self.collectView.header performSelector:@selector(beginRefreshing) withObject:nil];\n}\n-(void)clicked\n{\n    [self.navigationController popViewControllerAnimated:YES];\n}\n-(BOOL)prefersStatusBarHidden\n{\n    return YES;\n}\n\n- (NSData *)dataNamed:(NSString *)name {\n    NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@\"\"];\n    if (!path) return nil;\n    NSData *data = [NSData dataWithContentsOfFile:path];\n    return data;\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/NetWorkAgent.h",
    "content": "//\n//  NetWorkAgent.h\n//  YZPro\n//\n//  Created by suya on 16/4/26.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"BaseRequest.h\"\n@interface NetWorkAgent : NSObject\n+(NetWorkAgent *)sharedInstance;\n\n- (void)addRequest:(BaseRequest *)request;\n\n- (void)cancelRequest:(BaseRequest *)request;\n\n- (void)cancelAllRequests;\n\n/// 根据request和networkConfig构建url\n- (NSString *)buildRequestUrl:(BaseRequest *)request;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/NetWorkAgent.m",
    "content": "//\n//  NetWorkAgent.m\n//  YZPro\n//\n//  Created by suya on 16/4/26.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import \"NetWorkAgent.h\"\n#import \"AFNetworking.h\"\n#import \"BaseRequest.h\"\n#import \"NetWorkConfig.h\"\n#import \"NetWorkPrivate.h\"\n@implementation NetWorkAgent\n{\n    AFHTTPSessionManager *_manager;\n    NetWorkConfig *_config;\n    NSMutableDictionary *_requestsRecord;\n}\n+(NetWorkAgent *)sharedInstance\n{\n    static id sharedInstance = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        sharedInstance = [[self alloc] init];\n    });\n    return sharedInstance;\n}\n-(instancetype )init\n{\n    self = [super init];\n    if (self) {\n        _config = [NetWorkConfig shareInstance];\n        _requestsRecord = [NSMutableDictionary dictionary];\n        _manager = [AFHTTPSessionManager manager];\n        _manager.operationQueue.maxConcurrentOperationCount = 4;\n//        _manager.requestSerializer.timeoutInterval = 15;\n        _manager.securityPolicy = _config.securityPolicy;\n    }\n    return self;\n}\n-(void)addRequest:(BaseRequest *)request\n{\n    NetWorkRequestMethod method = [request requestMethod];\n    NSString *url = [self buildRequestUrl:request];\n    id param = request.requestArgument;\n    AFConstructingBlock constructingBlock = [request constructingBodyBlock];\n    \n    if (request.requestSerializerType == NetWorkSerializerTypeHttp) {\n        _manager.requestSerializer = [AFHTTPRequestSerializer serializer];\n    } else if (request.requestSerializerType == NetWorkSerializerTypeJson) {\n        _manager.requestSerializer = [AFJSONRequestSerializer serializer];\n    }\n    \n    _manager.requestSerializer.timeoutInterval = [request requestTimeoutInterval];\n    \n    // if api need server username and password\n    NSArray *authorizationHeaderFieldArray = [request requestAuthorizationHeaderFieldArray];\n    if (authorizationHeaderFieldArray != nil) {\n        [_manager.requestSerializer setAuthorizationHeaderFieldWithUsername:(NSString *)authorizationHeaderFieldArray.firstObject\n                                                                   password:(NSString *)authorizationHeaderFieldArray.lastObject];\n    }\n    \n    // if api need add custom value to HTTPHeaderField\n    NSDictionary *headerFieldValueDictionary = [request requestHeaderFieldValueDictionary];\n    if (headerFieldValueDictionary != nil) {\n        for (id httpHeaderField in headerFieldValueDictionary.allKeys) {\n            id value = headerFieldValueDictionary[httpHeaderField];\n            if ([httpHeaderField isKindOfClass:[NSString class]] && [value isKindOfClass:[NSString class]]) {\n                [_manager.requestSerializer setValue:(NSString *)value forHTTPHeaderField:(NSString *)httpHeaderField];\n            } else {\n//                YTKLog(@\"Error, class of key/value in headerFieldValueDictionary should be NSString.\");\n            }\n        }\n    }\n    \n    // if api build custom url request\n    NSURLRequest *customUrlRequest= [request buildCustomUrlRequest];\n    if (customUrlRequest) {\n        NSURLSession *session = [NSURLSession sharedSession];\n        NSURLSessionDataTask *task = [session dataTaskWithRequest:customUrlRequest completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {\n            [self handleRequestResult:task responseObject:response];\n        }];\n        request.requestDataTask = task;\n//        [_manager.tasks ]\n//        [task ]\n//        AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:customUrlRequest];\n//        [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {\n//            [self handleRequestResult:operation];\n//        } failure:^(AFHTTPRequestOperation *operation, NSError *error) {\n//            [self handleRequestResult:operation];\n//        }];\n//        request.requestOperation = operation;\n//        operation.responseSerializer = _manager.responseSerializer;\n//        [_manager.operationQueue addOperation:operation];\n    } else {\n        if (method == NetWorkRequestMethodGet) {\n//            if (request.resumableDownloadPath) {\n//                // add parameters to URL;\n//                NSString *filteredUrl = [YTKNetworkPrivate urlStringWithOriginUrlString:url appendParameters:param];\n//                \n//                NSURLRequest *requestUrl = [NSURLRequest requestWithURL:[NSURL URLWithString:filteredUrl]];\n//                AFDownloadRequestOperation *operation = [[AFDownloadRequestOperation alloc] initWithRequest:requestUrl\n//                                                                                                 targetPath:request.resumableDownloadPath shouldResume:YES];\n//                [operation setProgressiveDownloadProgressBlock:request.resumableDownloadProgressBlock];\n//                [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {\n//                    [self handleRequestResult:operation];\n//                }                                failure:^(AFHTTPRequestOperation *operation, NSError *error) {\n//                    [self handleRequestResult:operation];\n//                }];\n//                request.requestOperation = operation;\n//                [_manager.operationQueue addOperation:operation];\n//            } else {\n            request.requestDataTask = [_manager GET:url parameters:param progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {\n                [self handleRequestResult:task responseObject:responseObject];\n            } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {\n                [self handleRequestResult:task responseObject:error];\n            }];\n\n//            }\n        } else if (method == NetWorkRequestMethodPost) {\n            if (constructingBlock != nil) {\n                request.requestDataTask =[_manager POST:url parameters:param constructingBodyWithBlock:constructingBlock progress:^(NSProgress * _Nonnull uploadProgress) {\n                    \n                } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {\n                    [self handleRequestResult:task responseObject:responseObject];\n                } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {\n                    [self handleRequestResult:task responseObject:error];\n                }];\n                \n            } else {\n                request.requestDataTask =[_manager POST:url parameters:param progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {\n                    [self handleRequestResult:task responseObject:responseObject];\n                } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {\n                    [self handleRequestResult:task responseObject:error];\n                }];\n            }\n            \n        } else if (method == NetWorkRequestMethodHead) {\n            request.requestDataTask = [_manager HEAD:url parameters:param success:^(NSURLSessionDataTask * _Nonnull task) {\n                [self handleRequestResult:task responseObject:nil];\n            } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {\n                [self handleRequestResult:task responseObject:error];\n            }];\n            \n        } else if (method == NetWorkRequestMethodPut) {\n            request.requestDataTask = [_manager PUT:url parameters:param success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {\n                [self handleRequestResult:task responseObject:responseObject];\n            } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {\n                [self handleRequestResult:task responseObject:error];\n            }];\n            \n        } else if (method == NetWorkRequestMethodDelete) {\n            request.requestDataTask = [_manager DELETE:url parameters:param success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {\n                [self handleRequestResult:task responseObject:responseObject];\n            } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {\n                [self handleRequestResult:task responseObject:error];\n            }];\n            \n        } else if (method == NetWorkRequestMethodPatch) {\n            request.requestDataTask = [_manager PATCH:url parameters:param success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {\n                [self handleRequestResult:task responseObject:responseObject];\n            } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {\n                [self handleRequestResult:task responseObject:error];\n            }];\n            \n        } else {\n//            YTKLog(@\"Error, unsupport method type\");\n            return;\n        }\n    }\n    [self addOperation:request];\n}\n\n\n-(NSString *)buildRequestUrl:(BaseRequest *)request\n{\n    NSString *detailUrl = [request requestUrl];\n    if ([detailUrl hasPrefix:@\"http\"]) {\n        return detailUrl;\n    }\n    // filter url\n    NSArray *filters = [_config urlFilters];\n    for (id<YTKUrlFilterProtocol> f in filters) {\n        detailUrl = [f filterUrl:detailUrl withRequest:request];\n    }\n    \n    NSString *baseUrl;\n    if ([request baseUrl].length > 0) {\n        baseUrl = [request baseUrl];\n    } else {\n        baseUrl = [_config baseUrl];\n    }\n    \n    \n    return [NSString stringWithFormat:@\"%@%@\", baseUrl, detailUrl];\n\n}\n- (void)cancelRequest:(BaseRequest *)request {\n    [request.requestDataTask cancel];\n    [self removeOperation:request.requestDataTask];\n    [request clearCompletionBlock];\n}\n\n- (void)cancelAllRequests {\n    NSDictionary *copyRecord = [_requestsRecord copy];\n    for (NSString *key in copyRecord) {\n        BaseRequest *request = copyRecord[key];\n        [request stop];\n    }\n}\n\n- (BOOL)checkResult:(BaseRequest *)request {\n    BOOL result = [request statusCodeValidator];\n    if (!result) {\n        return result;\n    }\n    id validator = [request jsonValidator];\n    if (validator != nil) {\n        id json = [request responseJSONObject];\n        result = [NetWorkPrivate checkJson:json withValidator:validator];\n    }\n    return result;\n}\n\n- (void)handleRequestResult:(NSURLSessionDataTask *)task responseObject:(id  _Nullable )responseObject {\n    NSString *key = [self requestHashKey:task];\n    BaseRequest *request = _requestsRecord[key];\n//    YTKLog(@\"Finished Request: %@\", NSStringFromClass([request class]));\n    if (request) {\n        BOOL succeed = [self checkResult:request];\n        if (succeed &&![responseObject isKindOfClass:[NSError class]]) {\n            [request toggleAccessoriesWillStopCallBack];\n            [request requestCompleteFilter];\n            if (request.delegate != nil) {\n                [request.delegate requestFinished:request];\n            }\n            if (request.successCompletionBlock) {\n                request.successCompletionBlock(request,responseObject);\n            }\n            [request toggleAccessoriesDidStopCallBack];\n        } else {\n//            YTKLog(@\"Request %@ failed, status code = %ld\",\n//                   NSStringFromClass([request class]), (long)request.responseStatusCode);\n            [request toggleAccessoriesWillStopCallBack];\n            [request requestFailedFilter];\n            if (request.delegate != nil) {\n                [request.delegate requestFailed:request];\n            }\n            if (request.failureCompletionBlock) {\n                request.failureCompletionBlock(request,responseObject);\n            }\n            [request toggleAccessoriesDidStopCallBack];\n        }\n    }\n    [self removeOperation:task];\n    [request clearCompletionBlock];\n}\n\n- (NSString *)requestHashKey:(NSURLSessionTask *)task {\n    NSString *key = [NSString stringWithFormat:@\"%lu\", (unsigned long)[task taskIdentifier]];\n    return key;\n}\n\n- (void)addOperation:(BaseRequest *)request {\n    if (request.requestDataTask != nil) {\n        NSString *key = [self requestHashKey:request.requestDataTask];\n        @synchronized(self) {\n            _requestsRecord[key] = request;\n        }\n    }\n}\n\n- (void)removeOperation:(NSURLSessionTask *)task {\n    NSString *key = [self requestHashKey:task];\n    @synchronized(self) {\n        [_requestsRecord removeObjectForKey:key];\n    }\n//    YTKLog(@\"Request queue size = %lu\", (unsigned long)[_requestsRecord count]);\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/NetWorkConfig.h",
    "content": "//\n//  NetWorkConfig.h\n//  YZPro\n//\n//  Created by suya on 16/4/26.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"AFNetworking.h\"\n#import \"BaseRequest.h\"\n/**\n *  Url采集器\n */\n@protocol YTKUrlFilterProtocol <NSObject>\n- (NSString *)filterUrl:(NSString *)originUrl withRequest:(BaseRequest *)request;\n@end\n\n\n@interface NetWorkConfig : NSObject\n//单例\n+(NetWorkConfig *)shareInstance;\n\n@property (strong, nonatomic) NSString *baseUrl;\n//@property (strong, nonatomic) NSString *cdnUrl;\n@property (strong, nonatomic, readonly) NSArray *urlFilters;\n//@property (strong, nonatomic, readonly) NSArray *cacheDirPathFilters;\n@property (strong, nonatomic) AFSecurityPolicy *securityPolicy;\n\n//填充采集器\n- (void)addUrlFilter:(id<YTKUrlFilterProtocol>)filter;\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/NetWorkConfig.m",
    "content": "//\n//  NetWorkConfig.m\n//  YZPro\n//\n//  Created by suya on 16/4/26.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import \"NetWorkConfig.h\"\n\n@implementation NetWorkConfig\n{\n    NSMutableArray *_urlFilters;\n}\n\n+(NetWorkConfig *)shareInstance\n{\n    static id shareInstance = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        shareInstance = [[self alloc] init];\n    });\n    return shareInstance;\n}\n\n-(instancetype)init\n{\n    self = [super init];\n    if (self) {\n        _securityPolicy = [AFSecurityPolicy defaultPolicy];\n        _urlFilters = [NSMutableArray array];\n    }\n    return self;\n}\n\n- (void)addUrlFilter:(id<YTKUrlFilterProtocol>)filter\n{\n    [_urlFilters addObject:filter];\n}\n\n-(NSArray *)urlFilters\n{\n    return [_urlFilters copy];\n}\n@end\n\n"
  },
  {
    "path": "SYStickHeaderWaterFall/NetWorkPrivate.h",
    "content": "//\n//  NetWorkPrivate.h\n//  YZPro\n//\n//  Created by suya on 16/4/26.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"BaseRequest.h\"\n\n@interface NetWorkPrivate : NSObject\n+ (BOOL)checkJson:(id)json withValidator:(id)validatorJson;\n\n+ (NSString *)urlStringWithOriginUrlString:(NSString *)originUrlString\n                          appendParameters:(NSDictionary *)parameters;\n\n+ (void)addDoNotBackupAttribute:(NSString *)path;\n\n+ (NSString *)md5StringFromString:(NSString *)string;\n\n+ (NSString *)appVersionString;\n@end\n\n\n@interface BaseRequest (RequestAccessory)\n\n- (void)toggleAccessoriesWillStartCallBack;\n- (void)toggleAccessoriesWillStopCallBack;\n- (void)toggleAccessoriesDidStopCallBack;\n\n@end"
  },
  {
    "path": "SYStickHeaderWaterFall/NetWorkPrivate.m",
    "content": "//\n//  NetWorkPrivate.m\n//  YZPro\n//\n//  Created by suya on 16/4/26.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import \"NetWorkPrivate.h\"\n#import \"BaseRequest.h\"\n#import <CommonCrypto/CommonDigest.h>\n\n@implementation NetWorkPrivate\n+ (BOOL)checkJson:(id)json withValidator:(id)validatorJson {\n    if ([json isKindOfClass:[NSDictionary class]] &&\n        [validatorJson isKindOfClass:[NSDictionary class]]) {\n        NSDictionary * dict = json;\n        NSDictionary * validator = validatorJson;\n        BOOL result = YES;\n        NSEnumerator * enumerator = [validator keyEnumerator];\n        NSString * key;\n        while ((key = [enumerator nextObject]) != nil) {\n            id value = dict[key];\n            id format = validator[key];\n            if ([value isKindOfClass:[NSDictionary class]]\n                || [value isKindOfClass:[NSArray class]]) {\n                result = [self checkJson:value withValidator:format];\n                if (!result) {\n                    break;\n                }\n            } else {\n                if ([value isKindOfClass:format] == NO &&\n                    [value isKindOfClass:[NSNull class]] == NO) {\n                    result = NO;\n                    break;\n                }\n            }\n        }\n        return result;\n    } else if ([json isKindOfClass:[NSArray class]] &&\n               [validatorJson isKindOfClass:[NSArray class]]) {\n        NSArray * validatorArray = (NSArray *)validatorJson;\n        if (validatorArray.count > 0) {\n            NSArray * array = json;\n            NSDictionary * validator = validatorJson[0];\n            for (id item in array) {\n                BOOL result = [self checkJson:item withValidator:validator];\n                if (!result) {\n                    return NO;\n                }\n            }\n        }\n        return YES;\n    } else if ([json isKindOfClass:validatorJson]) {\n        return YES;\n    } else {\n        return NO;\n    }\n}\n\n+ (NSString *)urlParametersStringFromParameters:(NSDictionary *)parameters {\n    NSMutableString *urlParametersString = [[NSMutableString alloc] initWithString:@\"\"];\n    if (parameters && parameters.count > 0) {\n        for (NSString *key in parameters) {\n            NSString *value = parameters[key];\n            value = [NSString stringWithFormat:@\"%@\",value];\n            value = [self urlEncode:value];\n            [urlParametersString appendFormat:@\"&%@=%@\", key, value];\n        }\n    }\n    return urlParametersString;\n}\n\n+ (NSString *)urlStringWithOriginUrlString:(NSString *)originUrlString appendParameters:(NSDictionary *)parameters {\n    NSString *filteredUrl = originUrlString;\n    NSString *paraUrlString = [self urlParametersStringFromParameters:parameters];\n    if (paraUrlString && paraUrlString.length > 0) {\n        if ([originUrlString rangeOfString:@\"?\"].location != NSNotFound) {\n            filteredUrl = [filteredUrl stringByAppendingString:paraUrlString];\n        } else {\n            filteredUrl = [filteredUrl stringByAppendingFormat:@\"?%@\", [paraUrlString substringFromIndex:1]];\n        }\n        return filteredUrl;\n    } else {\n        return originUrlString;\n    }\n}\n\n\n+ (NSString*)urlEncode:(NSString*)str {\n    //different library use slightly different escaped and unescaped set.\n    //below is copied from AFNetworking but still escaped [] as AF leave them for Rails array parameter which we don't use.\n    //https://github.com/AFNetworking/AFNetworking/pull/555\n    NSString *result = (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (__bridge CFStringRef)str, CFSTR(\".\"), CFSTR(\":/?#[]@!$&'()*+,;=\"), kCFStringEncodingUTF8);\n    return result;\n}\n\n+ (void)addDoNotBackupAttribute:(NSString *)path {\n    NSURL *url = [NSURL fileURLWithPath:path];\n    NSError *error = nil;\n    [url setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:&error];\n    if (error) {\n//        YTKLog(@\"error to set do not backup attribute, error = %@\", error);\n    }\n}\n\n+ (NSString *)md5StringFromString:(NSString *)string {\n    if(string == nil || [string length] == 0)\n        return nil;\n    \n    const char *value = [string UTF8String];\n    \n    unsigned char outputBuffer[CC_MD5_DIGEST_LENGTH];\n    CC_MD5(value, (CC_LONG)strlen(value), outputBuffer);\n    \n    NSMutableString *outputString = [[NSMutableString alloc] initWithCapacity:CC_MD5_DIGEST_LENGTH * 2];\n    for(NSInteger count = 0; count < CC_MD5_DIGEST_LENGTH; count++){\n        [outputString appendFormat:@\"%02x\",outputBuffer[count]];\n    }\n    \n    return outputString;\n}\n\n+ (NSString *)appVersionString {\n    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@\"CFBundleShortVersionString\"];\n}\n@end\n\n@implementation BaseRequest(RequestAccessory)\n- (void)toggleAccessoriesWillStartCallBack\n{\n    for ( id<RequestAccescory> accessory in self.requestAccessories) {\n        if ([accessory respondsToSelector:@selector(requestWillStart:)]) {\n            [accessory requestWillStart:self];\n        }\n    }\n}\n\n-(void)toggleAccessoriesWillStopCallBack\n{\n    for ( id<RequestAccescory> accessory in self.requestAccessories) {\n        if ([accessory respondsToSelector:@selector(requestWillStop:)]) {\n            [accessory requestWillStop:self];\n        }\n    }\n}\n\n-(void)toggleAccessoriesDidStopCallBack\n{\n    for ( id<RequestAccescory> accessory in self.requestAccessories) {\n        if ([accessory respondsToSelector:@selector(requestDidStop:)]) {\n            [accessory requestDidStop:self];\n        }\n    }\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/NoHeaderNoFooterViewController.h",
    "content": "//\n//  NoHeaderNoFooterViewController.h\n//  SYStickHeaderWaterFall\n//\n//  Created by 张苏亚 on 16/5/3.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NoHeaderNoFooterViewController : UIViewController\n@property (strong, nonatomic) UIButton *leftBtn;\n@property (nonatomic,strong) UIImageView *titleImageView;\n@property (nonatomic,strong)UIButton *goToTopBtn;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/NoHeaderNoFooterViewController.m",
    "content": "//\n//  NoHeaderNoFooterViewController.m\n//  SYStickHeaderWaterFall\n//\n//  Created by 张苏亚 on 16/5/3.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"NoHeaderNoFooterViewController.h\"\n#import \"Classes/SYStickHeaderWaterFallLayout.h\"\n#import \"HomeModel.h\"\n#import \"MJExtension.h\"\n#import \"SDCycleScrollView.h\"\n#import \"HomePageHeadView.h\"\n#import \"MJRefresh.h\"\n//#import \"RequestCustom.h\"\n#import \"BannerModel.h\"\n#import \"MBProgressHUD.h\"\n#import \"HPCollectionViewCell.h\"\n#import \"UIView+SDExtension.h\"\n#import \"SYSHomeRequest.h\"\n#import \"SYSHomeBannerRequest.h\"\n#import \"SYSMAINMacro.h\"\n@interface NoHeaderNoFooterViewController ()< UICollectionViewDataSource,UICollectionViewDelegate,UIScrollViewDelegate,SYStickHeaderWaterFallDelegate>\n{\n    NSInteger showPage;\n    HomePageHeadView *headView;\n}\n\n@property (nonatomic,strong)UIScrollView *baseScrollView;\n@property(nonatomic,strong)UICollectionView * collectView;\n@property(nonatomic,strong)NSMutableArray * shops;\n@property (nonatomic,strong)NSMutableArray *banners;\n@property (nonatomic,strong)NSMutableDictionary *optionalParam;\n\n@end\n\n#define kFileName @\"NoHeaderNoFooterHomePage.plist\"\n\n@implementation NoHeaderNoFooterViewController\n\n@synthesize goToTopBtn =  _goToTopBtn;\n\n-(NSMutableArray *)banners\n{\n    if (_banners ==nil) {\n        self.banners = [NSMutableArray array];\n    }\n    return _banners;\n}\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    if (_shops==nil) {\n        self.shops = [NSMutableArray array];\n    }\n    if (_optionalParam ==nil) {\n        self.optionalParam = [[NSMutableDictionary alloc]init];\n    }\n    // Do any additional setup after loading the view.\n    [self initCollectionView];\n    [self initNavigationItem];\n    [self initRefresh];\n    [self initData];\n    //    [self.collectView.header beginRefreshing];\n    //    [self requestHomePageList:@\"1\" refreshType:@\"header\"];\n    \n}\n-(void)initCollectionView\n{\n    SYStickHeaderWaterFallLayout *cvLayout = [[SYStickHeaderWaterFallLayout alloc] init];\n    cvLayout.delegate = self;\n    //    cvLayout.itemWidth = (kDeviceWidth-15)/2;\n    //    cvLayout.topInset = 0.0f;\n    //    cvLayout.bottomInset = 0.0f;\n    cvLayout.isStickyHeader = YES;\n    \n    \n    self.collectView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, kDeviceHeight ) collectionViewLayout:cvLayout];\n    \n    //    self.collectView.delegate = self;\n    //    self.collectView.dataSource = self;\n    self.collectView.backgroundColor = [UIColor whiteColor];\n    [self.view addSubview:self.collectView];\n    [self.view insertSubview:self.goToTopBtn aboveSubview:self.collectView];\n    \n    [self.collectView registerNib:[UINib nibWithNibName:@\"HPCollectionViewCell\" bundle:nil] forCellWithReuseIdentifier:WaterfallCellIdentifier];\n    \n    [self.collectView registerClass:[HomePageHeadView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:WaterfallHeaderIdentifier];\n    [self.collectView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@\"cell\"];\n    [self.collectView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@\"head\"];\n    \n    self.collectView.footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{\n        // 进入刷新状态后会自动调用这个block\n        showPage += 1;\n        NSString *page = [NSString stringWithFormat:@\"%ld\",(long)showPage];\n        [self requestHomePageList:page refreshType:@\"footer\"];\n    }];\n}\n-(void)initNavigationItem\n{\n    //    self.edgesForExtendedLayout = UIRectEdgeNone;\n    self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n    self.leftBtn.frame = CGRectMake(16, 16, 14, 13);\n    [self.leftBtn addTarget:self action:@selector(clicked) forControlEvents:UIControlEventTouchUpInside];\n    [self.leftBtn setImage:[UIImage imageNamed:@\"top_sidebar.pdf\"]  forState:UIControlStateNormal];\n    //    [self.leftBtn setEnlargeEdgeWithTop:10 right:20 bottom:10 left:20];\n    UIBarButtonItem *barLeftBtn = [[UIBarButtonItem alloc]initWithCustomView:self.leftBtn];\n    UIImageView *titleImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 34, 20)];\n    titleImageView.image = [UIImage imageNamed:@\"home_logo.pdf\"];\n    _titleImageView = titleImageView;\n    self.navigationItem.titleView = _titleImageView;\n    [self.navigationItem setLeftBarButtonItem:barLeftBtn];\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n\n/*\n #pragma mark - Navigation\n \n // In a storyboard-based application, you will often want to do a little preparation before navigation\n - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {\n // Get the new view controller using [segue destinationViewController].\n // Pass the selected object to the new view controller.\n }\n */\n- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView\n{\n    [collectionView.collectionViewLayout invalidateLayout];\n    return 1;\n}\n- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section\n{\n    NSInteger itemCount;\n    if (section ==0) {\n        if (self.shops.count ==0) {\n            itemCount = 1;\n        }else\n        {\n            itemCount = self.shops.count;\n        }\n        \n        \n    }\n    return itemCount;\n}\n\n\n- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    if (indexPath.section ==0) {\n        HPCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:WaterfallCellIdentifier forIndexPath:indexPath];\n        //            cell.backgroundColor = listBgColor;\n        cell.shop = self.shops[indexPath.item];\n        UITapGestureRecognizer *personalGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(imageGesture:)];\n        //            personalGesture.cancelsTouchesInView = NO;\n        cell.markImageView.userInteractionEnabled = YES;\n        [cell.markImageView addGestureRecognizer:personalGesture];\n        return cell;\n        \n    }\n    return nil;\n    \n}\n\n- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    \n}\n//代理方法\n\n- (CGFloat)collectionView:(UICollectionView *)collectionView\n                   layout:(SYStickHeaderWaterFallLayout *)collectionViewLayout\n heightForItemAtIndexPath:(NSIndexPath *)indexPath {\n    CGFloat cellHeight;\n    if (indexPath.section ==0) {\n        if (self.shops.count ==0) {\n            cellHeight = kDeviceHeight - 64;\n        }else\n        {\n            HomeModel * shop;\n            \n            //        if (indexPach.item ==nil) {\n            //            shop = self.shops[0];\n            //\n            //        }else\n            //        {\n            shop = self.shops[indexPath.item];\n            \n            //        }\n            \n            //        cell.s\n            \n            cellHeight =  shop.height/shop.width*(kDeviceWidth/2-7.5);\n        }\n        \n        \n        \n    }\n    return cellHeight;\n}\n\n\n- (CGFloat)collectionView:(nonnull UICollectionView *)collectionView\n                   layout:(nonnull SYStickHeaderWaterFallLayout *)collectionViewLayout\n    widthForItemInSection:( NSInteger )section\n{\n    \n    return (kDeviceWidth-15)/2;\n    \n}\n\n-(void)clicked\n{\n    [self.navigationController popViewControllerAnimated:YES];\n}\n//SDCycleScrollViewDelegate\n- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index\n{\n    //广告页跳转\n    //广告页跳转\n}\n\n-(void)requestHomePageList:(NSString *)page refreshType:(NSString *)type\n{\n    SYSHomeRequest *homeRequest = [[SYSHomeRequest alloc] initRequestWithPageLine:10 pageNum:[page integerValue]];\n    \n    __weak typeof(self) weakSelf = self;\n    NSData *data =  [self dataNamed:@\"HomeData.json\"];\n    \n    NSDictionary *obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];\n    dispatch_async(dispatch_get_main_queue(), ^{\n        if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n            if ([page isEqualToString:@\"1\"]) {\n                [weakSelf.shops removeAllObjects];\n                [weakSelf.collectView.header endRefreshing];\n                [weakSelf.collectView reloadData];\n                \n                return;\n                \n            }else\n            {\n                MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n                hud.mode = MBProgressHUDModeText;\n                hud.labelText = @\"内容看光了 刷新也白搭\";\n                hud.margin = 10.f;\n                hud.removeFromSuperViewOnHide = YES;\n                [hud hide:YES afterDelay:1];\n                [weakSelf.collectView.footer endRefreshing];\n                return ;\n            }\n            \n        }\n        NSArray *dataArray = [obj objectForKey:@\"data\"];\n        NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n        if ([status isEqual:@\"1\"]) {\n            weakSelf.collectView.delegate =self;\n            weakSelf.collectView.dataSource =self;\n            if ([status isEqual:@\"1\"]) {\n                if ([page isEqualToString:@\"1\"]) {\n                    [weakSelf.shops removeAllObjects];\n                    showPage = 1;\n                }\n                for (int i =0; i<[dataArray count]; i++) {\n                    [weakSelf.shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n                }\n                \n            }\n            if ([type isEqualToString:@\"header\"]) {\n                [weakSelf.collectView.header endRefreshing];\n            }else if([type isEqualToString:@\"footer\"])\n            {\n                [weakSelf.collectView.footer endRefreshing];\n            }\n            \n            [weakSelf.collectView reloadData];\n        }\n    });\n\n//    [homeRequest startWithCompletionBlockWithSuccess:^(__kindof BaseRequest *request, id obj) {\n//        dispatch_async(dispatch_get_main_queue(), ^{\n//            if ([obj objectForKey:@\"data\"]== [NSNull null]) {\n//                if ([page isEqualToString:@\"1\"]) {\n//                    [weakSelf.shops removeAllObjects];\n//                    [weakSelf.collectView.header endRefreshing];\n//                    [weakSelf.collectView reloadData];\n//                    \n//                    return;\n//                    \n//                }else\n//                {\n//                    MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view animated:YES];\n//                    hud.mode = MBProgressHUDModeText;\n//                    hud.labelText = @\"内容看光了 刷新也白搭\";\n//                    hud.margin = 10.f;\n//                    hud.removeFromSuperViewOnHide = YES;\n//                    [hud hide:YES afterDelay:1];\n//                    [weakSelf.collectView.footer endRefreshing];\n//                    return ;\n//                }\n//                \n//            }\n//            NSArray *dataArray = [obj objectForKey:@\"data\"];\n//            NSString *status = [NSString stringWithFormat:@\"%@\",[obj objectForKey:@\"status\"]];\n//            if ([status isEqual:@\"1\"]) {\n//                weakSelf.collectView.delegate =self;\n//                weakSelf.collectView.dataSource =self;\n//                if ([status isEqual:@\"1\"]) {\n//                    if ([page isEqualToString:@\"1\"]) {\n//                        [weakSelf.shops removeAllObjects];\n//                        showPage = 1;\n//                    }\n//                    for (int i =0; i<[dataArray count]; i++) {\n//                        [weakSelf.shops addObject:[HomeModel initHomeModelWithDict:dataArray[i]]];\n//                    }\n//                    \n//                }\n//                if ([type isEqualToString:@\"header\"]) {\n//                    [weakSelf.collectView.header endRefreshing];\n//                }else if([type isEqualToString:@\"footer\"])\n//                {\n//                    [weakSelf.collectView.footer endRefreshing];\n//                }\n//                \n//                [weakSelf.collectView reloadData];\n//            }\n//        });\n//        \n//        \n//    } failure:^(__kindof BaseRequest *request, id obj) {\n//        if (weakSelf.view.superview) {\n//            MBProgressHUD *hud=[MBProgressHUD showHUDAddedTo:weakSelf.view.superview animated:YES];\n//            hud.mode = MBProgressHUDModeText;\n//            hud.labelText = @\"网络不给力 挥泪重连中\";\n//            hud.margin = 10.f;\n//            hud.removeFromSuperViewOnHide = YES;\n//            [hud hide:YES afterDelay:1];\n//        }\n//        \n//        if ([type isEqualToString:@\"header\"]) {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.header endRefreshing];\n//            });\n//            \n//            \n//        }else if([type isEqualToString:@\"footer\"])\n//        {\n//            dispatch_async(dispatch_get_main_queue(), ^{\n//                [weakSelf.collectView.footer endRefreshing];\n//                \n//            });\n//            \n//        }\n//    }];\n    \n}\n//\n-(void)styleBtnClicked:(UIButton *)btn\n{\n    \n}\n-(void)typeBtnClicked:(UIButton *)btn\n{\n    \n}\n-(void)moreBtnClicked:(UIButton *)btn\n{\n    \n    \n}\n-(void)doAfter\n{\n    \n}\n\n\n-(void)imageGesture:(UIGestureRecognizer *)tap\n{\n    HPCollectionViewCell * cell = (HPCollectionViewCell *)tap.view.superview.superview;\n    NSIndexPath *indexPath = [_collectView indexPathForCell:cell];\n    cell.shop = self.shops[indexPath.item];\n    //    PersonalCenterViewController *personalViewController = [[PersonalCenterViewController alloc]init];\n    //    personalViewController.user_id = cell.shop.user_id;\n    //    [self.navigationController pushViewController:personalViewController animated:NO];\n}\n\n\n//- (void)setScrollADImageURLStringsArray:(NSArray *)scrollADImageURLStringsArray\n//{\n//    _scrollADImageURLStringsArray = scrollADImageURLStringsArray;\n//\n//    _cycleScrollADView.imageURLStringsGroup = scrollADImageURLStringsArray;\n//}\n-(void)initRefresh\n{\n    UIImage *imgR1 = [UIImage imageNamed:@\"shuaxin1\"];\n    \n    UIImage *imgR2 = [UIImage imageNamed:@\"shuaxin2\"];\n    \n    //    UIImage *imgR3 = [UIImage imageNamed:@\"cameras_3\"];\n    \n    NSArray *reFreshone = [NSArray arrayWithObjects:imgR1, nil];\n    \n    NSArray *reFreshtwo = [NSArray arrayWithObjects:imgR2, nil];\n    \n    NSArray *reFreshthree = [NSArray arrayWithObjects:imgR1,imgR2, nil];\n    \n    \n    \n    \n    \n    \n    MJRefreshGifHeader  *header = [MJRefreshGifHeader headerWithRefreshingBlock:^{\n        \n        [self requestHomePageList:@\"1\" refreshType:@\"header\"];\n        \n    }];\n    \n    [header setImages:reFreshone forState:MJRefreshStateIdle];\n    \n    [header setImages:reFreshtwo forState:MJRefreshStatePulling];\n    [header setImages:reFreshthree duration:0.5 forState:MJRefreshStateRefreshing];\n    //    [header setImages:reFreshthree forState:MJRefreshStateRefreshing];\n    \n    header.lastUpdatedTimeLabel.hidden  = YES;\n    \n    //    header.stateLabel.hidden            = YES;\n    \n    self.collectView.header   = header;\n    \n    \n}\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView\n{\n    if ( self.collectView.contentOffset.y > 800) {\n        self.goToTopBtn.alpha = 1;\n        //        [self.view bringSubviewToFront:_goToTopBtn];\n    } else {\n        self.goToTopBtn.alpha = 0;\n    }\n}\n-(UIButton *)goToTopBtn\n{\n    if(!_goToTopBtn)\n    {\n        _goToTopBtn = [UIButton buttonWithType:UIButtonTypeCustom];\n        _goToTopBtn.backgroundColor = [UIColor clearColor];\n        _goToTopBtn.frame = CGRectMake(kDeviceWidth-52, kDeviceHeight-52, 39, 39);\n        _goToTopBtn.alpha = 0;\n        [_goToTopBtn setImage:[UIImage imageNamed:@\"up\"] forState:UIControlStateNormal];\n        [_goToTopBtn addTarget:self action:@selector(goToTop) forControlEvents:UIControlEventTouchUpInside];\n    }\n    return _goToTopBtn;\n}\n//回到顶部\n- (void)goToTop\n{\n    [UIView animateWithDuration:0.5 animations:^{\n        \n        \n        \n    }completion:^(BOOL finished){\n        \n    }];\n    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];\n    [self.collectView scrollToItemAtIndexPath:indexPath atScrollPosition:0 animated:YES];\n    \n    \n    \n}\n//获得文件路径\n-(NSString *)dataFilePath{\n    //检索Documents目录\n    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask,YES);//备注1\n    NSString *documentsDirectory = [paths objectAtIndex:0];//备注2\n    return [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@\"%@\",kFileName]];\n}\n\n-(void)initData{\n    NSString *filePath = [self dataFilePath];\n    NSLog(@\"filePath=%@\",filePath);\n    \n    //从文件中读取数据，首先判断文件是否存在\n    if([[NSFileManager defaultManager] fileExistsAtPath:filePath]){\n        //        NSArray *array = [[NSArray alloc]initWithContentsOfFile:filePath];\n        //因为直接写入不成功，所以序列化一下,这里反序列化取出\n        NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];\n        for (int i =0; i<[array count]; i++) {\n            [_shops addObject:[HomeModel initHomeModelWithDict:array[i]]];\n            //                        ShowCell *cell = [[ShowCell alloc]initShowCell];\n            //                        [_allCells addObject:cell];\n        }\n        //                    }if (showPage%2 ==0) {\n        //                        [[SDImageCache sharedImageCache] setValue:nil forKey:@\"memCache\"];\n        //                    }\n        \n        //先加载缓存数据\n        [self.collectView reloadData];\n    }\n    //后加载新数据\n    [self.collectView.header performSelector:@selector(beginRefreshing) withObject:nil];\n}\n\n-(BOOL)prefersStatusBarHidden\n{\n    return YES;\n}\n- (NSData *)dataNamed:(NSString *)name {\n    NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@\"\"];\n    if (!path) return nil;\n    NSData *data = [NSData dataWithContentsOfFile:path];\n    return data;\n}\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/RequestCustom.h",
    "content": "//\n//  RequestCustom.h\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/8.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#define WARN_NETWORK_FAILE            @\"请检查您的网络\"\n#define WARN_UNKNOW_FAILE               @\"未知错误\"\n#define URL_MAIN                        @\"http://test.mokooapp.com/\"\n\n#define RESULT_DATAS                    @\"data\"\ntypedef void(^requestComplete) (BOOL succed, id obj);\n@interface RequestCustom : NSObject\n\n+(void)requestFlowWater:(NSMutableDictionary *)optionalParam pageNUM:(NSString *)page_num pageLINE:(NSString *)page_line complete:(requestComplete)_complete ;\n+(void) requestBanner:(NSString *)userID complete:(requestComplete)_complete;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/RequestCustom.m",
    "content": "//\n//  RequestCustom.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/8.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"RequestCustom.h\"\n#import \"AFNetworking.h\"\n#import <CommonCrypto/CommonDigest.h>\n@implementation RequestCustom\n#pragma mark - 首页\n\n//FlowWater\n+(void)requestFlowWater:(NSMutableDictionary *)optionalParam pageNUM:(NSString *)page_num pageLINE:(NSString *)page_line complete:(requestComplete)_complete {\n    \n    \n    if (page_num == nil) {\n    } else {\n        [optionalParam setObject:page_num forKey:@\"page_num\"];\n    }\n    if (page_line == nil) {\n    } else {\n        [optionalParam setObject:page_line forKey:@\"page_line\"];\n    }\n    \n    [RequestCustom postRequestParameters:optionalParam api:@\"HomeApi\" andlastInterFace:@\"modellist\" analysisDataComplete:^(BOOL succed, id obj) {\n        _complete(succed,obj);\n        \n        NSLog(@\"FlowWater>>>>>>%@\",obj);\n    }];\n}\n#pragma mark - banner图片\n+(void) requestBanner:(NSString *)userID complete:(requestComplete)_complete\n{\n    NSMutableDictionary *dicParaments   = [RequestCustom baseOption];\n    if (userID ==nil) {\n        \n    }else\n    {\n        //        [dicParaments setObject:userID forKey:@\"user_id\"];\n    }\n    \n    [RequestCustom postRequestParameters:dicParaments api:@\"HomeApi\" andlastInterFace:@\"banner\" analysisDataComplete:^(BOOL succed, id obj) {\n        _complete(succed,obj);\n        NSLog(@\"晒扒——晒友圈>>>>>>%@\",obj);\n    }];\n    \n}\n+(void)postRequestParameters:(NSDictionary *)dicParameters api:(NSString *)_typeApi andlastInterFace:(NSString *)_interface analysisDataComplete:(requestComplete)complete {\n    AFHTTPSessionManager   *manager    = [RequestCustom managerCustom];\n    NSMutableString *strURl = [[NSMutableString alloc] initWithString:URL_MAIN];\n    if ([_typeApi isEqualToString:@\"Api\"]) {\n        [strURl appendString:@\"Api/\"];\n    }else if ([_typeApi isEqualToString:@\"HomeApi\"])\n    {\n        [strURl appendString:@\"HomeApi/\"];\n    }\n    [strURl appendString:[NSString stringWithFormat:@\"%@/\",_interface]];\n    \n    [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;\n    \n    [manager POST:strURl parameters:dicParameters progress:^(NSProgress *uploadProgress)\n     {\n         \n     }\n          success:^(NSURLSessionDataTask *task, id responseObject) {\n              BOOL succed = [RequestCustom errorSolution:responseObject];\n              //        SLog(@\"关于succed>>>>>>>%@\",@(succed));\n              complete(succed,responseObject);\n              \n          } failure:^(NSURLSessionDataTask *task, NSError *error) {\n              \n              complete(NO,WARN_NETWORK_FAILE);\n          }];\n    \n    \n}\n+(BOOL)errorSolution:(id)responseObject {\n    //数据data中没有 error 参数\n    [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;\n    BOOL succed = YES;\n    //    if ([dicdatas isKindOfClass:[NSDictionary class]]) {\n    //        NSString    *strError   = [dicdatas drObjectForKey:@\"error\"];\n    //        if (![NSString isEmptyString:strError]) {\n    //            succed = NO;\n    //        }\n    //    }\n    if ([responseObject isKindOfClass:[NSDictionary class]]) {\n        \n        //                NSInteger status = [[responseObject objectForKey:@\"status\"] integerValue];\n        //                NSString    *status = [responseObject objectForKey:@\"status\"];\n        //                if (![status isEqualToString:@\"1\"]) {\n        //                    succed = NO;\n        //                }\n    }\n    \n    return succed;\n}\n+(AFHTTPSessionManager *)managerCustom {\n    \n    AFHTTPSessionManager   *manager    = [AFHTTPSessionManager manager];\n    manager.requestSerializer.timeoutInterval   = 6;\n    \n    return manager;\n}\n\n+(NSMutableDictionary *)baseOption {\n    \n    NSMutableDictionary *dicbase    = [[NSMutableDictionary alloc] init];\n    \n    return dicbase;\n}\n\n+(NSMutableDictionary *)userIdOption {\n    \n    NSMutableDictionary *dicbase    = [[NSMutableDictionary alloc] init];\n    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];\n    [dicbase setObject:[userDefaults objectForKey:@\"user_id\"] forKey:@\"user_id\"];\n    //    if (![NSString isEmptyString:[UserInfo shareUserInfo].strToken]) {\n    //        [dicbase setObject:[UserInfo shareUserInfo].strToken forKey:@\"key\"];\n    //    }\n    \n    return dicbase;\n}\n\n+ (NSString *)md5HexDigest:(NSString *)str\n{\n    const char *original_str = [str UTF8String];\n    unsigned char result[CC_MD5_DIGEST_LENGTH];\n    CC_MD5(original_str, (CC_LONG)strlen(original_str), result);\n    NSMutableString *hash = [NSMutableString string];\n    for (int i = 0; i < CC_MD5_DIGEST_LENGTH; i++)\n        [hash appendFormat:@\"%02X\", result[i]];\n    return [hash lowercaseString];\n    \n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/SYRootViewController.h",
    "content": "//\n//  SYRootViewController.h\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/21.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SYRootViewController : UITableViewController\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/SYRootViewController.m",
    "content": "//\n//  SYRootViewController.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/21.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"SYRootViewController.h\"\n#import \"MulitipleSectionViewController.h\"\n@interface SYRootViewController ()\n@property (nonatomic, strong) NSMutableArray *titles;\n@property (nonatomic, strong) NSMutableArray *classNames;\n@end\n\n@implementation SYRootViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    self.title = @\"SYStickHeaderWaterFall Example\";\n    self.titles = @[].mutableCopy;\n    self.classNames = @[].mutableCopy;\n    [self addCell:@\"NoHeaderNoFooter\" class:@\"NoHeaderNoFooterViewController\"];\n    [self addCell:@\"一个section不带top和bottom（仿模咖首页）\" class:@\"HomeThreeViewController\"];\n    [self addCell:@\"两个section带top和bottom\" class:@\"MulitipleSectionViewController\"];\n    [self addCell:@\"多个section停留位置不加top距离\" class:@\"MulitipleSectionNoTopHeightViewController\"];\n    [self addCell:@\"任意设置header停留位置\" class:@\"MulitipleSectionHeaderToTopViewController\"];\n    [self addCell:@\"header和footer停留\" class:@\"MulitipleSectionHeaderFooterViewController\"];\n    [self.tableView reloadData];\n\n    \n    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.\n    // self.navigationItem.rightBarButtonItem = self.editButtonItem;\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n- (void)addCell:(NSString *)title class:(NSString *)className {\n    [self.titles addObject:title];\n    [self.classNames addObject:className];\n    \n}\n\n#pragma mark - Table view data source\n\n- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {\n    return _titles.count;\n}\n\n- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {\n    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@\"YY\"];\n    if (!cell) {\n        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@\"YY\"];\n    }\n    cell.textLabel.text = _titles[indexPath.row];\n    return cell;\n}\n\n- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {\n    NSString *className = self.classNames[indexPath.row];\n    Class class = NSClassFromString(className);\n    if (class) {\n        UIViewController *ctrl = class.new;\n        ctrl.title = _titles[indexPath.row];\n        [self.navigationController pushViewController:ctrl animated:YES];\n    }\n    [self.tableView deselectRowAtIndexPath:indexPath animated:YES];\n}\n\n\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/SYSHomeBannerRequest.h",
    "content": "//\n//  SYSHomeBannerRequest.h\n//  SYStickHeaderWaterFall\n//\n//  Created by suya on 16/4/28.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"BaseRequest.h\"\n\n@interface SYSHomeBannerRequest : BaseRequest\n@property (nonatomic,copy)NSString *userId;\n\n-(instancetype)initRequestWithUserId:(NSString *)userId;\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/SYSHomeBannerRequest.m",
    "content": "//\n//  SYSHomeBannerRequest.m\n//  SYStickHeaderWaterFall\n//\n//  Created by suya on 16/4/28.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"SYSHomeBannerRequest.h\"\n#import \"SYSURLMacro.h\"\n@implementation SYSHomeBannerRequest\n\n-(instancetype)initRequestWithUserId:(NSString *)userId\n{\n    if (self = [super init]) {\n        self.userId = userId;\n    }\n    return self;\n}\n\n- (NSString *)requestUrl {\n    return HOME_BANNER_API;\n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/SYSHomeRequest.h",
    "content": "//\n//  SYSHomeRequest.h\n//  SYStickHeaderWaterFall\n//\n//  Created by suya on 16/4/28.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"BaseRequest.h\"\n\n@interface SYSHomeRequest : BaseRequest\n\n@property (nonatomic,assign)NSInteger pageLine;\n@property (nonatomic,assign)NSInteger pageNum;\n-(instancetype)initRequestWithPageLine:(NSInteger )pageLine pageNum:(NSInteger )pageNum;\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/SYSHomeRequest.m",
    "content": "//\n//  SYSHomeRequest.m\n//  SYStickHeaderWaterFall\n//\n//  Created by suya on 16/4/28.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"SYSHomeRequest.h\"\n#import \"SYSURLMacro.h\"\n\n@implementation SYSHomeRequest\n\n-(instancetype)initRequestWithPageLine:(NSInteger)pageLine pageNum:(NSInteger)pageNum\n{\n    if (self = [super init]) {\n        self.pageLine = pageLine;\n        self.pageNum = pageNum;\n    }\n    return self;\n}\n\n- (NSString *)requestUrl {\n    return HOME_API;\n}\n- (id)requestArgument {\n    return @{\n             @\"page_num\": [NSString stringWithFormat:@\"%@\",@(_pageNum)],\n             @\"page_line\": [NSString stringWithFormat:@\"%@\",@(_pageLine)]\n             };\n}\n\n//- (id)jsonValidator {\n//    return @{\n//             @\"page_num\": [NSNumber class],\n//             @\"page_line\": [NSString class],\n//             @\"level\": [NSNumber class]\n//             };\n//}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/SYSURLMacro.h",
    "content": "//\n//  SYSURLMacro.h\n//  SYStickHeaderWaterFall\n//\n//  Created by suya on 16/4/28.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#ifndef SYSURLMacro_h\n#define SYSURLMacro_h\n\n\n#endif /* SYSURLMacro_h */\n\n#define HOME_API @\"HomeApi/modellist\"\n\n#define HOME_BANNER_API @\"HomeApi/banner\"\n\n#define URL_MAIN                        @\"http://test.mokooapp.com/\"\n"
  },
  {
    "path": "SYStickHeaderWaterFall/ViewController.h",
    "content": "//\n//  ViewController.h\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n"
  },
  {
    "path": "SYStickHeaderWaterFall/ViewController.m",
    "content": "//\n//  ViewController.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import \"ViewController.h\"\n\n@interface ViewController ()\n\n@end\n\n@implementation ViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    // Do any additional setup after loading the view, typically from a nib.\n}\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/YYFPSLabel.h",
    "content": "//\n//  YYFPSLabel.h\n//  YYKitExample\n//\n//  Created by ibireme on 15/9/3.\n//  Copyright (c) 2015 ibireme. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/**\n Show Screen FPS...\n \n The maximum fps in OSX/iOS Simulator is 60.00.\n The maximum fps on iPhone is 59.97.\n The maxmium fps on iPad is 60.0.\n */\n@interface YYFPSLabel : UILabel\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/YYFPSLabel.m",
    "content": "//\n//  YYFPSLabel.m\n//  YYKitExample\n//\n//  Created by ibireme on 15/9/3.\n//  Copyright (c) 2015 ibireme. All rights reserved.\n//\n\n#import \"YYFPSLabel.h\"\n#import \"YYWeakProxy.h\"\n\n#define kSize CGSizeMake(55, 20)\n\n@implementation YYFPSLabel {\n    CADisplayLink *_link;\n    NSUInteger _count;\n    NSTimeInterval _lastTime;\n    UIFont *_font;\n    UIFont *_subFont;\n    \n    NSTimeInterval _llll;\n}\n\n- (instancetype)initWithFrame:(CGRect)frame {\n    if (frame.size.width == 0 && frame.size.height == 0) {\n        frame.size = kSize;\n    }\n    self = [super initWithFrame:frame];\n    \n    self.layer.cornerRadius = 5;\n    self.clipsToBounds = YES;\n    self.textAlignment = NSTextAlignmentCenter;\n    self.userInteractionEnabled = NO;\n    self.backgroundColor = [UIColor colorWithWhite:0.000 alpha:0.700];\n    \n    _font = [UIFont fontWithName:@\"Menlo\" size:14];\n    if (_font) {\n        _subFont = [UIFont fontWithName:@\"Menlo\" size:4];\n    } else {\n        _font = [UIFont fontWithName:@\"Courier\" size:14];\n        _subFont = [UIFont fontWithName:@\"Courier\" size:4];\n    }\n    \n    _link = [CADisplayLink displayLinkWithTarget:[YYWeakProxy proxyWithTarget:self] selector:@selector(tick:)];\n    [_link addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];\n    return self;\n}\n\n- (void)dealloc {\n    [_link invalidate];\n}\n\n- (CGSize)sizeThatFits:(CGSize)size {\n    return kSize;\n}\n\n- (void)tick:(CADisplayLink *)link {\n    if (_lastTime == 0) {\n        _lastTime = link.timestamp;\n        return;\n    }\n    \n    _count++;\n    NSTimeInterval delta = link.timestamp - _lastTime;\n    if (delta < 1) return;\n    _lastTime = link.timestamp;\n    float fps = _count / delta;\n    _count = 0;\n    \n    CGFloat progress = fps / 60.0;\n    UIColor *color = [UIColor colorWithHue:0.27 * (progress - 0.2) saturation:1 brightness:0.9 alpha:1];\n    \n    NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@\"%d FPS\",(int)round(fps)]];\n    [text addAttribute:NSForegroundColorAttributeName value:color range:NSMakeRange(0, text.length - 3)];\n    \n    [text addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(text.length - 3, 3)];\n    [text addAttribute:NSFontAttributeName value:_font range:NSMakeRange(0, text.length)];\n//    text.font = _font;\n//    [text setFont:_subFont range:NSMakeRange(text.length - 4, 1)];\n    \n    self.attributedText = text;\n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/YYWeakProxy.h",
    "content": "//\n//  YYWeakProxy.h\n//  YYKit <https://github.com/ibireme/YYKit>\n//\n//  Created by ibireme on 14/10/18.\n//  Copyright (c) 2015 ibireme.\n//\n//  This source code is licensed under the MIT-style license found in the\n//  LICENSE file in the root directory of this source tree.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n A proxy used to hold a weak object.\n It can be used to avoid retain cycles, such as the target in NSTimer or CADisplayLink.\n \n sample code:\n \n     @implementation MyView {\n        NSTimer *_timer;\n     }\n     \n     - (void)initTimer {\n        YYWeakProxy *proxy = [YYWeakProxy proxyWithTarget:self];\n        _timer = [NSTimer timerWithTimeInterval:0.1 target:proxy selector:@selector(tick:) userInfo:nil repeats:YES];\n     }\n     \n     - (void)tick:(NSTimer *)timer {...}\n     @end\n */\n@interface YYWeakProxy : NSProxy\n\n/**\n The proxy target.\n */\n@property (nullable, nonatomic, weak, readonly) id target;\n\n/**\n Creates a new weak proxy for target.\n \n @param target Target object.\n \n @return A new proxy object.\n */\n- (instancetype)initWithTarget:(id)target;\n\n/**\n Creates a new weak proxy for target.\n \n @param target Target object.\n \n @return A new proxy object.\n */\n+ (instancetype)proxyWithTarget:(id)target;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "SYStickHeaderWaterFall/YYWeakProxy.m",
    "content": "//\n//  YYWeakProxy.m\n//  YYKit <https://github.com/ibireme/YYKit>\n//\n//  Created by ibireme on 14/10/18.\n//  Copyright (c) 2015 ibireme.\n//\n//  This source code is licensed under the MIT-style license found in the\n//  LICENSE file in the root directory of this source tree.\n//\n\n#import \"YYWeakProxy.h\"\n\n\n@implementation YYWeakProxy\n\n- (instancetype)initWithTarget:(id)target {\n    _target = target;\n    return self;\n}\n\n+ (instancetype)proxyWithTarget:(id)target {\n    return [[YYWeakProxy alloc] initWithTarget:target];\n}\n\n- (id)forwardingTargetForSelector:(SEL)selector {\n    return _target;\n}\n\n- (void)forwardInvocation:(NSInvocation *)invocation {\n    void *null = NULL;\n    [invocation setReturnValue:&null];\n}\n\n- (NSMethodSignature *)methodSignatureForSelector:(SEL)selector {\n    return [NSObject instanceMethodSignatureForSelector:@selector(init)];\n}\n\n- (BOOL)respondsToSelector:(SEL)aSelector {\n    return [_target respondsToSelector:aSelector];\n}\n\n- (BOOL)isEqual:(id)object {\n    return [_target isEqual:object];\n}\n\n- (NSUInteger)hash {\n    return [_target hash];\n}\n\n- (Class)superclass {\n    return [_target superclass];\n}\n\n- (Class)class {\n    return [_target class];\n}\n\n- (BOOL)isKindOfClass:(Class)aClass {\n    return [_target isKindOfClass:aClass];\n}\n\n- (BOOL)isMemberOfClass:(Class)aClass {\n    return [_target isMemberOfClass:aClass];\n}\n\n- (BOOL)conformsToProtocol:(Protocol *)aProtocol {\n    return [_target conformsToProtocol:aProtocol];\n}\n\n- (BOOL)isProxy {\n    return YES;\n}\n\n- (NSString *)description {\n    return [_target description];\n}\n\n- (NSString *)debugDescription {\n    return [_target debugDescription];\n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/YZPBaseRequest.h",
    "content": "//\n//  YZPBaseRequest.h\n//  YZPro\n//\n//  Created by suya on 16/4/27.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"BaseRequest.h\"\n@interface YZPBaseRequest : BaseRequest\n- (id)generateData:(NSDictionary *)dict;\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/YZPBaseRequest.m",
    "content": "//\n//  YZPBaseRequest.m\n//  YZPro\n//\n//  Created by suya on 16/4/27.\n//  Copyright © 2016年 Panda. All rights reserved.\n//\n\n#import \"YZPBaseRequest.h\"\n\n@implementation YZPBaseRequest\n\n- (id)requestArgument {\n    NSMutableDictionary *postDict = [NSMutableDictionary dictionary];\n    [postDict setObject:@\"1\" forKey:@\"channel\"];\n    [postDict setObject:@\"1.0\" forKey:@\"version\"];\n    return [self generateData:postDict];\n}\n\n- (id)generateData:(NSDictionary *)dict{\n    \n    return dict;\n}\n\n- (NetWorkRequestMethod)requestMethod {\n    return NetWorkRequestMethodPost;\n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFall/main.m",
    "content": "//\n//  main.m\n//  SYStickHeaderWaterFall\n//\n//  Created by Mac on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[]) {\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n    }\n}\n"
  },
  {
    "path": "SYStickHeaderWaterFall.podspec",
    "content": "\nPod::Spec.new do |s|\n\n  # ―――  Spec Metadata  ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  These will help people to find your library, and whilst it\n  #  can feel like a chore to fill in it's definitely to your advantage. The\n  #  summary should be tweet-length, and the description more in depth.\n  #\n\n  s.name         = 'SYStickHeaderWaterFall'\n  s.version      = ‘0.0.6’\n  s.summary      = 'SYStickHeaderWaterFall is an layout for section sticky collecionView.'\n\n  # This description is used to generate tags and improve search results.\n  #   * Think: What does it do? Why did you write it? What is the focus?\n  #   * Try to keep it short, snappy and to the point.\n  #   * Write the description between the DESC delimiters below.\n  #   * Finally, don't worry about the indent, CocoaPods strips it!\n  s.description  =  'For CollectonView,You can use this layout to make an section sticky collectionView.'\n\n  s.homepage     = 'https://github.com/zhangsuya/SYStickHeaderWaterFall'\n  # s.screenshots  = 'www.example.com/screenshots_1.gif', 'www.example.com/screenshots_2.gif'\n\n\n  # ―――  Spec License  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  Licensing your code is important. See http://choosealicense.com for more info.\n  #  CocoaPods will detect a license file if there is a named LICENSE*\n  #  Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.\n  #\n\n  s.license      = 'MIT'\n  # s.license      = { :type => 'MIT', :file => 'FILE_LICENSE' }\n\n\n  # ――― Author Metadata  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  Specify the authors of the library, with email addresses. Email addresses\n  #  of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also\n  #  accepts just a name if you'd rather not provide an email address.\n  #\n  #  Specify a social_media_url where others can refer to, for example a twitter\n  #  profile URL.\n  #\n\n  s.author             = { '苏亚' => '792708835@qq.com' }\n  # Or just: s.author    = '苏亚'\n  # s.authors            = { '苏亚' => '792708835@qq.com' }\n  # s.social_media_url   = 'http://twitter.com/苏亚'\n\n  # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  If this Pod runs only on iOS or OS X, then specify the platform and\n  #  the deployment target. You can optionally include the target after the platform.\n  #\n\n  # s.platform     = :ios\n  s.platform     = :ios, '8.0'\n\n  #  When using multiple platforms\n  s.ios.deployment_target = '8.0'\n  # s.osx.deployment_target = '10.7'\n  # s.watchos.deployment_target = '2.0'\n  # s.tvos.deployment_target = '9.0'\n\n\n  # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  Specify the location from where the source should be retrieved.\n  #  Supports git, hg, bzr, svn and HTTP.\n  #\n\n  s.source       = { :git => 'https://github.com/zhangsuya/SYStickHeaderWaterFall.git', :tag => s.version }\n\n\n  # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  CocoaPods is smart about how it includes source code. For source files\n  #  giving a folder will include any swift, h, m, mm, c & cpp files.\n  #  For header files it will include any header in the folder.\n  #  Not including the public_header_files will make all headers public.\n  #\n\n  s.source_files  =  'SYStickHeaderWaterFall/Classes/**/*.{h,m}'\n  # s.exclude_files = 'SYStickHeaderWaterFall/Classes/Exclude'\n\n  s.public_header_files = 'SYStickHeaderWaterFall/Classes/**/*.h'\n\n\n  # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  A list of resources included with the Pod. These are copied into the\n  #  target bundle with a build phase script. Anything else will be cleaned.\n  #  You can preserve files from being cleaned, please don't preserve\n  #  non-essential files like tests, examples and documentation.\n  #\n\n  # s.resource  = 'icon.png'\n  # s.resources = 'Resources/*.png'\n\n  # s.preserve_paths = 'FilesToSave', 'MoreFilesToSave'\n\n\n  # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  Link your library with frameworks, or libraries. Libraries do not include\n  #  the lib prefix of their name.\n  #\n\n  # s.framework  = 'SomeFramework'\n  # s.frameworks = 'SomeFramework', 'AnotherFramework'\n\n  # s.library   = 'iconv'\n  # s.libraries = 'iconv', 'xml2'\n\n\n  # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  If your library depends on compiler flags you can set them in the xcconfig hash\n  #  where they will only apply to your library. If you depend on other Podspecs\n  #  you can include multiple dependencies to ensure it works.\n\ns.requires_arc = true\n\n# s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }\n  # s.dependency 'JSONKit', '~> 1.4'\n\nend\n"
  },
  {
    "path": "SYStickHeaderWaterFall.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t042E9AAC1C8EA247004C406C /* HomePageHeadView.m in Sources */ = {isa = PBXBuildFile; fileRef = 042E9AA91C8EA247004C406C /* HomePageHeadView.m */; };\n\t\t042E9AAD1C8EA247004C406C /* HPCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 042E9AAB1C8EA247004C406C /* HPCollectionViewCell.m */; };\n\t\t042E9AB01C8EA269004C406C /* HomeThreeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 042E9AAF1C8EA269004C406C /* HomeThreeViewController.m */; };\n\t\t042E9AB31C8EA66D004C406C /* HomeModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 042E9AB21C8EA66D004C406C /* HomeModel.m */; };\n\t\t042E9AB71C8EA810004C406C /* RequestCustom.m in Sources */ = {isa = PBXBuildFile; fileRef = 042E9AB61C8EA810004C406C /* RequestCustom.m */; };\n\t\t042E9ABA1C8EAA65004C406C /* BannerModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 042E9AB91C8EAA65004C406C /* BannerModel.m */; };\n\t\t042E9ABC1C8EAC39004C406C /* HPCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 042E9ABB1C8EAC39004C406C /* HPCollectionViewCell.xib */; };\n\t\t045631541C9FF5610099ED78 /* SYRootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 045631531C9FF5610099ED78 /* SYRootViewController.m */; };\n\t\t045631571C9FF7CF0099ED78 /* MulitipleSectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 045631561C9FF7CF0099ED78 /* MulitipleSectionViewController.m */; };\n\t\t045979081C99039100C2E8C2 /* Classes in Resources */ = {isa = PBXBuildFile; fileRef = 045979071C99039100C2E8C2 /* Classes */; };\n\t\t0459790B1C99054F00C2E8C2 /* SYStickHeaderWaterFallLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 0459790A1C99054F00C2E8C2 /* SYStickHeaderWaterFallLayout.m */; };\n\t\t04A93B871CA0D7BC00C7DBC1 /* MulitipleSectionNoTopHeightViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A93B861CA0D7BC00C7DBC1 /* MulitipleSectionNoTopHeightViewController.m */; };\n\t\t04A93B8A1CA0E2F500C7DBC1 /* MulitipleSectionHeaderToTopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A93B891CA0E2F500C7DBC1 /* MulitipleSectionHeaderToTopViewController.m */; };\n\t\t04A93B8C1CA0FB2C00C7DBC1 /* 4.gif in Resources */ = {isa = PBXBuildFile; fileRef = 04A93B8B1CA0FB2C00C7DBC1 /* 4.gif */; };\n\t\t04CE95321C8992F000CBA178 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 04CE95311C8992F000CBA178 /* main.m */; };\n\t\t04CE95351C8992F000CBA178 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 04CE95341C8992F000CBA178 /* AppDelegate.m */; };\n\t\t04CE95381C8992F000CBA178 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 04CE95371C8992F000CBA178 /* ViewController.m */; };\n\t\t04CE953B1C8992F000CBA178 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 04CE95391C8992F000CBA178 /* Main.storyboard */; };\n\t\t04CE953D1C8992F000CBA178 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 04CE953C1C8992F000CBA178 /* Assets.xcassets */; };\n\t\t04CE95401C8992F000CBA178 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 04CE953E1C8992F000CBA178 /* LaunchScreen.storyboard */; };\n\t\t04CE954B1C8992F100CBA178 /* SYStickHeaderWaterFallTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 04CE954A1C8992F100CBA178 /* SYStickHeaderWaterFallTests.m */; };\n\t\t04CE95561C8992F100CBA178 /* SYStickHeaderWaterFallUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 04CE95551C8992F100CBA178 /* SYStickHeaderWaterFallUITests.m */; };\n\t\t43CD84D6E06320493D4D1043 /* libPods-SYStickHeaderWaterFall.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CDBDC4C18413DD503332F423 /* libPods-SYStickHeaderWaterFall.a */; };\n\t\t89A35E9B7B673FA8C90880B8 /* libPods-SYStickHeaderWaterFallTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A1B489B8281B8BDD92943F8F /* libPods-SYStickHeaderWaterFallTests.a */; };\n\t\t92698E6E2D2CC9838DE2ECCD /* libPods-SYStickHeaderWaterFallUITests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3201C1CCBC0FD703D130B35C /* libPods-SYStickHeaderWaterFallUITests.a */; };\n\t\tF02289D91CD1F77800EFF43C /* SYSHomeRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F02289D81CD1F77800EFF43C /* SYSHomeRequest.m */; };\n\t\tF02289DC1CD203C600EFF43C /* SYSHomeBannerRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F02289DB1CD203C600EFF43C /* SYSHomeBannerRequest.m */; };\n\t\tF0E12CEF1CDC7B5A002BA5CC /* YYFPSLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = F0E12CEE1CDC7B5A002BA5CC /* YYFPSLabel.m */; };\n\t\tF0E12CF21CDC7B91002BA5CC /* YYWeakProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = F0E12CF11CDC7B91002BA5CC /* YYWeakProxy.m */; };\n\t\tF0E355591CD9CAD9003828FE /* 2.gif in Resources */ = {isa = PBXBuildFile; fileRef = F0E355581CD9CAD9003828FE /* 2.gif */; };\n\t\tF0F07D6D1CD0CB3400B26453 /* BaseRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F0F07D641CD0CB3400B26453 /* BaseRequest.m */; };\n\t\tF0F07D6E1CD0CB3400B26453 /* NetWorkAgent.m in Sources */ = {isa = PBXBuildFile; fileRef = F0F07D661CD0CB3400B26453 /* NetWorkAgent.m */; };\n\t\tF0F07D6F1CD0CB3400B26453 /* NetWorkConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = F0F07D681CD0CB3400B26453 /* NetWorkConfig.m */; };\n\t\tF0F07D701CD0CB3400B26453 /* NetWorkPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = F0F07D6A1CD0CB3400B26453 /* NetWorkPrivate.m */; };\n\t\tF0F07D711CD0CB3400B26453 /* YZPBaseRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F0F07D6C1CD0CB3400B26453 /* YZPBaseRequest.m */; };\n\t\tFE39D45F1CD77AF9005135DA /* HomeFooterCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = FE39D45E1CD77AF9005135DA /* HomeFooterCollectionReusableView.m */; };\n\t\tFE39D4651CD78249005135DA /* MulitipleSectionHeaderFooterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FE39D4641CD78249005135DA /* MulitipleSectionHeaderFooterViewController.m */; };\n\t\tFE39D4671CD78C4F005135DA /* 1.gif in Resources */ = {isa = PBXBuildFile; fileRef = FE39D4661CD78C4F005135DA /* 1.gif */; };\n\t\tFE3B5AE81EBC6FA400E1F3E7 /* HomeData.json in Resources */ = {isa = PBXBuildFile; fileRef = FE3B5AE71EBC6FA400E1F3E7 /* HomeData.json */; };\n\t\tFE402DB11CD8DA5A00FF7786 /* NoHeaderNoFooterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FE402DB01CD8DA5A00FF7786 /* NoHeaderNoFooterViewController.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t04CE95471C8992F100CBA178 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 04CE95251C8992F000CBA178 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 04CE952C1C8992F000CBA178;\n\t\t\tremoteInfo = SYStickHeaderWaterFall;\n\t\t};\n\t\t04CE95521C8992F100CBA178 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 04CE95251C8992F000CBA178 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 04CE952C1C8992F000CBA178;\n\t\t\tremoteInfo = SYStickHeaderWaterFall;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t042E9AA81C8EA247004C406C /* HomePageHeadView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomePageHeadView.h; sourceTree = \"<group>\"; };\n\t\t042E9AA91C8EA247004C406C /* HomePageHeadView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomePageHeadView.m; sourceTree = \"<group>\"; };\n\t\t042E9AAA1C8EA247004C406C /* HPCollectionViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HPCollectionViewCell.h; sourceTree = \"<group>\"; };\n\t\t042E9AAB1C8EA247004C406C /* HPCollectionViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HPCollectionViewCell.m; sourceTree = \"<group>\"; };\n\t\t042E9AAE1C8EA269004C406C /* HomeThreeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomeThreeViewController.h; sourceTree = \"<group>\"; };\n\t\t042E9AAF1C8EA269004C406C /* HomeThreeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomeThreeViewController.m; sourceTree = \"<group>\"; };\n\t\t042E9AB11C8EA66D004C406C /* HomeModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomeModel.h; sourceTree = \"<group>\"; };\n\t\t042E9AB21C8EA66D004C406C /* HomeModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomeModel.m; sourceTree = \"<group>\"; };\n\t\t042E9AB51C8EA810004C406C /* RequestCustom.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RequestCustom.h; sourceTree = \"<group>\"; };\n\t\t042E9AB61C8EA810004C406C /* RequestCustom.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RequestCustom.m; sourceTree = \"<group>\"; };\n\t\t042E9AB81C8EAA65004C406C /* BannerModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BannerModel.h; sourceTree = \"<group>\"; };\n\t\t042E9AB91C8EAA65004C406C /* BannerModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BannerModel.m; sourceTree = \"<group>\"; };\n\t\t042E9ABB1C8EAC39004C406C /* HPCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = HPCollectionViewCell.xib; sourceTree = \"<group>\"; };\n\t\t045631521C9FF5610099ED78 /* SYRootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SYRootViewController.h; sourceTree = \"<group>\"; };\n\t\t045631531C9FF5610099ED78 /* SYRootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SYRootViewController.m; sourceTree = \"<group>\"; };\n\t\t045631551C9FF7CF0099ED78 /* MulitipleSectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MulitipleSectionViewController.h; sourceTree = \"<group>\"; };\n\t\t045631561C9FF7CF0099ED78 /* MulitipleSectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MulitipleSectionViewController.m; sourceTree = \"<group>\"; };\n\t\t045979071C99039100C2E8C2 /* Classes */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Classes; path = SYStickHeaderWaterFall/Classes; sourceTree = \"<group>\"; };\n\t\t0459790A1C99054F00C2E8C2 /* SYStickHeaderWaterFallLayout.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = SYStickHeaderWaterFallLayout.m; path = SYStickHeaderWaterFall/Classes/SYStickHeaderWaterFallLayout.m; sourceTree = \"<group>\"; };\n\t\t04A93B851CA0D7BC00C7DBC1 /* MulitipleSectionNoTopHeightViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MulitipleSectionNoTopHeightViewController.h; sourceTree = \"<group>\"; };\n\t\t04A93B861CA0D7BC00C7DBC1 /* MulitipleSectionNoTopHeightViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MulitipleSectionNoTopHeightViewController.m; sourceTree = \"<group>\"; };\n\t\t04A93B881CA0E2F500C7DBC1 /* MulitipleSectionHeaderToTopViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MulitipleSectionHeaderToTopViewController.h; sourceTree = \"<group>\"; };\n\t\t04A93B891CA0E2F500C7DBC1 /* MulitipleSectionHeaderToTopViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MulitipleSectionHeaderToTopViewController.m; sourceTree = \"<group>\"; };\n\t\t04A93B8B1CA0FB2C00C7DBC1 /* 4.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = 4.gif; sourceTree = \"<group>\"; };\n\t\t04CE952D1C8992F000CBA178 /* SYStickHeaderWaterFall.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SYStickHeaderWaterFall.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t04CE95311C8992F000CBA178 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t04CE95331C8992F000CBA178 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\t04CE95341C8992F000CBA178 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\t04CE95361C8992F000CBA178 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = \"<group>\"; };\n\t\t04CE95371C8992F000CBA178 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = \"<group>\"; };\n\t\t04CE953A1C8992F000CBA178 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t04CE953C1C8992F000CBA178 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t04CE953F1C8992F000CBA178 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t04CE95411C8992F000CBA178 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t04CE95461C8992F100CBA178 /* SYStickHeaderWaterFallTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SYStickHeaderWaterFallTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t04CE954A1C8992F100CBA178 /* SYStickHeaderWaterFallTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SYStickHeaderWaterFallTests.m; sourceTree = \"<group>\"; };\n\t\t04CE954C1C8992F100CBA178 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t04CE95511C8992F100CBA178 /* SYStickHeaderWaterFallUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SYStickHeaderWaterFallUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t04CE95551C8992F100CBA178 /* SYStickHeaderWaterFallUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SYStickHeaderWaterFallUITests.m; sourceTree = \"<group>\"; };\n\t\t04CE95571C8992F100CBA178 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t3201C1CCBC0FD703D130B35C /* libPods-SYStickHeaderWaterFallUITests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-SYStickHeaderWaterFallUITests.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t3F7A6B004A65890C742012AD /* Pods-SYStickHeaderWaterFall.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SYStickHeaderWaterFall.debug.xcconfig\"; path = \"Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t7802C47C1F945FA03A9A3577 /* Pods-SYStickHeaderWaterFallUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SYStickHeaderWaterFallUITests.debug.xcconfig\"; path = \"Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t9A7A8538F9C905F586F89541 /* Pods-SYStickHeaderWaterFallUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SYStickHeaderWaterFallUITests.release.xcconfig\"; path = \"Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\tA1B489B8281B8BDD92943F8F /* libPods-SYStickHeaderWaterFallTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-SYStickHeaderWaterFallTests.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tBB62A1E3D201D40FE8F3BCA4 /* Pods-SYStickHeaderWaterFall.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SYStickHeaderWaterFall.release.xcconfig\"; path = \"Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\tBEB81134C9AF2972112DCED5 /* Pods-SYStickHeaderWaterFallTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SYStickHeaderWaterFallTests.release.xcconfig\"; path = \"Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\tCDBDC4C18413DD503332F423 /* libPods-SYStickHeaderWaterFall.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-SYStickHeaderWaterFall.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tEEC273E535D9358DFEA02119 /* Pods-SYStickHeaderWaterFallTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-SYStickHeaderWaterFallTests.debug.xcconfig\"; path = \"Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\tF02289D71CD1F77800EFF43C /* SYSHomeRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SYSHomeRequest.h; sourceTree = \"<group>\"; };\n\t\tF02289D81CD1F77800EFF43C /* SYSHomeRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SYSHomeRequest.m; sourceTree = \"<group>\"; };\n\t\tF02289DA1CD203C600EFF43C /* SYSHomeBannerRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SYSHomeBannerRequest.h; sourceTree = \"<group>\"; };\n\t\tF02289DB1CD203C600EFF43C /* SYSHomeBannerRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SYSHomeBannerRequest.m; sourceTree = \"<group>\"; };\n\t\tF02289DD1CD2042400EFF43C /* SYSURLMacro.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SYSURLMacro.h; sourceTree = \"<group>\"; };\n\t\tF02289DE1CD206CF00EFF43C /* SYSMAINMacro.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SYSMAINMacro.h; path = ../SYSMAINMacro.h; sourceTree = \"<group>\"; };\n\t\tF0E12CED1CDC7B59002BA5CC /* YYFPSLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YYFPSLabel.h; sourceTree = \"<group>\"; };\n\t\tF0E12CEE1CDC7B5A002BA5CC /* YYFPSLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YYFPSLabel.m; sourceTree = \"<group>\"; };\n\t\tF0E12CF01CDC7B91002BA5CC /* YYWeakProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YYWeakProxy.h; sourceTree = \"<group>\"; };\n\t\tF0E12CF11CDC7B91002BA5CC /* YYWeakProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YYWeakProxy.m; sourceTree = \"<group>\"; };\n\t\tF0E355581CD9CAD9003828FE /* 2.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = 2.gif; sourceTree = \"<group>\"; };\n\t\tF0F07D631CD0CB3400B26453 /* BaseRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BaseRequest.h; sourceTree = \"<group>\"; };\n\t\tF0F07D641CD0CB3400B26453 /* BaseRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BaseRequest.m; sourceTree = \"<group>\"; };\n\t\tF0F07D651CD0CB3400B26453 /* NetWorkAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetWorkAgent.h; sourceTree = \"<group>\"; };\n\t\tF0F07D661CD0CB3400B26453 /* NetWorkAgent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NetWorkAgent.m; sourceTree = \"<group>\"; };\n\t\tF0F07D671CD0CB3400B26453 /* NetWorkConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetWorkConfig.h; sourceTree = \"<group>\"; };\n\t\tF0F07D681CD0CB3400B26453 /* NetWorkConfig.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NetWorkConfig.m; sourceTree = \"<group>\"; };\n\t\tF0F07D691CD0CB3400B26453 /* NetWorkPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetWorkPrivate.h; sourceTree = \"<group>\"; };\n\t\tF0F07D6A1CD0CB3400B26453 /* NetWorkPrivate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NetWorkPrivate.m; sourceTree = \"<group>\"; };\n\t\tF0F07D6B1CD0CB3400B26453 /* YZPBaseRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YZPBaseRequest.h; sourceTree = \"<group>\"; };\n\t\tF0F07D6C1CD0CB3400B26453 /* YZPBaseRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YZPBaseRequest.m; sourceTree = \"<group>\"; };\n\t\tFE39D45D1CD77AF9005135DA /* HomeFooterCollectionReusableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomeFooterCollectionReusableView.h; sourceTree = \"<group>\"; };\n\t\tFE39D45E1CD77AF9005135DA /* HomeFooterCollectionReusableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomeFooterCollectionReusableView.m; sourceTree = \"<group>\"; };\n\t\tFE39D4631CD78249005135DA /* MulitipleSectionHeaderFooterViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MulitipleSectionHeaderFooterViewController.h; sourceTree = \"<group>\"; };\n\t\tFE39D4641CD78249005135DA /* MulitipleSectionHeaderFooterViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MulitipleSectionHeaderFooterViewController.m; sourceTree = \"<group>\"; };\n\t\tFE39D4661CD78C4F005135DA /* 1.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = 1.gif; sourceTree = \"<group>\"; };\n\t\tFE3B5AE71EBC6FA400E1F3E7 /* HomeData.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = HomeData.json; sourceTree = \"<group>\"; };\n\t\tFE402DAF1CD8DA5A00FF7786 /* NoHeaderNoFooterViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NoHeaderNoFooterViewController.h; sourceTree = \"<group>\"; };\n\t\tFE402DB01CD8DA5A00FF7786 /* NoHeaderNoFooterViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NoHeaderNoFooterViewController.m; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t04CE952A1C8992F000CBA178 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t43CD84D6E06320493D4D1043 /* libPods-SYStickHeaderWaterFall.a in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t04CE95431C8992F100CBA178 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t89A35E9B7B673FA8C90880B8 /* libPods-SYStickHeaderWaterFallTests.a in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t04CE954E1C8992F100CBA178 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t92698E6E2D2CC9838DE2ECCD /* libPods-SYStickHeaderWaterFallUITests.a in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t042E9AA71C8EA169004C406C /* Controller */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tFE39D4631CD78249005135DA /* MulitipleSectionHeaderFooterViewController.h */,\n\t\t\t\tFE39D4641CD78249005135DA /* MulitipleSectionHeaderFooterViewController.m */,\n\t\t\t\t042E9AAE1C8EA269004C406C /* HomeThreeViewController.h */,\n\t\t\t\t042E9AAF1C8EA269004C406C /* HomeThreeViewController.m */,\n\t\t\t\t045631551C9FF7CF0099ED78 /* MulitipleSectionViewController.h */,\n\t\t\t\t045631561C9FF7CF0099ED78 /* MulitipleSectionViewController.m */,\n\t\t\t\t04A93B851CA0D7BC00C7DBC1 /* MulitipleSectionNoTopHeightViewController.h */,\n\t\t\t\t04A93B861CA0D7BC00C7DBC1 /* MulitipleSectionNoTopHeightViewController.m */,\n\t\t\t\t04A93B881CA0E2F500C7DBC1 /* MulitipleSectionHeaderToTopViewController.h */,\n\t\t\t\t04A93B891CA0E2F500C7DBC1 /* MulitipleSectionHeaderToTopViewController.m */,\n\t\t\t\tFE402DAF1CD8DA5A00FF7786 /* NoHeaderNoFooterViewController.h */,\n\t\t\t\tFE402DB01CD8DA5A00FF7786 /* NoHeaderNoFooterViewController.m */,\n\t\t\t\tFE3B5AE71EBC6FA400E1F3E7 /* HomeData.json */,\n\t\t\t);\n\t\t\tname = Controller;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t042E9AB41C8EA7D4004C406C /* Tool */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tF0F07D631CD0CB3400B26453 /* BaseRequest.h */,\n\t\t\t\tF0F07D641CD0CB3400B26453 /* BaseRequest.m */,\n\t\t\t\tF0F07D651CD0CB3400B26453 /* NetWorkAgent.h */,\n\t\t\t\tF0F07D661CD0CB3400B26453 /* NetWorkAgent.m */,\n\t\t\t\tF0F07D671CD0CB3400B26453 /* NetWorkConfig.h */,\n\t\t\t\tF0F07D681CD0CB3400B26453 /* NetWorkConfig.m */,\n\t\t\t\tF0F07D691CD0CB3400B26453 /* NetWorkPrivate.h */,\n\t\t\t\tF0F07D6A1CD0CB3400B26453 /* NetWorkPrivate.m */,\n\t\t\t\tF0F07D6B1CD0CB3400B26453 /* YZPBaseRequest.h */,\n\t\t\t\tF0F07D6C1CD0CB3400B26453 /* YZPBaseRequest.m */,\n\t\t\t\t042E9AB51C8EA810004C406C /* RequestCustom.h */,\n\t\t\t\t042E9AB61C8EA810004C406C /* RequestCustom.m */,\n\t\t\t);\n\t\t\tname = Tool;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE95241C8992F000CBA178 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t0459790A1C99054F00C2E8C2 /* SYStickHeaderWaterFallLayout.m */,\n\t\t\t\t045979071C99039100C2E8C2 /* Classes */,\n\t\t\t\t04CE952F1C8992F000CBA178 /* SYStickHeaderWaterFall */,\n\t\t\t\t04CE95491C8992F100CBA178 /* SYStickHeaderWaterFallTests */,\n\t\t\t\t04CE95541C8992F100CBA178 /* SYStickHeaderWaterFallUITests */,\n\t\t\t\t04CE952E1C8992F000CBA178 /* Products */,\n\t\t\t\t1FEADCEA23C732A1EB6853E1 /* Pods */,\n\t\t\t\tDFFA959CDF854F606EAD51E6 /* Frameworks */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE952E1C8992F000CBA178 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t04CE952D1C8992F000CBA178 /* SYStickHeaderWaterFall.app */,\n\t\t\t\t04CE95461C8992F100CBA178 /* SYStickHeaderWaterFallTests.xctest */,\n\t\t\t\t04CE95511C8992F100CBA178 /* SYStickHeaderWaterFallUITests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE952F1C8992F000CBA178 /* SYStickHeaderWaterFall */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tF0E355581CD9CAD9003828FE /* 2.gif */,\n\t\t\t\tFE39D4661CD78C4F005135DA /* 1.gif */,\n\t\t\t\tF02289D61CD1F73700EFF43C /* Api */,\n\t\t\t\t04A93B8B1CA0FB2C00C7DBC1 /* 4.gif */,\n\t\t\t\t042E9AB41C8EA7D4004C406C /* Tool */,\n\t\t\t\t042E9AA71C8EA169004C406C /* Controller */,\n\t\t\t\t04CE95671C89998400CBA178 /* View */,\n\t\t\t\t04CE95631C89934000CBA178 /* Model */,\n\t\t\t\t04CE95331C8992F000CBA178 /* AppDelegate.h */,\n\t\t\t\t04CE95341C8992F000CBA178 /* AppDelegate.m */,\n\t\t\t\t04CE95361C8992F000CBA178 /* ViewController.h */,\n\t\t\t\t04CE95371C8992F000CBA178 /* ViewController.m */,\n\t\t\t\t04CE95391C8992F000CBA178 /* Main.storyboard */,\n\t\t\t\t04CE953C1C8992F000CBA178 /* Assets.xcassets */,\n\t\t\t\t04CE953E1C8992F000CBA178 /* LaunchScreen.storyboard */,\n\t\t\t\t04CE95411C8992F000CBA178 /* Info.plist */,\n\t\t\t\t04CE95301C8992F000CBA178 /* Supporting Files */,\n\t\t\t\t045631521C9FF5610099ED78 /* SYRootViewController.h */,\n\t\t\t\tF02289DE1CD206CF00EFF43C /* SYSMAINMacro.h */,\n\t\t\t\t045631531C9FF5610099ED78 /* SYRootViewController.m */,\n\t\t\t\tF02289DD1CD2042400EFF43C /* SYSURLMacro.h */,\n\t\t\t);\n\t\t\tpath = SYStickHeaderWaterFall;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE95301C8992F000CBA178 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t04CE95311C8992F000CBA178 /* main.m */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE95491C8992F100CBA178 /* SYStickHeaderWaterFallTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t04CE954A1C8992F100CBA178 /* SYStickHeaderWaterFallTests.m */,\n\t\t\t\t04CE954C1C8992F100CBA178 /* Info.plist */,\n\t\t\t);\n\t\t\tpath = SYStickHeaderWaterFallTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE95541C8992F100CBA178 /* SYStickHeaderWaterFallUITests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t04CE95551C8992F100CBA178 /* SYStickHeaderWaterFallUITests.m */,\n\t\t\t\t04CE95571C8992F100CBA178 /* Info.plist */,\n\t\t\t);\n\t\t\tpath = SYStickHeaderWaterFallUITests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE95631C89934000CBA178 /* Model */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t042E9AB81C8EAA65004C406C /* BannerModel.h */,\n\t\t\t\t042E9AB91C8EAA65004C406C /* BannerModel.m */,\n\t\t\t\t042E9AB11C8EA66D004C406C /* HomeModel.h */,\n\t\t\t\t042E9AB21C8EA66D004C406C /* HomeModel.m */,\n\t\t\t);\n\t\t\tname = Model;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE95671C89998400CBA178 /* View */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tF0E12CF01CDC7B91002BA5CC /* YYWeakProxy.h */,\n\t\t\t\tF0E12CF11CDC7B91002BA5CC /* YYWeakProxy.m */,\n\t\t\t\tF0E12CED1CDC7B59002BA5CC /* YYFPSLabel.h */,\n\t\t\t\tF0E12CEE1CDC7B5A002BA5CC /* YYFPSLabel.m */,\n\t\t\t\tFE39D45D1CD77AF9005135DA /* HomeFooterCollectionReusableView.h */,\n\t\t\t\tFE39D45E1CD77AF9005135DA /* HomeFooterCollectionReusableView.m */,\n\t\t\t\t042E9AA81C8EA247004C406C /* HomePageHeadView.h */,\n\t\t\t\t042E9AA91C8EA247004C406C /* HomePageHeadView.m */,\n\t\t\t\t042E9AAA1C8EA247004C406C /* HPCollectionViewCell.h */,\n\t\t\t\t042E9AAB1C8EA247004C406C /* HPCollectionViewCell.m */,\n\t\t\t\t042E9ABB1C8EAC39004C406C /* HPCollectionViewCell.xib */,\n\t\t\t);\n\t\t\tname = View;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t1FEADCEA23C732A1EB6853E1 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t3F7A6B004A65890C742012AD /* Pods-SYStickHeaderWaterFall.debug.xcconfig */,\n\t\t\t\tBB62A1E3D201D40FE8F3BCA4 /* Pods-SYStickHeaderWaterFall.release.xcconfig */,\n\t\t\t\tEEC273E535D9358DFEA02119 /* Pods-SYStickHeaderWaterFallTests.debug.xcconfig */,\n\t\t\t\tBEB81134C9AF2972112DCED5 /* Pods-SYStickHeaderWaterFallTests.release.xcconfig */,\n\t\t\t\t7802C47C1F945FA03A9A3577 /* Pods-SYStickHeaderWaterFallUITests.debug.xcconfig */,\n\t\t\t\t9A7A8538F9C905F586F89541 /* Pods-SYStickHeaderWaterFallUITests.release.xcconfig */,\n\t\t\t);\n\t\t\tname = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDFFA959CDF854F606EAD51E6 /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCDBDC4C18413DD503332F423 /* libPods-SYStickHeaderWaterFall.a */,\n\t\t\t\tA1B489B8281B8BDD92943F8F /* libPods-SYStickHeaderWaterFallTests.a */,\n\t\t\t\t3201C1CCBC0FD703D130B35C /* libPods-SYStickHeaderWaterFallUITests.a */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tF02289D61CD1F73700EFF43C /* Api */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tF02289D71CD1F77800EFF43C /* SYSHomeRequest.h */,\n\t\t\t\tF02289D81CD1F77800EFF43C /* SYSHomeRequest.m */,\n\t\t\t\tF02289DA1CD203C600EFF43C /* SYSHomeBannerRequest.h */,\n\t\t\t\tF02289DB1CD203C600EFF43C /* SYSHomeBannerRequest.m */,\n\t\t\t);\n\t\t\tname = Api;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t04CE952C1C8992F000CBA178 /* SYStickHeaderWaterFall */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 04CE955A1C8992F100CBA178 /* Build configuration list for PBXNativeTarget \"SYStickHeaderWaterFall\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t4D9C3ECFFE4358BA1E0FC50B /* Check Pods Manifest.lock */,\n\t\t\t\t04CE95291C8992F000CBA178 /* Sources */,\n\t\t\t\t04CE952A1C8992F000CBA178 /* Frameworks */,\n\t\t\t\t04CE952B1C8992F000CBA178 /* Resources */,\n\t\t\t\t188907C9D929DE7CC137C91D /* Embed Pods Frameworks */,\n\t\t\t\tC405FBC850498FE9C035CF46 /* Copy Pods Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = SYStickHeaderWaterFall;\n\t\t\tproductName = SYStickHeaderWaterFall;\n\t\t\tproductReference = 04CE952D1C8992F000CBA178 /* SYStickHeaderWaterFall.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t04CE95451C8992F100CBA178 /* SYStickHeaderWaterFallTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 04CE955D1C8992F100CBA178 /* Build configuration list for PBXNativeTarget \"SYStickHeaderWaterFallTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tF1782E47EEABD40F4CF9D88A /* Check Pods Manifest.lock */,\n\t\t\t\t04CE95421C8992F100CBA178 /* Sources */,\n\t\t\t\t04CE95431C8992F100CBA178 /* Frameworks */,\n\t\t\t\t04CE95441C8992F100CBA178 /* Resources */,\n\t\t\t\t121F113F719D2B0DE7C8378A /* Embed Pods Frameworks */,\n\t\t\t\t2F0A9101D296962567ADEC5D /* Copy Pods Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t04CE95481C8992F100CBA178 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = SYStickHeaderWaterFallTests;\n\t\t\tproductName = SYStickHeaderWaterFallTests;\n\t\t\tproductReference = 04CE95461C8992F100CBA178 /* SYStickHeaderWaterFallTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n\t\t04CE95501C8992F100CBA178 /* SYStickHeaderWaterFallUITests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 04CE95601C8992F100CBA178 /* Build configuration list for PBXNativeTarget \"SYStickHeaderWaterFallUITests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tD979F992785E6FA0C9E27ECD /* Check Pods Manifest.lock */,\n\t\t\t\t04CE954D1C8992F100CBA178 /* Sources */,\n\t\t\t\t04CE954E1C8992F100CBA178 /* Frameworks */,\n\t\t\t\t04CE954F1C8992F100CBA178 /* Resources */,\n\t\t\t\t7C72A9494EAAD69C6B885B14 /* Copy Pods Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t04CE95531C8992F100CBA178 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = SYStickHeaderWaterFallUITests;\n\t\t\tproductName = SYStickHeaderWaterFallUITests;\n\t\t\tproductReference = 04CE95511C8992F100CBA178 /* SYStickHeaderWaterFallUITests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.ui-testing\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t04CE95251C8992F000CBA178 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0720;\n\t\t\t\tORGANIZATIONNAME = suya;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t04CE952C1C8992F000CBA178 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.2;\n\t\t\t\t\t};\n\t\t\t\t\t04CE95451C8992F100CBA178 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.2;\n\t\t\t\t\t\tTestTargetID = 04CE952C1C8992F000CBA178;\n\t\t\t\t\t};\n\t\t\t\t\t04CE95501C8992F100CBA178 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.2;\n\t\t\t\t\t\tTestTargetID = 04CE952C1C8992F000CBA178;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 04CE95281C8992F000CBA178 /* Build configuration list for PBXProject \"SYStickHeaderWaterFall\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 04CE95241C8992F000CBA178;\n\t\t\tproductRefGroup = 04CE952E1C8992F000CBA178 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t04CE952C1C8992F000CBA178 /* SYStickHeaderWaterFall */,\n\t\t\t\t04CE95451C8992F100CBA178 /* SYStickHeaderWaterFallTests */,\n\t\t\t\t04CE95501C8992F100CBA178 /* SYStickHeaderWaterFallUITests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t04CE952B1C8992F000CBA178 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t042E9ABC1C8EAC39004C406C /* HPCollectionViewCell.xib in Resources */,\n\t\t\t\t04CE95401C8992F000CBA178 /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t04CE953D1C8992F000CBA178 /* Assets.xcassets in Resources */,\n\t\t\t\tF0E355591CD9CAD9003828FE /* 2.gif in Resources */,\n\t\t\t\t04CE953B1C8992F000CBA178 /* Main.storyboard in Resources */,\n\t\t\t\tFE39D4671CD78C4F005135DA /* 1.gif in Resources */,\n\t\t\t\tFE3B5AE81EBC6FA400E1F3E7 /* HomeData.json in Resources */,\n\t\t\t\t045979081C99039100C2E8C2 /* Classes in Resources */,\n\t\t\t\t04A93B8C1CA0FB2C00C7DBC1 /* 4.gif in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t04CE95441C8992F100CBA178 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t04CE954F1C8992F100CBA178 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t121F113F719D2B0DE7C8378A /* Embed Pods Frameworks */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Embed Pods Frameworks\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t188907C9D929DE7CC137C91D /* Embed Pods Frameworks */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Embed Pods Frameworks\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t2F0A9101D296962567ADEC5D /* Copy Pods Resources */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Copy Pods Resources\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-SYStickHeaderWaterFallTests/Pods-SYStickHeaderWaterFallTests-resources.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t4D9C3ECFFE4358BA1E0FC50B /* Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Check Pods Manifest.lock\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_ROOT}/../Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [[ $? != 0 ]] ; then\\n    cat << EOM\\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\nEOM\\n    exit 1\\nfi\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t7C72A9494EAAD69C6B885B14 /* Copy Pods Resources */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Copy Pods Resources\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-SYStickHeaderWaterFallUITests/Pods-SYStickHeaderWaterFallUITests-resources.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tC405FBC850498FE9C035CF46 /* Copy Pods Resources */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Copy Pods Resources\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-SYStickHeaderWaterFall/Pods-SYStickHeaderWaterFall-resources.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tD979F992785E6FA0C9E27ECD /* Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Check Pods Manifest.lock\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_ROOT}/../Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [[ $? != 0 ]] ; then\\n    cat << EOM\\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\nEOM\\n    exit 1\\nfi\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tF1782E47EEABD40F4CF9D88A /* Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Check Pods Manifest.lock\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_ROOT}/../Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [[ $? != 0 ]] ; then\\n    cat << EOM\\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\nEOM\\n    exit 1\\nfi\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t04CE95291C8992F000CBA178 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t0459790B1C99054F00C2E8C2 /* SYStickHeaderWaterFallLayout.m in Sources */,\n\t\t\t\t042E9AB31C8EA66D004C406C /* HomeModel.m in Sources */,\n\t\t\t\tF0F07D6E1CD0CB3400B26453 /* NetWorkAgent.m in Sources */,\n\t\t\t\tF02289DC1CD203C600EFF43C /* SYSHomeBannerRequest.m in Sources */,\n\t\t\t\t04A93B8A1CA0E2F500C7DBC1 /* MulitipleSectionHeaderToTopViewController.m in Sources */,\n\t\t\t\t04A93B871CA0D7BC00C7DBC1 /* MulitipleSectionNoTopHeightViewController.m in Sources */,\n\t\t\t\tF0E12CEF1CDC7B5A002BA5CC /* YYFPSLabel.m in Sources */,\n\t\t\t\t04CE95381C8992F000CBA178 /* ViewController.m in Sources */,\n\t\t\t\tFE39D45F1CD77AF9005135DA /* HomeFooterCollectionReusableView.m in Sources */,\n\t\t\t\tF0F07D701CD0CB3400B26453 /* NetWorkPrivate.m in Sources */,\n\t\t\t\t042E9AB71C8EA810004C406C /* RequestCustom.m in Sources */,\n\t\t\t\t042E9AAC1C8EA247004C406C /* HomePageHeadView.m in Sources */,\n\t\t\t\tF0F07D711CD0CB3400B26453 /* YZPBaseRequest.m in Sources */,\n\t\t\t\tF0F07D6D1CD0CB3400B26453 /* BaseRequest.m in Sources */,\n\t\t\t\t04CE95351C8992F000CBA178 /* AppDelegate.m in Sources */,\n\t\t\t\tF02289D91CD1F77800EFF43C /* SYSHomeRequest.m in Sources */,\n\t\t\t\t042E9AAD1C8EA247004C406C /* HPCollectionViewCell.m in Sources */,\n\t\t\t\tFE402DB11CD8DA5A00FF7786 /* NoHeaderNoFooterViewController.m in Sources */,\n\t\t\t\t045631541C9FF5610099ED78 /* SYRootViewController.m in Sources */,\n\t\t\t\t045631571C9FF7CF0099ED78 /* MulitipleSectionViewController.m in Sources */,\n\t\t\t\tF0E12CF21CDC7B91002BA5CC /* YYWeakProxy.m in Sources */,\n\t\t\t\t04CE95321C8992F000CBA178 /* main.m in Sources */,\n\t\t\t\tFE39D4651CD78249005135DA /* MulitipleSectionHeaderFooterViewController.m in Sources */,\n\t\t\t\t042E9AB01C8EA269004C406C /* HomeThreeViewController.m in Sources */,\n\t\t\t\t042E9ABA1C8EAA65004C406C /* BannerModel.m in Sources */,\n\t\t\t\tF0F07D6F1CD0CB3400B26453 /* NetWorkConfig.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t04CE95421C8992F100CBA178 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t04CE954B1C8992F100CBA178 /* SYStickHeaderWaterFallTests.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t04CE954D1C8992F100CBA178 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t04CE95561C8992F100CBA178 /* SYStickHeaderWaterFallUITests.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t04CE95481C8992F100CBA178 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 04CE952C1C8992F000CBA178 /* SYStickHeaderWaterFall */;\n\t\t\ttargetProxy = 04CE95471C8992F100CBA178 /* PBXContainerItemProxy */;\n\t\t};\n\t\t04CE95531C8992F100CBA178 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 04CE952C1C8992F000CBA178 /* SYStickHeaderWaterFall */;\n\t\t\ttargetProxy = 04CE95521C8992F100CBA178 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t04CE95391C8992F000CBA178 /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t04CE953A1C8992F000CBA178 /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t04CE953E1C8992F000CBA178 /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t04CE953F1C8992F000CBA178 /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t04CE95581C8992F100CBA178 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t04CE95591C8992F100CBA178 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.2;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t04CE955B1C8992F100CBA178 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 3F7A6B004A65890C742012AD /* Pods-SYStickHeaderWaterFall.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = SYStickHeaderWaterFall/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.suya.SYStickHeaderWaterFall;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t04CE955C1C8992F100CBA178 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = BB62A1E3D201D40FE8F3BCA4 /* Pods-SYStickHeaderWaterFall.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = SYStickHeaderWaterFall/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.suya.SYStickHeaderWaterFall;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t04CE955E1C8992F100CBA178 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = EEC273E535D9358DFEA02119 /* Pods-SYStickHeaderWaterFallTests.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tINFOPLIST_FILE = SYStickHeaderWaterFallTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.suya.SYStickHeaderWaterFallTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/SYStickHeaderWaterFall.app/SYStickHeaderWaterFall\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t04CE955F1C8992F100CBA178 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = BEB81134C9AF2972112DCED5 /* Pods-SYStickHeaderWaterFallTests.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tINFOPLIST_FILE = SYStickHeaderWaterFallTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.suya.SYStickHeaderWaterFallTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/SYStickHeaderWaterFall.app/SYStickHeaderWaterFall\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t04CE95611C8992F100CBA178 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7802C47C1F945FA03A9A3577 /* Pods-SYStickHeaderWaterFallUITests.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tINFOPLIST_FILE = SYStickHeaderWaterFallUITests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.suya.SYStickHeaderWaterFallUITests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_TARGET_NAME = SYStickHeaderWaterFall;\n\t\t\t\tUSES_XCTRUNNER = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t04CE95621C8992F100CBA178 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 9A7A8538F9C905F586F89541 /* Pods-SYStickHeaderWaterFallUITests.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tINFOPLIST_FILE = SYStickHeaderWaterFallUITests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.suya.SYStickHeaderWaterFallUITests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_TARGET_NAME = SYStickHeaderWaterFall;\n\t\t\t\tUSES_XCTRUNNER = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t04CE95281C8992F000CBA178 /* Build configuration list for PBXProject \"SYStickHeaderWaterFall\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t04CE95581C8992F100CBA178 /* Debug */,\n\t\t\t\t04CE95591C8992F100CBA178 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t04CE955A1C8992F100CBA178 /* Build configuration list for PBXNativeTarget \"SYStickHeaderWaterFall\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t04CE955B1C8992F100CBA178 /* Debug */,\n\t\t\t\t04CE955C1C8992F100CBA178 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t04CE955D1C8992F100CBA178 /* Build configuration list for PBXNativeTarget \"SYStickHeaderWaterFallTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t04CE955E1C8992F100CBA178 /* Debug */,\n\t\t\t\t04CE955F1C8992F100CBA178 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t04CE95601C8992F100CBA178 /* Build configuration list for PBXNativeTarget \"SYStickHeaderWaterFallUITests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t04CE95611C8992F100CBA178 /* Debug */,\n\t\t\t\t04CE95621C8992F100CBA178 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 04CE95251C8992F000CBA178 /* Project object */;\n}\n"
  },
  {
    "path": "SYStickHeaderWaterFall.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:SYStickHeaderWaterFall.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "SYStickHeaderWaterFall.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:SYStickHeaderWaterFall.xcodeproj\">\n   </FileRef>\n   <FileRef\n      location = \"group:Pods/Pods.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "SYStickHeaderWaterFallTests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "SYStickHeaderWaterFallTests/SYStickHeaderWaterFallTests.m",
    "content": "//\n//  SYStickHeaderWaterFallTests.m\n//  SYStickHeaderWaterFallTests\n//\n//  Created by Mac on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <XCTest/XCTest.h>\n\n@interface SYStickHeaderWaterFallTests : XCTestCase\n\n@end\n\n@implementation SYStickHeaderWaterFallTests\n\n- (void)setUp {\n    [super setUp];\n    // Put setup code here. This method is called before the invocation of each test method in the class.\n}\n\n- (void)tearDown {\n    // Put teardown code here. This method is called after the invocation of each test method in the class.\n    [super tearDown];\n}\n\n- (void)testExample {\n    // This is an example of a functional test case.\n    // Use XCTAssert and related functions to verify your tests produce the correct results.\n}\n\n- (void)testPerformanceExample {\n    // This is an example of a performance test case.\n    [self measureBlock:^{\n        // Put the code you want to measure the time of here.\n    }];\n}\n\n@end\n"
  },
  {
    "path": "SYStickHeaderWaterFallUITests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "SYStickHeaderWaterFallUITests/SYStickHeaderWaterFallUITests.m",
    "content": "//\n//  SYStickHeaderWaterFallUITests.m\n//  SYStickHeaderWaterFallUITests\n//\n//  Created by Mac on 16/3/4.\n//  Copyright © 2016年 suya. All rights reserved.\n//\n\n#import <XCTest/XCTest.h>\n\n@interface SYStickHeaderWaterFallUITests : XCTestCase\n\n@end\n\n@implementation SYStickHeaderWaterFallUITests\n\n- (void)setUp {\n    [super setUp];\n    \n    // Put setup code here. This method is called before the invocation of each test method in the class.\n    \n    // In UI tests it is usually best to stop immediately when a failure occurs.\n    self.continueAfterFailure = NO;\n    // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.\n    [[[XCUIApplication alloc] init] launch];\n    \n    // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.\n}\n\n- (void)tearDown {\n    // Put teardown code here. This method is called after the invocation of each test method in the class.\n    [super tearDown];\n}\n\n- (void)testExample {\n    // Use recording to get started writing UI tests.\n    // Use XCTAssert and related functions to verify your tests produce the correct results.\n}\n\n@end\n"
  }
]