Commit a2e9cf2448b5250ac07b88120afac0e1611ec8d8
1 parent
03b2b9fd
0.0.1
Showing
117 changed files
with
7291 additions
and
1 deletions
.gitignore
0 → 100644
| 1 | +# OS X | |
| 2 | +.DS_Store | |
| 3 | + | |
| 4 | +# Xcode | |
| 5 | +build/ | |
| 6 | +Products/ | |
| 7 | +*.pbxuser | |
| 8 | +!default.pbxuser | |
| 9 | +*.mode1v3 | |
| 10 | +!default.mode1v3 | |
| 11 | +*.mode2v3 | |
| 12 | +!default.mode2v3 | |
| 13 | +*.perspectivev3 | |
| 14 | +!default.perspectivev3 | |
| 15 | +xcuserdata/ | |
| 16 | +*.xccheckout | |
| 17 | +profile | |
| 18 | +*.moved-aside | |
| 19 | +DerivedData | |
| 20 | +*.hmap | |
| 21 | +*.ipa | |
| 22 | + | |
| 23 | +# Bundler | |
| 24 | +.bundle | |
| 25 | + | |
| 26 | +# Add this line if you want to avoid checking in source code from Carthage dependencies. | |
| 27 | +# Carthage/Checkouts | |
| 28 | + | |
| 29 | +Carthage/Build | |
| 30 | + | |
| 31 | +# We recommend against adding the Pods directory to your .gitignore. However | |
| 32 | +# you should judge for yourself, the pros and cons are mentioned at: | |
| 33 | +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control | |
| 34 | +# | |
| 35 | +# Note: if you ignore the Pods directory, make sure to uncomment | |
| 36 | +# `pod install` in .travis.yml | |
| 37 | +# | |
| 38 | +# Pods/ | ... | ... |
.travis.yml
0 → 100644
| 1 | +# references: | |
| 2 | +# * https://www.objc.io/issues/6-build-tools/travis-ci/ | |
| 3 | +# * https://github.com/supermarin/xcpretty#usage | |
| 4 | + | |
| 5 | +osx_image: xcode7.3 | |
| 6 | +language: objective-c | |
| 7 | +# cache: cocoapods | |
| 8 | +# podfile: Example/Podfile | |
| 9 | +# before_install: | |
| 10 | +# - gem install cocoapods # Since Travis is not always on latest version | |
| 11 | +# - pod install --project-directory=Example | |
| 12 | +script: | |
| 13 | +- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/CNLiveRefreshFooter.xcworkspace -scheme CNLiveRefreshFooter-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty | |
| 14 | +- pod lib lint | ... | ... |
CNLiveRefreshFooter.podspec
0 → 100644
| 1 | + | |
| 2 | +Pod::Spec.new do |s| | |
| 3 | + s.name = 'CNLiveRefreshFooter' | |
| 4 | + s.version = '0.0.1' | |
| 5 | + s.summary = 'CNLive-iOS尾部刷新' | |
| 6 | + | |
| 7 | + s.description = <<-DESC | |
| 8 | +TODO: Add long description of the pod here. | |
| 9 | + DESC | |
| 10 | + | |
| 11 | + s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRefreshFooter' | |
| 12 | + # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' | |
| 13 | + s.license = { :type => 'MIT', :file => 'LICENSE' } | |
| 14 | + s.author = { '殷巧娟' => '1427945373@qq.com' } | |
| 15 | + s.source = { :git => 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRefreshFooter.git', :tag => s.version.to_s } | |
| 16 | + # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' | |
| 17 | + | |
| 18 | + s.ios.deployment_target = '9.0' | |
| 19 | + | |
| 20 | + s.source_files = 'CNLiveRefreshFooter/Classes/**/*' | |
| 21 | + | |
| 22 | + s.resource_bundles = { | |
| 23 | + 'CNLiveRefreshFooter' => ['CNLiveRefreshFooter/Assets/Assets.xcassets'] | |
| 24 | + } | |
| 25 | + | |
| 26 | + # s.public_header_files = 'Pod/Classes/**/*.h' | |
| 27 | + s.frameworks = 'UIKit', 'Foundation' | |
| 28 | + s.dependency 'MJRefresh' | |
| 29 | +end | ... | ... |
CNLiveRefreshFooter/Assets/Assets.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
| 1 | +{ | |
| 2 | + "images" : [ | |
| 3 | + { | |
| 4 | + "idiom" : "iphone", | |
| 5 | + "size" : "20x20", | |
| 6 | + "scale" : "2x" | |
| 7 | + }, | |
| 8 | + { | |
| 9 | + "idiom" : "iphone", | |
| 10 | + "size" : "20x20", | |
| 11 | + "scale" : "3x" | |
| 12 | + }, | |
| 13 | + { | |
| 14 | + "idiom" : "iphone", | |
| 15 | + "size" : "29x29", | |
| 16 | + "scale" : "2x" | |
| 17 | + }, | |
| 18 | + { | |
| 19 | + "idiom" : "iphone", | |
| 20 | + "size" : "29x29", | |
| 21 | + "scale" : "3x" | |
| 22 | + }, | |
| 23 | + { | |
| 24 | + "idiom" : "iphone", | |
| 25 | + "size" : "40x40", | |
| 26 | + "scale" : "2x" | |
| 27 | + }, | |
| 28 | + { | |
| 29 | + "idiom" : "iphone", | |
| 30 | + "size" : "40x40", | |
| 31 | + "scale" : "3x" | |
| 32 | + }, | |
| 33 | + { | |
| 34 | + "idiom" : "iphone", | |
| 35 | + "size" : "60x60", | |
| 36 | + "scale" : "2x" | |
| 37 | + }, | |
| 38 | + { | |
| 39 | + "idiom" : "iphone", | |
| 40 | + "size" : "60x60", | |
| 41 | + "scale" : "3x" | |
| 42 | + }, | |
| 43 | + { | |
| 44 | + "idiom" : "ipad", | |
| 45 | + "size" : "20x20", | |
| 46 | + "scale" : "1x" | |
| 47 | + }, | |
| 48 | + { | |
| 49 | + "idiom" : "ipad", | |
| 50 | + "size" : "20x20", | |
| 51 | + "scale" : "2x" | |
| 52 | + }, | |
| 53 | + { | |
| 54 | + "idiom" : "ipad", | |
| 55 | + "size" : "29x29", | |
| 56 | + "scale" : "1x" | |
| 57 | + }, | |
| 58 | + { | |
| 59 | + "idiom" : "ipad", | |
| 60 | + "size" : "29x29", | |
| 61 | + "scale" : "2x" | |
| 62 | + }, | |
| 63 | + { | |
| 64 | + "idiom" : "ipad", | |
| 65 | + "size" : "40x40", | |
| 66 | + "scale" : "1x" | |
| 67 | + }, | |
| 68 | + { | |
| 69 | + "idiom" : "ipad", | |
| 70 | + "size" : "40x40", | |
| 71 | + "scale" : "2x" | |
| 72 | + }, | |
| 73 | + { | |
| 74 | + "idiom" : "ipad", | |
| 75 | + "size" : "76x76", | |
| 76 | + "scale" : "1x" | |
| 77 | + }, | |
| 78 | + { | |
| 79 | + "idiom" : "ipad", | |
| 80 | + "size" : "76x76", | |
| 81 | + "scale" : "2x" | |
| 82 | + }, | |
| 83 | + { | |
| 84 | + "idiom" : "ipad", | |
| 85 | + "size" : "83.5x83.5", | |
| 86 | + "scale" : "2x" | |
| 87 | + }, | |
| 88 | + { | |
| 89 | + "idiom" : "ios-marketing", | |
| 90 | + "size" : "1024x1024", | |
| 91 | + "scale" : "1x" | |
| 92 | + } | |
| 93 | + ], | |
| 94 | + "info" : { | |
| 95 | + "version" : 1, | |
| 96 | + "author" : "xcode" | |
| 97 | + } | |
| 98 | +} | |
| 0 | 99 | \ No newline at end of file | ... | ... |
CNLiveRefreshFooter/Assets/Assets.xcassets/Contents.json
0 → 100644
CNLiveRefreshFooter/Assets/Assets.xcassets/logo.imageset/Contents.json
0 → 100644
| 1 | +{ | |
| 2 | + "images" : [ | |
| 3 | + { | |
| 4 | + "idiom" : "universal", | |
| 5 | + "filename" : "logo.png", | |
| 6 | + "scale" : "1x" | |
| 7 | + }, | |
| 8 | + { | |
| 9 | + "idiom" : "universal", | |
| 10 | + "filename" : "logo@2x.png", | |
| 11 | + "scale" : "2x" | |
| 12 | + }, | |
| 13 | + { | |
| 14 | + "idiom" : "universal", | |
| 15 | + "filename" : "logo@3x.png", | |
| 16 | + "scale" : "3x" | |
| 17 | + } | |
| 18 | + ], | |
| 19 | + "info" : { | |
| 20 | + "version" : 1, | |
| 21 | + "author" : "xcode" | |
| 22 | + } | |
| 23 | +} | |
| 0 | 24 | \ No newline at end of file | ... | ... |
CNLiveRefreshFooter/Assets/Assets.xcassets/logo.imageset/logo.png
0 → 100644
2.71 KB
CNLiveRefreshFooter/Assets/Assets.xcassets/logo.imageset/logo@2x.png
0 → 100644
7.16 KB
CNLiveRefreshFooter/Assets/Assets.xcassets/logo.imageset/logo@3x.png
0 → 100644
15.7 KB
CNLiveRefreshFooter/Classes/CNLiveRrfreshFooter.h
0 → 100755
| 1 | +// | |
| 2 | +// CNLiveRrfreshFooter.h | |
| 3 | +// testDemo | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 2018/12/18. | |
| 6 | +// Copyright © 2018年 殷巧娟. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <MJRefresh/MJRefresh.h> | |
| 10 | + | |
| 11 | +NS_ASSUME_NONNULL_BEGIN | |
| 12 | + | |
| 13 | +@interface CNLiveRrfreshFooter : MJRefreshAutoGifFooter | |
| 14 | ++(UIImage *)getImageName:(NSString *)imageName; | |
| 15 | +@end | |
| 16 | + | |
| 17 | +NS_ASSUME_NONNULL_END | ... | ... |
CNLiveRefreshFooter/Classes/CNLiveRrfreshFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveRrfreshFooter.m | |
| 3 | +// testDemo | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 2018/12/18. | |
| 6 | +// Copyright © 2018年 殷巧娟. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "CNLiveRrfreshFooter.h" | |
| 10 | + | |
| 11 | +@interface CNLiveRrfreshFooter () | |
| 12 | +@property (nonatomic, strong) UIImageView *logImageV; | |
| 13 | +@property (nonatomic, strong) UILabel *titleLabel; | |
| 14 | +@property (nonatomic, assign) CGSize imageSize; | |
| 15 | +@end | |
| 16 | + | |
| 17 | +@implementation CNLiveRrfreshFooter | |
| 18 | + | |
| 19 | +-(void)prepare { | |
| 20 | + [super prepare]; | |
| 21 | +// NSArray *array = [NSArray arrayWithObjects:[UIImage imageNamed:@"logo"], nil]; | |
| 22 | + NSArray *array = [NSArray arrayWithObjects:[CNLiveRrfreshFooter getImageName:@"logo"], nil]; | |
| 23 | + [self setImages:array forState:MJRefreshStateIdle]; | |
| 24 | + [self setImages:array forState:MJRefreshStateRefreshing]; | |
| 25 | + [self setImages:array forState:MJRefreshStatePulling]; | |
| 26 | + [self setImages:array forState:MJRefreshStateNoMoreData]; | |
| 27 | + self.stateLabel.hidden = NO; | |
| 28 | + // 初始化文字 | |
| 29 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterIdleText] forState:MJRefreshStateIdle]; | |
| 30 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterPullingText] forState:MJRefreshStatePulling]; | |
| 31 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterRefreshingText] forState:MJRefreshStateRefreshing]; | |
| 32 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterNoMoreDataText] forState:MJRefreshStateNoMoreData]; | |
| 33 | + self.backgroundColor = [UIColor whiteColor]; | |
| 34 | + self.stateLabel.textAlignment = NSTextAlignmentCenter; | |
| 35 | + self.stateLabel.font = [UIFont systemFontOfSize:12.0f]; | |
| 36 | + self.stateLabel.textColor = [UIColor colorWithRed:177/255.f green:177/255.f blue:177/255.f alpha:1]; | |
| 37 | + self.gifView.contentMode = UIViewContentModeCenter; | |
| 38 | + | |
| 39 | +} | |
| 40 | +-(void)placeSubviews { | |
| 41 | + [super placeSubviews]; | |
| 42 | + self.gifView.mj_origin = CGPointMake((self.bounds.size.width - self.imageSize.width) * 0.5, 7); | |
| 43 | + self.gifView.mj_size = CGSizeMake(self.imageSize.width, self.imageSize.height); | |
| 44 | + self.stateLabel.mj_y = CGRectGetMaxY(self.gifView.frame) + 6; | |
| 45 | + self.stateLabel.mj_h = 14; | |
| 46 | + | |
| 47 | +} | |
| 48 | +-(void)setImages:(NSArray *)images forState:(MJRefreshState)state { | |
| 49 | + [super setImages:images forState:state]; | |
| 50 | + [self setImages:images duration:images.count *0.1 forState:state]; | |
| 51 | + | |
| 52 | +} | |
| 53 | +-(void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state { | |
| 54 | + [super setImages:images duration:duration forState:state]; | |
| 55 | + UIImage *image = images.firstObject; | |
| 56 | + self.imageSize = image.size; | |
| 57 | + self.mj_h = image.size.height + 34; | |
| 58 | +} | |
| 59 | +-(void)endRefreshing { | |
| 60 | + | |
| 61 | + self.state =MJRefreshStateIdle; | |
| 62 | +} | |
| 63 | +-(void)setState:(MJRefreshState)state { | |
| 64 | + MJRefreshCheckState; | |
| 65 | + if (state == MJRefreshStateIdle) { | |
| 66 | + if (oldState == MJRefreshStateRefreshing) { | |
| 67 | + self.gifView.hidden = NO; | |
| 68 | + }else { | |
| 69 | + self.gifView.hidden = NO; | |
| 70 | + } | |
| 71 | + }else if (state == MJRefreshStatePulling) { | |
| 72 | + self.gifView.hidden = NO; | |
| 73 | + }else if (state == MJRefreshStateRefreshing) { | |
| 74 | + self.gifView.hidden = NO; | |
| 75 | + }else if (state == MJRefreshStateNoMoreData) { | |
| 76 | + self.gifView.hidden = NO; | |
| 77 | + } | |
| 78 | +} | |
| 79 | + | |
| 80 | ++(UIImage *)getImageName:(NSString *)imageName { | |
| 81 | + NSString *path = [[NSBundle mainBundle]pathForResource:@"CNLiveRefreshFooter" ofType:@"bundle"]; | |
| 82 | + NSBundle *imageBundle = [NSBundle bundleWithPath:path]; | |
| 83 | + NSString *close = [imageBundle pathForResource:imageName ofType:@"png"]; | |
| 84 | + UIImage *image = [UIImage imageWithContentsOfFile:close]; | |
| 85 | + return image; | |
| 86 | +} | |
| 87 | + | |
| 88 | +@end | ... | ... |
Example/CNLiveRefreshFooter.xcodeproj/project.pbxproj
0 → 100644
| 1 | +// !$*UTF8*$! | |
| 2 | +{ | |
| 3 | + archiveVersion = 1; | |
| 4 | + classes = { | |
| 5 | + }; | |
| 6 | + objectVersion = 46; | |
| 7 | + objects = { | |
| 8 | + | |
| 9 | +/* Begin PBXBuildFile section */ | |
| 10 | + 1FDD583CF0AF99BE354F82EC /* Pods_CNLiveRefreshFooter_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B0AEE8FA6944C555941B716 /* Pods_CNLiveRefreshFooter_Tests.framework */; }; | |
| 11 | + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; | |
| 12 | + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; | |
| 13 | + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; | |
| 14 | + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; | |
| 15 | + 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; | |
| 16 | + 6003F59E195388D20070C39A /* CNLiveAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* CNLiveAppDelegate.m */; }; | |
| 17 | + 6003F5A7195388D20070C39A /* CNLiveViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* CNLiveViewController.m */; }; | |
| 18 | + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; | |
| 19 | + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; | |
| 20 | + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; | |
| 21 | + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; | |
| 22 | + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; | |
| 23 | + 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; | |
| 24 | + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; | |
| 25 | + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; | |
| 26 | + 8BFC0E541622F1367A42EB91 /* Pods_CNLiveRefreshFooter_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2BF43CDA09A066691CBB629 /* Pods_CNLiveRefreshFooter_Example.framework */; }; | |
| 27 | +/* End PBXBuildFile section */ | |
| 28 | + | |
| 29 | +/* Begin PBXContainerItemProxy section */ | |
| 30 | + 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { | |
| 31 | + isa = PBXContainerItemProxy; | |
| 32 | + containerPortal = 6003F582195388D10070C39A /* Project object */; | |
| 33 | + proxyType = 1; | |
| 34 | + remoteGlobalIDString = 6003F589195388D20070C39A; | |
| 35 | + remoteInfo = CNLiveRefreshFooter; | |
| 36 | + }; | |
| 37 | +/* End PBXContainerItemProxy section */ | |
| 38 | + | |
| 39 | +/* Begin PBXFileReference section */ | |
| 40 | + 3011CF35DD941DDD57FA9F3B /* Pods-CNLiveRefreshFooter_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveRefreshFooter_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example.debug.xcconfig"; sourceTree = "<group>"; }; | |
| 41 | + 37679C2508F6CD60554D0CAD /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; }; | |
| 42 | + 6003F58A195388D20070C39A /* CNLiveRefreshFooter_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveRefreshFooter_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 43 | + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | |
| 44 | + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; | |
| 45 | + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; | |
| 46 | + 6003F595195388D20070C39A /* CNLiveRefreshFooter-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CNLiveRefreshFooter-Info.plist"; sourceTree = "<group>"; }; | |
| 47 | + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | |
| 48 | + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | |
| 49 | + 6003F59B195388D20070C39A /* CNLiveRefreshFooter-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CNLiveRefreshFooter-Prefix.pch"; sourceTree = "<group>"; }; | |
| 50 | + 6003F59C195388D20070C39A /* CNLiveAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveAppDelegate.h; sourceTree = "<group>"; }; | |
| 51 | + 6003F59D195388D20070C39A /* CNLiveAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveAppDelegate.m; sourceTree = "<group>"; }; | |
| 52 | + 6003F5A5195388D20070C39A /* CNLiveViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveViewController.h; sourceTree = "<group>"; }; | |
| 53 | + 6003F5A6195388D20070C39A /* CNLiveViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveViewController.m; sourceTree = "<group>"; }; | |
| 54 | + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; }; | |
| 55 | + 6003F5AE195388D20070C39A /* CNLiveRefreshFooter_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CNLiveRefreshFooter_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 56 | + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; | |
| 57 | + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; }; | |
| 58 | + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | |
| 59 | + 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; }; | |
| 60 | + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; }; | |
| 61 | + 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; | |
| 62 | + 84D14753C50F502DFB8CAF6B /* Pods-CNLiveRefreshFooter_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveRefreshFooter_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests.debug.xcconfig"; sourceTree = "<group>"; }; | |
| 63 | + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | |
| 64 | + 8B0AEE8FA6944C555941B716 /* Pods_CNLiveRefreshFooter_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveRefreshFooter_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 65 | + 98EE3C223F6C0B1E00E06425 /* Pods-CNLiveRefreshFooter_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveRefreshFooter_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests.release.xcconfig"; sourceTree = "<group>"; }; | |
| 66 | + B2BF43CDA09A066691CBB629 /* Pods_CNLiveRefreshFooter_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveRefreshFooter_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 67 | + D547D385E349F2605B095342 /* CNLiveRefreshFooter.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CNLiveRefreshFooter.podspec; path = ../CNLiveRefreshFooter.podspec; sourceTree = "<group>"; }; | |
| 68 | + DEF29A385C9318EAF51A9F4A /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; }; | |
| 69 | + F1CDB5FC739CC413C0257BF6 /* Pods-CNLiveRefreshFooter_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveRefreshFooter_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example.release.xcconfig"; sourceTree = "<group>"; }; | |
| 70 | +/* End PBXFileReference section */ | |
| 71 | + | |
| 72 | +/* Begin PBXFrameworksBuildPhase section */ | |
| 73 | + 6003F587195388D20070C39A /* Frameworks */ = { | |
| 74 | + isa = PBXFrameworksBuildPhase; | |
| 75 | + buildActionMask = 2147483647; | |
| 76 | + files = ( | |
| 77 | + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, | |
| 78 | + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, | |
| 79 | + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, | |
| 80 | + 8BFC0E541622F1367A42EB91 /* Pods_CNLiveRefreshFooter_Example.framework in Frameworks */, | |
| 81 | + ); | |
| 82 | + runOnlyForDeploymentPostprocessing = 0; | |
| 83 | + }; | |
| 84 | + 6003F5AB195388D20070C39A /* Frameworks */ = { | |
| 85 | + isa = PBXFrameworksBuildPhase; | |
| 86 | + buildActionMask = 2147483647; | |
| 87 | + files = ( | |
| 88 | + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, | |
| 89 | + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, | |
| 90 | + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, | |
| 91 | + 1FDD583CF0AF99BE354F82EC /* Pods_CNLiveRefreshFooter_Tests.framework in Frameworks */, | |
| 92 | + ); | |
| 93 | + runOnlyForDeploymentPostprocessing = 0; | |
| 94 | + }; | |
| 95 | +/* End PBXFrameworksBuildPhase section */ | |
| 96 | + | |
| 97 | +/* Begin PBXGroup section */ | |
| 98 | + 6003F581195388D10070C39A = { | |
| 99 | + isa = PBXGroup; | |
| 100 | + children = ( | |
| 101 | + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, | |
| 102 | + 6003F593195388D20070C39A /* Example for CNLiveRefreshFooter */, | |
| 103 | + 6003F5B5195388D20070C39A /* Tests */, | |
| 104 | + 6003F58C195388D20070C39A /* Frameworks */, | |
| 105 | + 6003F58B195388D20070C39A /* Products */, | |
| 106 | + 6F49D9538187D587EE417FB4 /* Pods */, | |
| 107 | + ); | |
| 108 | + sourceTree = "<group>"; | |
| 109 | + }; | |
| 110 | + 6003F58B195388D20070C39A /* Products */ = { | |
| 111 | + isa = PBXGroup; | |
| 112 | + children = ( | |
| 113 | + 6003F58A195388D20070C39A /* CNLiveRefreshFooter_Example.app */, | |
| 114 | + 6003F5AE195388D20070C39A /* CNLiveRefreshFooter_Tests.xctest */, | |
| 115 | + ); | |
| 116 | + name = Products; | |
| 117 | + sourceTree = "<group>"; | |
| 118 | + }; | |
| 119 | + 6003F58C195388D20070C39A /* Frameworks */ = { | |
| 120 | + isa = PBXGroup; | |
| 121 | + children = ( | |
| 122 | + 6003F58D195388D20070C39A /* Foundation.framework */, | |
| 123 | + 6003F58F195388D20070C39A /* CoreGraphics.framework */, | |
| 124 | + 6003F591195388D20070C39A /* UIKit.framework */, | |
| 125 | + 6003F5AF195388D20070C39A /* XCTest.framework */, | |
| 126 | + B2BF43CDA09A066691CBB629 /* Pods_CNLiveRefreshFooter_Example.framework */, | |
| 127 | + 8B0AEE8FA6944C555941B716 /* Pods_CNLiveRefreshFooter_Tests.framework */, | |
| 128 | + ); | |
| 129 | + name = Frameworks; | |
| 130 | + sourceTree = "<group>"; | |
| 131 | + }; | |
| 132 | + 6003F593195388D20070C39A /* Example for CNLiveRefreshFooter */ = { | |
| 133 | + isa = PBXGroup; | |
| 134 | + children = ( | |
| 135 | + 6003F59C195388D20070C39A /* CNLiveAppDelegate.h */, | |
| 136 | + 6003F59D195388D20070C39A /* CNLiveAppDelegate.m */, | |
| 137 | + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, | |
| 138 | + 6003F5A5195388D20070C39A /* CNLiveViewController.h */, | |
| 139 | + 6003F5A6195388D20070C39A /* CNLiveViewController.m */, | |
| 140 | + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */, | |
| 141 | + 6003F5A8195388D20070C39A /* Images.xcassets */, | |
| 142 | + 6003F594195388D20070C39A /* Supporting Files */, | |
| 143 | + ); | |
| 144 | + name = "Example for CNLiveRefreshFooter"; | |
| 145 | + path = CNLiveRefreshFooter; | |
| 146 | + sourceTree = "<group>"; | |
| 147 | + }; | |
| 148 | + 6003F594195388D20070C39A /* Supporting Files */ = { | |
| 149 | + isa = PBXGroup; | |
| 150 | + children = ( | |
| 151 | + 6003F595195388D20070C39A /* CNLiveRefreshFooter-Info.plist */, | |
| 152 | + 6003F596195388D20070C39A /* InfoPlist.strings */, | |
| 153 | + 6003F599195388D20070C39A /* main.m */, | |
| 154 | + 6003F59B195388D20070C39A /* CNLiveRefreshFooter-Prefix.pch */, | |
| 155 | + ); | |
| 156 | + name = "Supporting Files"; | |
| 157 | + sourceTree = "<group>"; | |
| 158 | + }; | |
| 159 | + 6003F5B5195388D20070C39A /* Tests */ = { | |
| 160 | + isa = PBXGroup; | |
| 161 | + children = ( | |
| 162 | + 6003F5BB195388D20070C39A /* Tests.m */, | |
| 163 | + 6003F5B6195388D20070C39A /* Supporting Files */, | |
| 164 | + ); | |
| 165 | + path = Tests; | |
| 166 | + sourceTree = "<group>"; | |
| 167 | + }; | |
| 168 | + 6003F5B6195388D20070C39A /* Supporting Files */ = { | |
| 169 | + isa = PBXGroup; | |
| 170 | + children = ( | |
| 171 | + 6003F5B7195388D20070C39A /* Tests-Info.plist */, | |
| 172 | + 6003F5B8195388D20070C39A /* InfoPlist.strings */, | |
| 173 | + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, | |
| 174 | + ); | |
| 175 | + name = "Supporting Files"; | |
| 176 | + sourceTree = "<group>"; | |
| 177 | + }; | |
| 178 | + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { | |
| 179 | + isa = PBXGroup; | |
| 180 | + children = ( | |
| 181 | + D547D385E349F2605B095342 /* CNLiveRefreshFooter.podspec */, | |
| 182 | + DEF29A385C9318EAF51A9F4A /* README.md */, | |
| 183 | + 37679C2508F6CD60554D0CAD /* LICENSE */, | |
| 184 | + ); | |
| 185 | + name = "Podspec Metadata"; | |
| 186 | + sourceTree = "<group>"; | |
| 187 | + }; | |
| 188 | + 6F49D9538187D587EE417FB4 /* Pods */ = { | |
| 189 | + isa = PBXGroup; | |
| 190 | + children = ( | |
| 191 | + 3011CF35DD941DDD57FA9F3B /* Pods-CNLiveRefreshFooter_Example.debug.xcconfig */, | |
| 192 | + F1CDB5FC739CC413C0257BF6 /* Pods-CNLiveRefreshFooter_Example.release.xcconfig */, | |
| 193 | + 84D14753C50F502DFB8CAF6B /* Pods-CNLiveRefreshFooter_Tests.debug.xcconfig */, | |
| 194 | + 98EE3C223F6C0B1E00E06425 /* Pods-CNLiveRefreshFooter_Tests.release.xcconfig */, | |
| 195 | + ); | |
| 196 | + name = Pods; | |
| 197 | + sourceTree = "<group>"; | |
| 198 | + }; | |
| 199 | +/* End PBXGroup section */ | |
| 200 | + | |
| 201 | +/* Begin PBXNativeTarget section */ | |
| 202 | + 6003F589195388D20070C39A /* CNLiveRefreshFooter_Example */ = { | |
| 203 | + isa = PBXNativeTarget; | |
| 204 | + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveRefreshFooter_Example" */; | |
| 205 | + buildPhases = ( | |
| 206 | + A474E20F3D2021EB603551B4 /* [CP] Check Pods Manifest.lock */, | |
| 207 | + 6003F586195388D20070C39A /* Sources */, | |
| 208 | + 6003F587195388D20070C39A /* Frameworks */, | |
| 209 | + 6003F588195388D20070C39A /* Resources */, | |
| 210 | + 8D659BE22F1ED0AC442D5DF5 /* [CP] Embed Pods Frameworks */, | |
| 211 | + ); | |
| 212 | + buildRules = ( | |
| 213 | + ); | |
| 214 | + dependencies = ( | |
| 215 | + ); | |
| 216 | + name = CNLiveRefreshFooter_Example; | |
| 217 | + productName = CNLiveRefreshFooter; | |
| 218 | + productReference = 6003F58A195388D20070C39A /* CNLiveRefreshFooter_Example.app */; | |
| 219 | + productType = "com.apple.product-type.application"; | |
| 220 | + }; | |
| 221 | + 6003F5AD195388D20070C39A /* CNLiveRefreshFooter_Tests */ = { | |
| 222 | + isa = PBXNativeTarget; | |
| 223 | + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveRefreshFooter_Tests" */; | |
| 224 | + buildPhases = ( | |
| 225 | + 88CDCE2E90B257441B0398B8 /* [CP] Check Pods Manifest.lock */, | |
| 226 | + 6003F5AA195388D20070C39A /* Sources */, | |
| 227 | + 6003F5AB195388D20070C39A /* Frameworks */, | |
| 228 | + 6003F5AC195388D20070C39A /* Resources */, | |
| 229 | + 25FAB483D82FD2506833F000 /* [CP] Embed Pods Frameworks */, | |
| 230 | + ); | |
| 231 | + buildRules = ( | |
| 232 | + ); | |
| 233 | + dependencies = ( | |
| 234 | + 6003F5B4195388D20070C39A /* PBXTargetDependency */, | |
| 235 | + ); | |
| 236 | + name = CNLiveRefreshFooter_Tests; | |
| 237 | + productName = CNLiveRefreshFooterTests; | |
| 238 | + productReference = 6003F5AE195388D20070C39A /* CNLiveRefreshFooter_Tests.xctest */; | |
| 239 | + productType = "com.apple.product-type.bundle.unit-test"; | |
| 240 | + }; | |
| 241 | +/* End PBXNativeTarget section */ | |
| 242 | + | |
| 243 | +/* Begin PBXProject section */ | |
| 244 | + 6003F582195388D10070C39A /* Project object */ = { | |
| 245 | + isa = PBXProject; | |
| 246 | + attributes = { | |
| 247 | + CLASSPREFIX = CNLive; | |
| 248 | + LastUpgradeCheck = 0720; | |
| 249 | + ORGANIZATIONNAME = "殷巧娟"; | |
| 250 | + TargetAttributes = { | |
| 251 | + 6003F589195388D20070C39A = { | |
| 252 | + DevelopmentTeam = 94X49GG3ZW; | |
| 253 | + }; | |
| 254 | + 6003F5AD195388D20070C39A = { | |
| 255 | + TestTargetID = 6003F589195388D20070C39A; | |
| 256 | + }; | |
| 257 | + }; | |
| 258 | + }; | |
| 259 | + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveRefreshFooter" */; | |
| 260 | + compatibilityVersion = "Xcode 3.2"; | |
| 261 | + developmentRegion = English; | |
| 262 | + hasScannedForEncodings = 0; | |
| 263 | + knownRegions = ( | |
| 264 | + en, | |
| 265 | + Base, | |
| 266 | + ); | |
| 267 | + mainGroup = 6003F581195388D10070C39A; | |
| 268 | + productRefGroup = 6003F58B195388D20070C39A /* Products */; | |
| 269 | + projectDirPath = ""; | |
| 270 | + projectRoot = ""; | |
| 271 | + targets = ( | |
| 272 | + 6003F589195388D20070C39A /* CNLiveRefreshFooter_Example */, | |
| 273 | + 6003F5AD195388D20070C39A /* CNLiveRefreshFooter_Tests */, | |
| 274 | + ); | |
| 275 | + }; | |
| 276 | +/* End PBXProject section */ | |
| 277 | + | |
| 278 | +/* Begin PBXResourcesBuildPhase section */ | |
| 279 | + 6003F588195388D20070C39A /* Resources */ = { | |
| 280 | + isa = PBXResourcesBuildPhase; | |
| 281 | + buildActionMask = 2147483647; | |
| 282 | + files = ( | |
| 283 | + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, | |
| 284 | + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */, | |
| 285 | + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, | |
| 286 | + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, | |
| 287 | + ); | |
| 288 | + runOnlyForDeploymentPostprocessing = 0; | |
| 289 | + }; | |
| 290 | + 6003F5AC195388D20070C39A /* Resources */ = { | |
| 291 | + isa = PBXResourcesBuildPhase; | |
| 292 | + buildActionMask = 2147483647; | |
| 293 | + files = ( | |
| 294 | + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, | |
| 295 | + ); | |
| 296 | + runOnlyForDeploymentPostprocessing = 0; | |
| 297 | + }; | |
| 298 | +/* End PBXResourcesBuildPhase section */ | |
| 299 | + | |
| 300 | +/* Begin PBXShellScriptBuildPhase section */ | |
| 301 | + 25FAB483D82FD2506833F000 /* [CP] Embed Pods Frameworks */ = { | |
| 302 | + isa = PBXShellScriptBuildPhase; | |
| 303 | + buildActionMask = 2147483647; | |
| 304 | + files = ( | |
| 305 | + ); | |
| 306 | + inputFileListPaths = ( | |
| 307 | + ); | |
| 308 | + inputPaths = ( | |
| 309 | + "${SRCROOT}/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests-frameworks.sh", | |
| 310 | + "${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework", | |
| 311 | + ); | |
| 312 | + name = "[CP] Embed Pods Frameworks"; | |
| 313 | + outputFileListPaths = ( | |
| 314 | + ); | |
| 315 | + outputPaths = ( | |
| 316 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJRefresh.framework", | |
| 317 | + ); | |
| 318 | + runOnlyForDeploymentPostprocessing = 0; | |
| 319 | + shellPath = /bin/sh; | |
| 320 | + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests-frameworks.sh\"\n"; | |
| 321 | + showEnvVarsInLog = 0; | |
| 322 | + }; | |
| 323 | + 88CDCE2E90B257441B0398B8 /* [CP] Check Pods Manifest.lock */ = { | |
| 324 | + isa = PBXShellScriptBuildPhase; | |
| 325 | + buildActionMask = 2147483647; | |
| 326 | + files = ( | |
| 327 | + ); | |
| 328 | + inputFileListPaths = ( | |
| 329 | + ); | |
| 330 | + inputPaths = ( | |
| 331 | + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", | |
| 332 | + "${PODS_ROOT}/Manifest.lock", | |
| 333 | + ); | |
| 334 | + name = "[CP] Check Pods Manifest.lock"; | |
| 335 | + outputFileListPaths = ( | |
| 336 | + ); | |
| 337 | + outputPaths = ( | |
| 338 | + "$(DERIVED_FILE_DIR)/Pods-CNLiveRefreshFooter_Tests-checkManifestLockResult.txt", | |
| 339 | + ); | |
| 340 | + runOnlyForDeploymentPostprocessing = 0; | |
| 341 | + shellPath = /bin/sh; | |
| 342 | + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; | |
| 343 | + showEnvVarsInLog = 0; | |
| 344 | + }; | |
| 345 | + 8D659BE22F1ED0AC442D5DF5 /* [CP] Embed Pods Frameworks */ = { | |
| 346 | + isa = PBXShellScriptBuildPhase; | |
| 347 | + buildActionMask = 2147483647; | |
| 348 | + files = ( | |
| 349 | + ); | |
| 350 | + inputFileListPaths = ( | |
| 351 | + ); | |
| 352 | + inputPaths = ( | |
| 353 | + "${SRCROOT}/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example-frameworks.sh", | |
| 354 | + "${BUILT_PRODUCTS_DIR}/CNLiveRefreshFooter/CNLiveRefreshFooter.framework", | |
| 355 | + "${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework", | |
| 356 | + ); | |
| 357 | + name = "[CP] Embed Pods Frameworks"; | |
| 358 | + outputFileListPaths = ( | |
| 359 | + ); | |
| 360 | + outputPaths = ( | |
| 361 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveRefreshFooter.framework", | |
| 362 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJRefresh.framework", | |
| 363 | + ); | |
| 364 | + runOnlyForDeploymentPostprocessing = 0; | |
| 365 | + shellPath = /bin/sh; | |
| 366 | + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example-frameworks.sh\"\n"; | |
| 367 | + showEnvVarsInLog = 0; | |
| 368 | + }; | |
| 369 | + A474E20F3D2021EB603551B4 /* [CP] Check Pods Manifest.lock */ = { | |
| 370 | + isa = PBXShellScriptBuildPhase; | |
| 371 | + buildActionMask = 2147483647; | |
| 372 | + files = ( | |
| 373 | + ); | |
| 374 | + inputFileListPaths = ( | |
| 375 | + ); | |
| 376 | + inputPaths = ( | |
| 377 | + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", | |
| 378 | + "${PODS_ROOT}/Manifest.lock", | |
| 379 | + ); | |
| 380 | + name = "[CP] Check Pods Manifest.lock"; | |
| 381 | + outputFileListPaths = ( | |
| 382 | + ); | |
| 383 | + outputPaths = ( | |
| 384 | + "$(DERIVED_FILE_DIR)/Pods-CNLiveRefreshFooter_Example-checkManifestLockResult.txt", | |
| 385 | + ); | |
| 386 | + runOnlyForDeploymentPostprocessing = 0; | |
| 387 | + shellPath = /bin/sh; | |
| 388 | + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; | |
| 389 | + showEnvVarsInLog = 0; | |
| 390 | + }; | |
| 391 | +/* End PBXShellScriptBuildPhase section */ | |
| 392 | + | |
| 393 | +/* Begin PBXSourcesBuildPhase section */ | |
| 394 | + 6003F586195388D20070C39A /* Sources */ = { | |
| 395 | + isa = PBXSourcesBuildPhase; | |
| 396 | + buildActionMask = 2147483647; | |
| 397 | + files = ( | |
| 398 | + 6003F59E195388D20070C39A /* CNLiveAppDelegate.m in Sources */, | |
| 399 | + 6003F5A7195388D20070C39A /* CNLiveViewController.m in Sources */, | |
| 400 | + 6003F59A195388D20070C39A /* main.m in Sources */, | |
| 401 | + ); | |
| 402 | + runOnlyForDeploymentPostprocessing = 0; | |
| 403 | + }; | |
| 404 | + 6003F5AA195388D20070C39A /* Sources */ = { | |
| 405 | + isa = PBXSourcesBuildPhase; | |
| 406 | + buildActionMask = 2147483647; | |
| 407 | + files = ( | |
| 408 | + 6003F5BC195388D20070C39A /* Tests.m in Sources */, | |
| 409 | + ); | |
| 410 | + runOnlyForDeploymentPostprocessing = 0; | |
| 411 | + }; | |
| 412 | +/* End PBXSourcesBuildPhase section */ | |
| 413 | + | |
| 414 | +/* Begin PBXTargetDependency section */ | |
| 415 | + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { | |
| 416 | + isa = PBXTargetDependency; | |
| 417 | + target = 6003F589195388D20070C39A /* CNLiveRefreshFooter_Example */; | |
| 418 | + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; | |
| 419 | + }; | |
| 420 | +/* End PBXTargetDependency section */ | |
| 421 | + | |
| 422 | +/* Begin PBXVariantGroup section */ | |
| 423 | + 6003F596195388D20070C39A /* InfoPlist.strings */ = { | |
| 424 | + isa = PBXVariantGroup; | |
| 425 | + children = ( | |
| 426 | + 6003F597195388D20070C39A /* en */, | |
| 427 | + ); | |
| 428 | + name = InfoPlist.strings; | |
| 429 | + sourceTree = "<group>"; | |
| 430 | + }; | |
| 431 | + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { | |
| 432 | + isa = PBXVariantGroup; | |
| 433 | + children = ( | |
| 434 | + 6003F5B9195388D20070C39A /* en */, | |
| 435 | + ); | |
| 436 | + name = InfoPlist.strings; | |
| 437 | + sourceTree = "<group>"; | |
| 438 | + }; | |
| 439 | + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = { | |
| 440 | + isa = PBXVariantGroup; | |
| 441 | + children = ( | |
| 442 | + 71719F9E1E33DC2100824A3D /* Base */, | |
| 443 | + ); | |
| 444 | + name = LaunchScreen.storyboard; | |
| 445 | + sourceTree = "<group>"; | |
| 446 | + }; | |
| 447 | +/* End PBXVariantGroup section */ | |
| 448 | + | |
| 449 | +/* Begin XCBuildConfiguration section */ | |
| 450 | + 6003F5BD195388D20070C39A /* Debug */ = { | |
| 451 | + isa = XCBuildConfiguration; | |
| 452 | + buildSettings = { | |
| 453 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 454 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | |
| 455 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 456 | + CLANG_ENABLE_MODULES = YES; | |
| 457 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 458 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 459 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 460 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 461 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 462 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 463 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 464 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 465 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 466 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | |
| 467 | + COPY_PHASE_STRIP = NO; | |
| 468 | + ENABLE_TESTABILITY = YES; | |
| 469 | + GCC_C_LANGUAGE_STANDARD = gnu99; | |
| 470 | + GCC_DYNAMIC_NO_PIC = NO; | |
| 471 | + GCC_OPTIMIZATION_LEVEL = 0; | |
| 472 | + GCC_PREPROCESSOR_DEFINITIONS = ( | |
| 473 | + "DEBUG=1", | |
| 474 | + "$(inherited)", | |
| 475 | + ); | |
| 476 | + GCC_SYMBOLS_PRIVATE_EXTERN = NO; | |
| 477 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 478 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 479 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 480 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 481 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 482 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 483 | + IPHONEOS_DEPLOYMENT_TARGET = 9.3; | |
| 484 | + ONLY_ACTIVE_ARCH = YES; | |
| 485 | + SDKROOT = iphoneos; | |
| 486 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 487 | + }; | |
| 488 | + name = Debug; | |
| 489 | + }; | |
| 490 | + 6003F5BE195388D20070C39A /* Release */ = { | |
| 491 | + isa = XCBuildConfiguration; | |
| 492 | + buildSettings = { | |
| 493 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 494 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | |
| 495 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 496 | + CLANG_ENABLE_MODULES = YES; | |
| 497 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 498 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 499 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 500 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 501 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 502 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 503 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 504 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 505 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 506 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | |
| 507 | + COPY_PHASE_STRIP = YES; | |
| 508 | + ENABLE_NS_ASSERTIONS = NO; | |
| 509 | + GCC_C_LANGUAGE_STANDARD = gnu99; | |
| 510 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 511 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 512 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 513 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 514 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 515 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 516 | + IPHONEOS_DEPLOYMENT_TARGET = 9.3; | |
| 517 | + SDKROOT = iphoneos; | |
| 518 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 519 | + VALIDATE_PRODUCT = YES; | |
| 520 | + }; | |
| 521 | + name = Release; | |
| 522 | + }; | |
| 523 | + 6003F5C0195388D20070C39A /* Debug */ = { | |
| 524 | + isa = XCBuildConfiguration; | |
| 525 | + baseConfigurationReference = 3011CF35DD941DDD57FA9F3B /* Pods-CNLiveRefreshFooter_Example.debug.xcconfig */; | |
| 526 | + buildSettings = { | |
| 527 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |
| 528 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 529 | + GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
| 530 | + GCC_PREFIX_HEADER = "CNLiveRefreshFooter/CNLiveRefreshFooter-Prefix.pch"; | |
| 531 | + INFOPLIST_FILE = "CNLiveRefreshFooter/CNLiveRefreshFooter-Info.plist"; | |
| 532 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 533 | + MODULE_NAME = ExampleApp; | |
| 534 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; | |
| 535 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 536 | + WRAPPER_EXTENSION = app; | |
| 537 | + }; | |
| 538 | + name = Debug; | |
| 539 | + }; | |
| 540 | + 6003F5C1195388D20070C39A /* Release */ = { | |
| 541 | + isa = XCBuildConfiguration; | |
| 542 | + baseConfigurationReference = F1CDB5FC739CC413C0257BF6 /* Pods-CNLiveRefreshFooter_Example.release.xcconfig */; | |
| 543 | + buildSettings = { | |
| 544 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |
| 545 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 546 | + GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
| 547 | + GCC_PREFIX_HEADER = "CNLiveRefreshFooter/CNLiveRefreshFooter-Prefix.pch"; | |
| 548 | + INFOPLIST_FILE = "CNLiveRefreshFooter/CNLiveRefreshFooter-Info.plist"; | |
| 549 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 550 | + MODULE_NAME = ExampleApp; | |
| 551 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; | |
| 552 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 553 | + WRAPPER_EXTENSION = app; | |
| 554 | + }; | |
| 555 | + name = Release; | |
| 556 | + }; | |
| 557 | + 6003F5C3195388D20070C39A /* Debug */ = { | |
| 558 | + isa = XCBuildConfiguration; | |
| 559 | + baseConfigurationReference = 84D14753C50F502DFB8CAF6B /* Pods-CNLiveRefreshFooter_Tests.debug.xcconfig */; | |
| 560 | + buildSettings = { | |
| 561 | + BUNDLE_LOADER = "$(TEST_HOST)"; | |
| 562 | + FRAMEWORK_SEARCH_PATHS = ( | |
| 563 | + "$(SDKROOT)/Developer/Library/Frameworks", | |
| 564 | + "$(inherited)", | |
| 565 | + "$(DEVELOPER_FRAMEWORKS_DIR)", | |
| 566 | + ); | |
| 567 | + GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
| 568 | + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; | |
| 569 | + GCC_PREPROCESSOR_DEFINITIONS = ( | |
| 570 | + "DEBUG=1", | |
| 571 | + "$(inherited)", | |
| 572 | + ); | |
| 573 | + INFOPLIST_FILE = "Tests/Tests-Info.plist"; | |
| 574 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; | |
| 575 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 576 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveRefreshFooter_Example.app/CNLiveRefreshFooter_Example"; | |
| 577 | + WRAPPER_EXTENSION = xctest; | |
| 578 | + }; | |
| 579 | + name = Debug; | |
| 580 | + }; | |
| 581 | + 6003F5C4195388D20070C39A /* Release */ = { | |
| 582 | + isa = XCBuildConfiguration; | |
| 583 | + baseConfigurationReference = 98EE3C223F6C0B1E00E06425 /* Pods-CNLiveRefreshFooter_Tests.release.xcconfig */; | |
| 584 | + buildSettings = { | |
| 585 | + BUNDLE_LOADER = "$(TEST_HOST)"; | |
| 586 | + FRAMEWORK_SEARCH_PATHS = ( | |
| 587 | + "$(SDKROOT)/Developer/Library/Frameworks", | |
| 588 | + "$(inherited)", | |
| 589 | + "$(DEVELOPER_FRAMEWORKS_DIR)", | |
| 590 | + ); | |
| 591 | + GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
| 592 | + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; | |
| 593 | + INFOPLIST_FILE = "Tests/Tests-Info.plist"; | |
| 594 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; | |
| 595 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 596 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveRefreshFooter_Example.app/CNLiveRefreshFooter_Example"; | |
| 597 | + WRAPPER_EXTENSION = xctest; | |
| 598 | + }; | |
| 599 | + name = Release; | |
| 600 | + }; | |
| 601 | +/* End XCBuildConfiguration section */ | |
| 602 | + | |
| 603 | +/* Begin XCConfigurationList section */ | |
| 604 | + 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveRefreshFooter" */ = { | |
| 605 | + isa = XCConfigurationList; | |
| 606 | + buildConfigurations = ( | |
| 607 | + 6003F5BD195388D20070C39A /* Debug */, | |
| 608 | + 6003F5BE195388D20070C39A /* Release */, | |
| 609 | + ); | |
| 610 | + defaultConfigurationIsVisible = 0; | |
| 611 | + defaultConfigurationName = Release; | |
| 612 | + }; | |
| 613 | + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveRefreshFooter_Example" */ = { | |
| 614 | + isa = XCConfigurationList; | |
| 615 | + buildConfigurations = ( | |
| 616 | + 6003F5C0195388D20070C39A /* Debug */, | |
| 617 | + 6003F5C1195388D20070C39A /* Release */, | |
| 618 | + ); | |
| 619 | + defaultConfigurationIsVisible = 0; | |
| 620 | + defaultConfigurationName = Release; | |
| 621 | + }; | |
| 622 | + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveRefreshFooter_Tests" */ = { | |
| 623 | + isa = XCConfigurationList; | |
| 624 | + buildConfigurations = ( | |
| 625 | + 6003F5C3195388D20070C39A /* Debug */, | |
| 626 | + 6003F5C4195388D20070C39A /* Release */, | |
| 627 | + ); | |
| 628 | + defaultConfigurationIsVisible = 0; | |
| 629 | + defaultConfigurationName = Release; | |
| 630 | + }; | |
| 631 | +/* End XCConfigurationList section */ | |
| 632 | + }; | |
| 633 | + rootObject = 6003F582195388D10070C39A /* Project object */; | |
| 634 | +} | ... | ... |
Example/CNLiveRefreshFooter.xcodeproj/project.xcworkspace/contents.xcworkspacedata
0 → 100644
Example/CNLiveRefreshFooter.xcodeproj/xcshareddata/xcschemes/CNLiveRefreshFooter-Example.xcscheme
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<Scheme | |
| 3 | + LastUpgradeVersion = "0720" | |
| 4 | + version = "1.3"> | |
| 5 | + <BuildAction | |
| 6 | + parallelizeBuildables = "YES" | |
| 7 | + buildImplicitDependencies = "YES"> | |
| 8 | + <BuildActionEntries> | |
| 9 | + <BuildActionEntry | |
| 10 | + buildForTesting = "YES" | |
| 11 | + buildForRunning = "YES" | |
| 12 | + buildForProfiling = "YES" | |
| 13 | + buildForArchiving = "YES" | |
| 14 | + buildForAnalyzing = "YES"> | |
| 15 | + <BuildableReference | |
| 16 | + BuildableIdentifier = "primary" | |
| 17 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 18 | + BuildableName = "CNLiveRefreshFooter_Example.app" | |
| 19 | + BlueprintName = "CNLiveRefreshFooter_Example" | |
| 20 | + ReferencedContainer = "container:CNLiveRefreshFooter.xcodeproj"> | |
| 21 | + </BuildableReference> | |
| 22 | + </BuildActionEntry> | |
| 23 | + </BuildActionEntries> | |
| 24 | + </BuildAction> | |
| 25 | + <TestAction | |
| 26 | + buildConfiguration = "Debug" | |
| 27 | + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
| 28 | + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
| 29 | + shouldUseLaunchSchemeArgsEnv = "YES"> | |
| 30 | + <Testables> | |
| 31 | + <TestableReference | |
| 32 | + skipped = "NO"> | |
| 33 | + <BuildableReference | |
| 34 | + BuildableIdentifier = "primary" | |
| 35 | + BlueprintIdentifier = "6003F5AD195388D20070C39A" | |
| 36 | + BuildableName = "CNLiveRefreshFooter_Tests.xctest" | |
| 37 | + BlueprintName = "CNLiveRefreshFooter_Tests" | |
| 38 | + ReferencedContainer = "container:CNLiveRefreshFooter.xcodeproj"> | |
| 39 | + </BuildableReference> | |
| 40 | + </TestableReference> | |
| 41 | + </Testables> | |
| 42 | + <MacroExpansion> | |
| 43 | + <BuildableReference | |
| 44 | + BuildableIdentifier = "primary" | |
| 45 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 46 | + BuildableName = "CNLiveRefreshFooter_Example.app" | |
| 47 | + BlueprintName = "CNLiveRefreshFooter_Example" | |
| 48 | + ReferencedContainer = "container:CNLiveRefreshFooter.xcodeproj"> | |
| 49 | + </BuildableReference> | |
| 50 | + </MacroExpansion> | |
| 51 | + <AdditionalOptions> | |
| 52 | + </AdditionalOptions> | |
| 53 | + </TestAction> | |
| 54 | + <LaunchAction | |
| 55 | + buildConfiguration = "Debug" | |
| 56 | + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
| 57 | + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
| 58 | + launchStyle = "0" | |
| 59 | + useCustomWorkingDirectory = "NO" | |
| 60 | + ignoresPersistentStateOnLaunch = "NO" | |
| 61 | + debugDocumentVersioning = "YES" | |
| 62 | + debugServiceExtension = "internal" | |
| 63 | + allowLocationSimulation = "YES"> | |
| 64 | + <BuildableProductRunnable | |
| 65 | + runnableDebuggingMode = "0"> | |
| 66 | + <BuildableReference | |
| 67 | + BuildableIdentifier = "primary" | |
| 68 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 69 | + BuildableName = "CNLiveRefreshFooter_Example.app" | |
| 70 | + BlueprintName = "CNLiveRefreshFooter_Example" | |
| 71 | + ReferencedContainer = "container:CNLiveRefreshFooter.xcodeproj"> | |
| 72 | + </BuildableReference> | |
| 73 | + </BuildableProductRunnable> | |
| 74 | + <AdditionalOptions> | |
| 75 | + </AdditionalOptions> | |
| 76 | + </LaunchAction> | |
| 77 | + <ProfileAction | |
| 78 | + buildConfiguration = "Release" | |
| 79 | + shouldUseLaunchSchemeArgsEnv = "YES" | |
| 80 | + savedToolIdentifier = "" | |
| 81 | + useCustomWorkingDirectory = "NO" | |
| 82 | + debugDocumentVersioning = "YES"> | |
| 83 | + <BuildableProductRunnable | |
| 84 | + runnableDebuggingMode = "0"> | |
| 85 | + <BuildableReference | |
| 86 | + BuildableIdentifier = "primary" | |
| 87 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 88 | + BuildableName = "CNLiveRefreshFooter_Example.app" | |
| 89 | + BlueprintName = "CNLiveRefreshFooter_Example" | |
| 90 | + ReferencedContainer = "container:CNLiveRefreshFooter.xcodeproj"> | |
| 91 | + </BuildableReference> | |
| 92 | + </BuildableProductRunnable> | |
| 93 | + </ProfileAction> | |
| 94 | + <AnalyzeAction | |
| 95 | + buildConfiguration = "Debug"> | |
| 96 | + </AnalyzeAction> | |
| 97 | + <ArchiveAction | |
| 98 | + buildConfiguration = "Release" | |
| 99 | + revealArchiveInOrganizer = "YES"> | |
| 100 | + </ArchiveAction> | |
| 101 | +</Scheme> | ... | ... |
Example/CNLiveRefreshFooter.xcworkspace/contents.xcworkspacedata
0 → 100644
Example/CNLiveRefreshFooter.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
0 → 100644
Example/CNLiveRefreshFooter/Base.lproj/LaunchScreen.storyboard
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | |
| 3 | + <device id="retina4_7" orientation="portrait"> | |
| 4 | + <adaptation id="fullscreen"/> | |
| 5 | + </device> | |
| 6 | + <dependencies> | |
| 7 | + <deployment identifier="iOS"/> | |
| 8 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> | |
| 9 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
| 10 | + </dependencies> | |
| 11 | + <scenes> | |
| 12 | + <!--View Controller--> | |
| 13 | + <scene sceneID="EHf-IW-A2E"> | |
| 14 | + <objects> | |
| 15 | + <viewController id="01J-lp-oVM" sceneMemberID="viewController"> | |
| 16 | + <layoutGuides> | |
| 17 | + <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/> | |
| 18 | + <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> | |
| 19 | + </layoutGuides> | |
| 20 | + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | |
| 21 | + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | |
| 22 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
| 23 | + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | |
| 24 | + </view> | |
| 25 | + </viewController> | |
| 26 | + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 27 | + </objects> | |
| 28 | + <point key="canvasLocation" x="53" y="375"/> | |
| 29 | + </scene> | |
| 30 | + </scenes> | |
| 31 | +</document> | ... | ... |
Example/CNLiveRefreshFooter/Base.lproj/Main.storyboard
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="whP-gf-Uak"> | |
| 3 | + <device id="retina4_7" orientation="portrait"> | |
| 4 | + <adaptation id="fullscreen"/> | |
| 5 | + </device> | |
| 6 | + <dependencies> | |
| 7 | + <deployment identifier="iOS"/> | |
| 8 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> | |
| 9 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
| 10 | + </dependencies> | |
| 11 | + <scenes> | |
| 12 | + <!--View Controller--> | |
| 13 | + <scene sceneID="wQg-tq-qST"> | |
| 14 | + <objects> | |
| 15 | + <viewController id="whP-gf-Uak" customClass="CNLiveViewController" sceneMemberID="viewController"> | |
| 16 | + <layoutGuides> | |
| 17 | + <viewControllerLayoutGuide type="top" id="uEw-UM-LJ8"/> | |
| 18 | + <viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/> | |
| 19 | + </layoutGuides> | |
| 20 | + <view key="view" contentMode="scaleToFill" id="TpU-gO-2f1"> | |
| 21 | + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | |
| 22 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
| 23 | + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | |
| 24 | + </view> | |
| 25 | + </viewController> | |
| 26 | + <placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 27 | + </objects> | |
| 28 | + <point key="canvasLocation" x="305" y="433"/> | |
| 29 | + </scene> | |
| 30 | + </scenes> | |
| 31 | +</document> | ... | ... |
Example/CNLiveRefreshFooter/CNLiveAppDelegate.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveAppDelegate.h | |
| 3 | +// CNLiveRefreshFooter | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 12/21/2018. | |
| 6 | +// Copyright (c) 2018 殷巧娟. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +@import UIKit; | |
| 10 | + | |
| 11 | +@interface CNLiveAppDelegate : UIResponder <UIApplicationDelegate> | |
| 12 | + | |
| 13 | +@property (strong, nonatomic) UIWindow *window; | |
| 14 | + | |
| 15 | +@end | ... | ... |
Example/CNLiveRefreshFooter/CNLiveAppDelegate.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveAppDelegate.m | |
| 3 | +// CNLiveRefreshFooter | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 12/21/2018. | |
| 6 | +// Copyright (c) 2018 殷巧娟. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "CNLiveAppDelegate.h" | |
| 10 | + | |
| 11 | +@implementation CNLiveAppDelegate | |
| 12 | + | |
| 13 | +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| 14 | +{ | |
| 15 | + // Override point for customization after application launch. | |
| 16 | + return YES; | |
| 17 | +} | |
| 18 | + | |
| 19 | +- (void)applicationWillResignActive:(UIApplication *)application | |
| 20 | +{ | |
| 21 | + // 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. | |
| 22 | + // 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. | |
| 23 | +} | |
| 24 | + | |
| 25 | +- (void)applicationDidEnterBackground:(UIApplication *)application | |
| 26 | +{ | |
| 27 | + // 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. | |
| 28 | + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | |
| 29 | +} | |
| 30 | + | |
| 31 | +- (void)applicationWillEnterForeground:(UIApplication *)application | |
| 32 | +{ | |
| 33 | + // 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. | |
| 34 | +} | |
| 35 | + | |
| 36 | +- (void)applicationDidBecomeActive:(UIApplication *)application | |
| 37 | +{ | |
| 38 | + // 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. | |
| 39 | +} | |
| 40 | + | |
| 41 | +- (void)applicationWillTerminate:(UIApplication *)application | |
| 42 | +{ | |
| 43 | + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | |
| 44 | +} | |
| 45 | + | |
| 46 | +@end | ... | ... |
Example/CNLiveRefreshFooter/CNLiveRefreshFooter-Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleDisplayName</key> | |
| 8 | + <string>${PRODUCT_NAME}</string> | |
| 9 | + <key>CFBundleExecutable</key> | |
| 10 | + <string>${EXECUTABLE_NAME}</string> | |
| 11 | + <key>CFBundleIdentifier</key> | |
| 12 | + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | |
| 13 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 14 | + <string>6.0</string> | |
| 15 | + <key>CFBundleName</key> | |
| 16 | + <string>${PRODUCT_NAME}</string> | |
| 17 | + <key>CFBundlePackageType</key> | |
| 18 | + <string>APPL</string> | |
| 19 | + <key>CFBundleShortVersionString</key> | |
| 20 | + <string>1.0</string> | |
| 21 | + <key>CFBundleSignature</key> | |
| 22 | + <string>????</string> | |
| 23 | + <key>CFBundleVersion</key> | |
| 24 | + <string>1.0</string> | |
| 25 | + <key>LSRequiresIPhoneOS</key> | |
| 26 | + <true/> | |
| 27 | + <key>UILaunchStoryboardName</key> | |
| 28 | + <string>LaunchScreen</string> | |
| 29 | + <key>UIMainStoryboardFile</key> | |
| 30 | + <string>Main</string> | |
| 31 | + <key>UIRequiredDeviceCapabilities</key> | |
| 32 | + <array> | |
| 33 | + <string>armv7</string> | |
| 34 | + </array> | |
| 35 | + <key>UISupportedInterfaceOrientations</key> | |
| 36 | + <array> | |
| 37 | + <string>UIInterfaceOrientationPortrait</string> | |
| 38 | + <string>UIInterfaceOrientationLandscapeLeft</string> | |
| 39 | + <string>UIInterfaceOrientationLandscapeRight</string> | |
| 40 | + </array> | |
| 41 | + <key>UISupportedInterfaceOrientations~ipad</key> | |
| 42 | + <array> | |
| 43 | + <string>UIInterfaceOrientationPortrait</string> | |
| 44 | + <string>UIInterfaceOrientationPortraitUpsideDown</string> | |
| 45 | + <string>UIInterfaceOrientationLandscapeLeft</string> | |
| 46 | + <string>UIInterfaceOrientationLandscapeRight</string> | |
| 47 | + </array> | |
| 48 | +</dict> | |
| 49 | +</plist> | ... | ... |
Example/CNLiveRefreshFooter/CNLiveRefreshFooter-Prefix.pch
0 → 100644
| 1 | +// | |
| 2 | +// Prefix header | |
| 3 | +// | |
| 4 | +// The contents of this file are implicitly included at the beginning of every source file. | |
| 5 | +// | |
| 6 | + | |
| 7 | +#import <Availability.h> | |
| 8 | + | |
| 9 | +#ifndef __IPHONE_5_0 | |
| 10 | +#warning "This project uses features only available in iOS SDK 5.0 and later." | |
| 11 | +#endif | |
| 12 | + | |
| 13 | +#ifdef __OBJC__ | |
| 14 | + @import UIKit; | |
| 15 | + @import Foundation; | |
| 16 | +#endif | ... | ... |
Example/CNLiveRefreshFooter/CNLiveViewController.h
0 → 100644
Example/CNLiveRefreshFooter/CNLiveViewController.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveViewController.m | |
| 3 | +// CNLiveRefreshFooter | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 12/21/2018. | |
| 6 | +// Copyright (c) 2018 殷巧娟. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "CNLiveViewController.h" | |
| 10 | + | |
| 11 | +@interface CNLiveViewController () | |
| 12 | + | |
| 13 | +@end | |
| 14 | + | |
| 15 | +@implementation CNLiveViewController | |
| 16 | + | |
| 17 | +- (void)viewDidLoad | |
| 18 | +{ | |
| 19 | + [super viewDidLoad]; | |
| 20 | + // Do any additional setup after loading the view, typically from a nib. | |
| 21 | +} | |
| 22 | + | |
| 23 | +- (void)didReceiveMemoryWarning | |
| 24 | +{ | |
| 25 | + [super didReceiveMemoryWarning]; | |
| 26 | + // Dispose of any resources that can be recreated. | |
| 27 | +} | |
| 28 | + | |
| 29 | +@end | ... | ... |
Example/CNLiveRefreshFooter/Images.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
| 1 | +{ | |
| 2 | + "images" : [ | |
| 3 | + { | |
| 4 | + "idiom" : "iphone", | |
| 5 | + "size" : "20x20", | |
| 6 | + "scale" : "2x" | |
| 7 | + }, | |
| 8 | + { | |
| 9 | + "idiom" : "iphone", | |
| 10 | + "size" : "20x20", | |
| 11 | + "scale" : "3x" | |
| 12 | + }, | |
| 13 | + { | |
| 14 | + "idiom" : "iphone", | |
| 15 | + "size" : "29x29", | |
| 16 | + "scale" : "2x" | |
| 17 | + }, | |
| 18 | + { | |
| 19 | + "idiom" : "iphone", | |
| 20 | + "size" : "29x29", | |
| 21 | + "scale" : "3x" | |
| 22 | + }, | |
| 23 | + { | |
| 24 | + "idiom" : "iphone", | |
| 25 | + "size" : "40x40", | |
| 26 | + "scale" : "2x" | |
| 27 | + }, | |
| 28 | + { | |
| 29 | + "idiom" : "iphone", | |
| 30 | + "size" : "40x40", | |
| 31 | + "scale" : "3x" | |
| 32 | + }, | |
| 33 | + { | |
| 34 | + "idiom" : "iphone", | |
| 35 | + "size" : "60x60", | |
| 36 | + "scale" : "2x" | |
| 37 | + }, | |
| 38 | + { | |
| 39 | + "idiom" : "iphone", | |
| 40 | + "size" : "60x60", | |
| 41 | + "scale" : "3x" | |
| 42 | + }, | |
| 43 | + { | |
| 44 | + "idiom" : "ipad", | |
| 45 | + "size" : "20x20", | |
| 46 | + "scale" : "1x" | |
| 47 | + }, | |
| 48 | + { | |
| 49 | + "idiom" : "ipad", | |
| 50 | + "size" : "20x20", | |
| 51 | + "scale" : "2x" | |
| 52 | + }, | |
| 53 | + { | |
| 54 | + "idiom" : "ipad", | |
| 55 | + "size" : "29x29", | |
| 56 | + "scale" : "1x" | |
| 57 | + }, | |
| 58 | + { | |
| 59 | + "idiom" : "ipad", | |
| 60 | + "size" : "29x29", | |
| 61 | + "scale" : "2x" | |
| 62 | + }, | |
| 63 | + { | |
| 64 | + "idiom" : "ipad", | |
| 65 | + "size" : "40x40", | |
| 66 | + "scale" : "1x" | |
| 67 | + }, | |
| 68 | + { | |
| 69 | + "idiom" : "ipad", | |
| 70 | + "size" : "40x40", | |
| 71 | + "scale" : "2x" | |
| 72 | + }, | |
| 73 | + { | |
| 74 | + "idiom" : "ipad", | |
| 75 | + "size" : "76x76", | |
| 76 | + "scale" : "1x" | |
| 77 | + }, | |
| 78 | + { | |
| 79 | + "idiom" : "ipad", | |
| 80 | + "size" : "76x76", | |
| 81 | + "scale" : "2x" | |
| 82 | + }, | |
| 83 | + { | |
| 84 | + "idiom" : "ipad", | |
| 85 | + "size" : "83.5x83.5", | |
| 86 | + "scale" : "2x" | |
| 87 | + }, | |
| 88 | + { | |
| 89 | + "idiom" : "ios-marketing", | |
| 90 | + "size" : "1024x1024", | |
| 91 | + "scale" : "1x" | |
| 92 | + } | |
| 93 | + ], | |
| 94 | + "info" : { | |
| 95 | + "version" : 1, | |
| 96 | + "author" : "xcode" | |
| 97 | + } | |
| 98 | +} | ... | ... |
Example/CNLiveRefreshFooter/en.lproj/InfoPlist.strings
0 → 100644
Example/CNLiveRefreshFooter/main.m
0 → 100644
| 1 | +// | |
| 2 | +// main.m | |
| 3 | +// CNLiveRefreshFooter | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 12/21/2018. | |
| 6 | +// Copyright (c) 2018 殷巧娟. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +@import UIKit; | |
| 10 | +#import "CNLiveAppDelegate.h" | |
| 11 | + | |
| 12 | +int main(int argc, char * argv[]) | |
| 13 | +{ | |
| 14 | + @autoreleasepool { | |
| 15 | + return UIApplicationMain(argc, argv, nil, NSStringFromClass([CNLiveAppDelegate class])); | |
| 16 | + } | |
| 17 | +} | ... | ... |
Example/Podfile
0 → 100644
Example/Podfile.lock
0 → 100644
| 1 | +PODS: | |
| 2 | + - CNLiveRefreshFooter (0.0.1): | |
| 3 | + - MJRefresh | |
| 4 | + - MJRefresh (3.1.15.7) | |
| 5 | + | |
| 6 | +DEPENDENCIES: | |
| 7 | + - CNLiveRefreshFooter (from `../`) | |
| 8 | + - MJRefresh | |
| 9 | + | |
| 10 | +SPEC REPOS: | |
| 11 | + https://github.com/cocoapods/specs.git: | |
| 12 | + - MJRefresh | |
| 13 | + | |
| 14 | +EXTERNAL SOURCES: | |
| 15 | + CNLiveRefreshFooter: | |
| 16 | + :path: "../" | |
| 17 | + | |
| 18 | +SPEC CHECKSUMS: | |
| 19 | + CNLiveRefreshFooter: 6425c728580007ffe534adf5c14d5bf876a0c594 | |
| 20 | + MJRefresh: 697f8ec75ebdbe9207767bb682cf0f51b0d8a41f | |
| 21 | + | |
| 22 | +PODFILE CHECKSUM: 0a51086267afeffdcad68ab5e4784ae8667622d2 | |
| 23 | + | |
| 24 | +COCOAPODS: 1.5.3 | ... | ... |
Example/Pods/Local Podspecs/CNLiveRefreshFooter.podspec.json
0 → 100644
| 1 | +{ | |
| 2 | + "name": "CNLiveRefreshFooter", | |
| 3 | + "version": "0.0.1", | |
| 4 | + "summary": "CNLive-iOS尾部刷新", | |
| 5 | + "description": "TODO: Add long description of the pod here.", | |
| 6 | + "homepage": "http://bj.gitlab.cnlive.com/ios-team/CNLiveRefreshFooter", | |
| 7 | + "license": { | |
| 8 | + "type": "MIT", | |
| 9 | + "file": "LICENSE" | |
| 10 | + }, | |
| 11 | + "authors": { | |
| 12 | + "殷巧娟": "1427945373@qq.com" | |
| 13 | + }, | |
| 14 | + "source": { | |
| 15 | + "git": "http://bj.gitlab.cnlive.com/ios-team/CNLiveRefreshFooter.git", | |
| 16 | + "tag": "0.0.1" | |
| 17 | + }, | |
| 18 | + "platforms": { | |
| 19 | + "ios": "9.0" | |
| 20 | + }, | |
| 21 | + "source_files": "CNLiveRefreshFooter/Classes/**/*", | |
| 22 | + "resource_bundles": { | |
| 23 | + "CNLiveRefreshFooter": [ | |
| 24 | + "CNLiveRefreshFooter/Assets/Assets.xcassets" | |
| 25 | + ] | |
| 26 | + }, | |
| 27 | + "frameworks": [ | |
| 28 | + "UIKit", | |
| 29 | + "Foundation" | |
| 30 | + ], | |
| 31 | + "dependencies": { | |
| 32 | + "MJRefresh": [ | |
| 33 | + | |
| 34 | + ] | |
| 35 | + } | |
| 36 | +} | ... | ... |
Example/Pods/MJRefresh/LICENSE
0 → 100644
| 1 | +Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh) | |
| 2 | + | |
| 3 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 4 | +of this software and associated documentation files (the "Software"), to deal | |
| 5 | +in the Software without restriction, including without limitation the rights | |
| 6 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 7 | +copies of the Software, and to permit persons to whom the Software is | |
| 8 | +furnished to do so, subject to the following conditions: | |
| 9 | + | |
| 10 | +The above copyright notice and this permission notice shall be included in | |
| 11 | +all copies or substantial portions of the Software. | |
| 12 | + | |
| 13 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 14 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 15 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 16 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 17 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 18 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 19 | +THE SOFTWARE. | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshAutoFooter.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshAutoFooter.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshAutoFooter : MJRefreshFooter | |
| 12 | +/** 是否自动刷新(默认为YES) */ | |
| 13 | +@property (assign, nonatomic, getter=isAutomaticallyRefresh) BOOL automaticallyRefresh; | |
| 14 | + | |
| 15 | +/** 当底部控件出现多少时就自动刷新(默认为1.0,也就是底部控件完全出现时,才会自动刷新) */ | |
| 16 | +@property (assign, nonatomic) CGFloat appearencePercentTriggerAutoRefresh MJRefreshDeprecated("请使用triggerAutomaticallyRefreshPercent属性"); | |
| 17 | + | |
| 18 | +/** 当底部控件出现多少时就自动刷新(默认为1.0,也就是底部控件完全出现时,才会自动刷新) */ | |
| 19 | +@property (assign, nonatomic) CGFloat triggerAutomaticallyRefreshPercent; | |
| 20 | + | |
| 21 | +/** 是否每一次拖拽只发一次请求 */ | |
| 22 | +@property (assign, nonatomic, getter=isOnlyRefreshPerDrag) BOOL onlyRefreshPerDrag; | |
| 23 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshAutoFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshAutoFooter.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshAutoFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshAutoFooter() | |
| 12 | +/** 一个新的拖拽 */ | |
| 13 | +@property (assign, nonatomic, getter=isOneNewPan) BOOL oneNewPan; | |
| 14 | +@end | |
| 15 | + | |
| 16 | +@implementation MJRefreshAutoFooter | |
| 17 | + | |
| 18 | +#pragma mark - 初始化 | |
| 19 | +- (void)willMoveToSuperview:(UIView *)newSuperview | |
| 20 | +{ | |
| 21 | + [super willMoveToSuperview:newSuperview]; | |
| 22 | + | |
| 23 | + if (newSuperview) { // 新的父控件 | |
| 24 | + if (self.hidden == NO) { | |
| 25 | + self.scrollView.mj_insetB += self.mj_h; | |
| 26 | + } | |
| 27 | + | |
| 28 | + // 设置位置 | |
| 29 | + self.mj_y = _scrollView.mj_contentH; | |
| 30 | + } else { // 被移除了 | |
| 31 | + if (self.hidden == NO) { | |
| 32 | + self.scrollView.mj_insetB -= self.mj_h; | |
| 33 | + } | |
| 34 | + } | |
| 35 | +} | |
| 36 | + | |
| 37 | +#pragma mark - 过期方法 | |
| 38 | +- (void)setAppearencePercentTriggerAutoRefresh:(CGFloat)appearencePercentTriggerAutoRefresh | |
| 39 | +{ | |
| 40 | + self.triggerAutomaticallyRefreshPercent = appearencePercentTriggerAutoRefresh; | |
| 41 | +} | |
| 42 | + | |
| 43 | +- (CGFloat)appearencePercentTriggerAutoRefresh | |
| 44 | +{ | |
| 45 | + return self.triggerAutomaticallyRefreshPercent; | |
| 46 | +} | |
| 47 | + | |
| 48 | +#pragma mark - 实现父类的方法 | |
| 49 | +- (void)prepare | |
| 50 | +{ | |
| 51 | + [super prepare]; | |
| 52 | + | |
| 53 | + // 默认底部控件100%出现时才会自动刷新 | |
| 54 | + self.triggerAutomaticallyRefreshPercent = 1.0; | |
| 55 | + | |
| 56 | + // 设置为默认状态 | |
| 57 | + self.automaticallyRefresh = YES; | |
| 58 | + | |
| 59 | + // 默认是当offset达到条件就发送请求(可连续) | |
| 60 | + self.onlyRefreshPerDrag = NO; | |
| 61 | +} | |
| 62 | + | |
| 63 | +- (void)scrollViewContentSizeDidChange:(NSDictionary *)change | |
| 64 | +{ | |
| 65 | + [super scrollViewContentSizeDidChange:change]; | |
| 66 | + | |
| 67 | + // 设置位置 | |
| 68 | + self.mj_y = self.scrollView.mj_contentH; | |
| 69 | +} | |
| 70 | + | |
| 71 | +- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change | |
| 72 | +{ | |
| 73 | + [super scrollViewContentOffsetDidChange:change]; | |
| 74 | + | |
| 75 | + if (self.state != MJRefreshStateIdle || !self.automaticallyRefresh || self.mj_y == 0) return; | |
| 76 | + | |
| 77 | + if (_scrollView.mj_insetT + _scrollView.mj_contentH > _scrollView.mj_h) { // 内容超过一个屏幕 | |
| 78 | + // 这里的_scrollView.mj_contentH替换掉self.mj_y更为合理 | |
| 79 | + if (_scrollView.mj_offsetY >= _scrollView.mj_contentH - _scrollView.mj_h + self.mj_h * self.triggerAutomaticallyRefreshPercent + _scrollView.mj_insetB - self.mj_h) { | |
| 80 | + // 防止手松开时连续调用 | |
| 81 | + CGPoint old = [change[@"old"] CGPointValue]; | |
| 82 | + CGPoint new = [change[@"new"] CGPointValue]; | |
| 83 | + if (new.y <= old.y) return; | |
| 84 | + | |
| 85 | + // 当底部刷新控件完全出现时,才刷新 | |
| 86 | + [self beginRefreshing]; | |
| 87 | + } | |
| 88 | + } | |
| 89 | +} | |
| 90 | + | |
| 91 | +- (void)scrollViewPanStateDidChange:(NSDictionary *)change | |
| 92 | +{ | |
| 93 | + [super scrollViewPanStateDidChange:change]; | |
| 94 | + | |
| 95 | + if (self.state != MJRefreshStateIdle) return; | |
| 96 | + | |
| 97 | + UIGestureRecognizerState panState = _scrollView.panGestureRecognizer.state; | |
| 98 | + if (panState == UIGestureRecognizerStateEnded) {// 手松开 | |
| 99 | + if (_scrollView.mj_insetT + _scrollView.mj_contentH <= _scrollView.mj_h) { // 不够一个屏幕 | |
| 100 | + if (_scrollView.mj_offsetY >= - _scrollView.mj_insetT) { // 向上拽 | |
| 101 | + [self beginRefreshing]; | |
| 102 | + } | |
| 103 | + } else { // 超出一个屏幕 | |
| 104 | + if (_scrollView.mj_offsetY >= _scrollView.mj_contentH + _scrollView.mj_insetB - _scrollView.mj_h) { | |
| 105 | + [self beginRefreshing]; | |
| 106 | + } | |
| 107 | + } | |
| 108 | + } else if (panState == UIGestureRecognizerStateBegan) { | |
| 109 | + self.oneNewPan = YES; | |
| 110 | + } | |
| 111 | +} | |
| 112 | + | |
| 113 | +- (void)beginRefreshing | |
| 114 | +{ | |
| 115 | + if (!self.isOneNewPan && self.isOnlyRefreshPerDrag) return; | |
| 116 | + | |
| 117 | + [super beginRefreshing]; | |
| 118 | + | |
| 119 | + self.oneNewPan = NO; | |
| 120 | +} | |
| 121 | + | |
| 122 | +- (void)setState:(MJRefreshState)state | |
| 123 | +{ | |
| 124 | + MJRefreshCheckState | |
| 125 | + | |
| 126 | + if (state == MJRefreshStateRefreshing) { | |
| 127 | + [self executeRefreshingCallback]; | |
| 128 | + } else if (state == MJRefreshStateNoMoreData || state == MJRefreshStateIdle) { | |
| 129 | + if (MJRefreshStateRefreshing == oldState) { | |
| 130 | + if (self.endRefreshingCompletionBlock) { | |
| 131 | + self.endRefreshingCompletionBlock(); | |
| 132 | + } | |
| 133 | + } | |
| 134 | + } | |
| 135 | +} | |
| 136 | + | |
| 137 | +- (void)setHidden:(BOOL)hidden | |
| 138 | +{ | |
| 139 | + BOOL lastHidden = self.isHidden; | |
| 140 | + | |
| 141 | + [super setHidden:hidden]; | |
| 142 | + | |
| 143 | + if (!lastHidden && hidden) { | |
| 144 | + self.state = MJRefreshStateIdle; | |
| 145 | + | |
| 146 | + self.scrollView.mj_insetB -= self.mj_h; | |
| 147 | + } else if (lastHidden && !hidden) { | |
| 148 | + self.scrollView.mj_insetB += self.mj_h; | |
| 149 | + | |
| 150 | + // 设置位置 | |
| 151 | + self.mj_y = _scrollView.mj_contentH; | |
| 152 | + } | |
| 153 | +} | |
| 154 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshBackFooter.h
0 → 100644
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshBackFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshBackFooter.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshBackFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshBackFooter() | |
| 12 | +@property (assign, nonatomic) NSInteger lastRefreshCount; | |
| 13 | +@property (assign, nonatomic) CGFloat lastBottomDelta; | |
| 14 | +@end | |
| 15 | + | |
| 16 | +@implementation MJRefreshBackFooter | |
| 17 | + | |
| 18 | +#pragma mark - 初始化 | |
| 19 | +- (void)willMoveToSuperview:(UIView *)newSuperview | |
| 20 | +{ | |
| 21 | + [super willMoveToSuperview:newSuperview]; | |
| 22 | + | |
| 23 | + [self scrollViewContentSizeDidChange:nil]; | |
| 24 | +} | |
| 25 | + | |
| 26 | +#pragma mark - 实现父类的方法 | |
| 27 | +- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change | |
| 28 | +{ | |
| 29 | + [super scrollViewContentOffsetDidChange:change]; | |
| 30 | + | |
| 31 | + // 如果正在刷新,直接返回 | |
| 32 | + if (self.state == MJRefreshStateRefreshing) return; | |
| 33 | + | |
| 34 | + _scrollViewOriginalInset = self.scrollView.mj_inset; | |
| 35 | + | |
| 36 | + // 当前的contentOffset | |
| 37 | + CGFloat currentOffsetY = self.scrollView.mj_offsetY; | |
| 38 | + // 尾部控件刚好出现的offsetY | |
| 39 | + CGFloat happenOffsetY = [self happenOffsetY]; | |
| 40 | + // 如果是向下滚动到看不见尾部控件,直接返回 | |
| 41 | + if (currentOffsetY <= happenOffsetY) return; | |
| 42 | + | |
| 43 | + CGFloat pullingPercent = (currentOffsetY - happenOffsetY) / self.mj_h; | |
| 44 | + | |
| 45 | + // 如果已全部加载,仅设置pullingPercent,然后返回 | |
| 46 | + if (self.state == MJRefreshStateNoMoreData) { | |
| 47 | + self.pullingPercent = pullingPercent; | |
| 48 | + return; | |
| 49 | + } | |
| 50 | + | |
| 51 | + if (self.scrollView.isDragging) { | |
| 52 | + self.pullingPercent = pullingPercent; | |
| 53 | + // 普通 和 即将刷新 的临界点 | |
| 54 | + CGFloat normal2pullingOffsetY = happenOffsetY + self.mj_h; | |
| 55 | + | |
| 56 | + if (self.state == MJRefreshStateIdle && currentOffsetY > normal2pullingOffsetY) { | |
| 57 | + // 转为即将刷新状态 | |
| 58 | + self.state = MJRefreshStatePulling; | |
| 59 | + } else if (self.state == MJRefreshStatePulling && currentOffsetY <= normal2pullingOffsetY) { | |
| 60 | + // 转为普通状态 | |
| 61 | + self.state = MJRefreshStateIdle; | |
| 62 | + } | |
| 63 | + } else if (self.state == MJRefreshStatePulling) {// 即将刷新 && 手松开 | |
| 64 | + // 开始刷新 | |
| 65 | + [self beginRefreshing]; | |
| 66 | + } else if (pullingPercent < 1) { | |
| 67 | + self.pullingPercent = pullingPercent; | |
| 68 | + } | |
| 69 | +} | |
| 70 | + | |
| 71 | +- (void)scrollViewContentSizeDidChange:(NSDictionary *)change | |
| 72 | +{ | |
| 73 | + [super scrollViewContentSizeDidChange:change]; | |
| 74 | + | |
| 75 | + // 内容的高度 | |
| 76 | + CGFloat contentHeight = self.scrollView.mj_contentH + self.ignoredScrollViewContentInsetBottom; | |
| 77 | + // 表格的高度 | |
| 78 | + CGFloat scrollHeight = self.scrollView.mj_h - self.scrollViewOriginalInset.top - self.scrollViewOriginalInset.bottom + self.ignoredScrollViewContentInsetBottom; | |
| 79 | + // 设置位置和尺寸 | |
| 80 | + self.mj_y = MAX(contentHeight, scrollHeight); | |
| 81 | +} | |
| 82 | + | |
| 83 | +- (void)setState:(MJRefreshState)state | |
| 84 | +{ | |
| 85 | + MJRefreshCheckState | |
| 86 | + | |
| 87 | + // 根据状态来设置属性 | |
| 88 | + if (state == MJRefreshStateNoMoreData || state == MJRefreshStateIdle) { | |
| 89 | + // 刷新完毕 | |
| 90 | + if (MJRefreshStateRefreshing == oldState) { | |
| 91 | + [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{ | |
| 92 | + self.scrollView.mj_insetB -= self.lastBottomDelta; | |
| 93 | + | |
| 94 | + // 自动调整透明度 | |
| 95 | + if (self.isAutomaticallyChangeAlpha) self.alpha = 0.0; | |
| 96 | + } completion:^(BOOL finished) { | |
| 97 | + self.pullingPercent = 0.0; | |
| 98 | + | |
| 99 | + if (self.endRefreshingCompletionBlock) { | |
| 100 | + self.endRefreshingCompletionBlock(); | |
| 101 | + } | |
| 102 | + }]; | |
| 103 | + } | |
| 104 | + | |
| 105 | + CGFloat deltaH = [self heightForContentBreakView]; | |
| 106 | + // 刚刷新完毕 | |
| 107 | + if (MJRefreshStateRefreshing == oldState && deltaH > 0 && self.scrollView.mj_totalDataCount != self.lastRefreshCount) { | |
| 108 | + self.scrollView.mj_offsetY = self.scrollView.mj_offsetY; | |
| 109 | + } | |
| 110 | + } else if (state == MJRefreshStateRefreshing) { | |
| 111 | + // 记录刷新前的数量 | |
| 112 | + self.lastRefreshCount = self.scrollView.mj_totalDataCount; | |
| 113 | + | |
| 114 | + [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{ | |
| 115 | + CGFloat bottom = self.mj_h + self.scrollViewOriginalInset.bottom; | |
| 116 | + CGFloat deltaH = [self heightForContentBreakView]; | |
| 117 | + if (deltaH < 0) { // 如果内容高度小于view的高度 | |
| 118 | + bottom -= deltaH; | |
| 119 | + } | |
| 120 | + self.lastBottomDelta = bottom - self.scrollView.mj_insetB; | |
| 121 | + self.scrollView.mj_insetB = bottom; | |
| 122 | + self.scrollView.mj_offsetY = [self happenOffsetY] + self.mj_h; | |
| 123 | + } completion:^(BOOL finished) { | |
| 124 | + [self executeRefreshingCallback]; | |
| 125 | + }]; | |
| 126 | + } | |
| 127 | +} | |
| 128 | +#pragma mark - 私有方法 | |
| 129 | +#pragma mark 获得scrollView的内容 超出 view 的高度 | |
| 130 | +- (CGFloat)heightForContentBreakView | |
| 131 | +{ | |
| 132 | + CGFloat h = self.scrollView.frame.size.height - self.scrollViewOriginalInset.bottom - self.scrollViewOriginalInset.top; | |
| 133 | + return self.scrollView.contentSize.height - h; | |
| 134 | +} | |
| 135 | + | |
| 136 | +#pragma mark 刚好看到上拉刷新控件时的contentOffset.y | |
| 137 | +- (CGFloat)happenOffsetY | |
| 138 | +{ | |
| 139 | + CGFloat deltaH = [self heightForContentBreakView]; | |
| 140 | + if (deltaH > 0) { | |
| 141 | + return deltaH - self.scrollViewOriginalInset.top; | |
| 142 | + } else { | |
| 143 | + return - self.scrollViewOriginalInset.top; | |
| 144 | + } | |
| 145 | +} | |
| 146 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshComponent.h
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// MJRefreshComponent.h | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 15/3/4. | |
| 7 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 8 | +// 刷新控件的基类 | |
| 9 | + | |
| 10 | +#import <UIKit/UIKit.h> | |
| 11 | +#import "MJRefreshConst.h" | |
| 12 | +#import "UIView+MJExtension.h" | |
| 13 | +#import "UIScrollView+MJExtension.h" | |
| 14 | +#import "UIScrollView+MJRefresh.h" | |
| 15 | +#import "NSBundle+MJRefresh.h" | |
| 16 | + | |
| 17 | +/** 刷新控件的状态 */ | |
| 18 | +typedef NS_ENUM(NSInteger, MJRefreshState) { | |
| 19 | + /** 普通闲置状态 */ | |
| 20 | + MJRefreshStateIdle = 1, | |
| 21 | + /** 松开就可以进行刷新的状态 */ | |
| 22 | + MJRefreshStatePulling, | |
| 23 | + /** 正在刷新中的状态 */ | |
| 24 | + MJRefreshStateRefreshing, | |
| 25 | + /** 即将刷新的状态 */ | |
| 26 | + MJRefreshStateWillRefresh, | |
| 27 | + /** 所有数据加载完毕,没有更多的数据了 */ | |
| 28 | + MJRefreshStateNoMoreData | |
| 29 | +}; | |
| 30 | + | |
| 31 | +/** 进入刷新状态的回调 */ | |
| 32 | +typedef void (^MJRefreshComponentRefreshingBlock)(void); | |
| 33 | +/** 开始刷新后的回调(进入刷新状态后的回调) */ | |
| 34 | +typedef void (^MJRefreshComponentbeginRefreshingCompletionBlock)(void); | |
| 35 | +/** 结束刷新后的回调 */ | |
| 36 | +typedef void (^MJRefreshComponentEndRefreshingCompletionBlock)(void); | |
| 37 | + | |
| 38 | +/** 刷新控件的基类 */ | |
| 39 | +@interface MJRefreshComponent : UIView | |
| 40 | +{ | |
| 41 | + /** 记录scrollView刚开始的inset */ | |
| 42 | + UIEdgeInsets _scrollViewOriginalInset; | |
| 43 | + /** 父控件 */ | |
| 44 | + __weak UIScrollView *_scrollView; | |
| 45 | +} | |
| 46 | +#pragma mark - 刷新回调 | |
| 47 | +/** 正在刷新的回调 */ | |
| 48 | +@property (copy, nonatomic) MJRefreshComponentRefreshingBlock refreshingBlock; | |
| 49 | +/** 设置回调对象和回调方法 */ | |
| 50 | +- (void)setRefreshingTarget:(id)target refreshingAction:(SEL)action; | |
| 51 | + | |
| 52 | +/** 回调对象 */ | |
| 53 | +@property (weak, nonatomic) id refreshingTarget; | |
| 54 | +/** 回调方法 */ | |
| 55 | +@property (assign, nonatomic) SEL refreshingAction; | |
| 56 | +/** 触发回调(交给子类去调用) */ | |
| 57 | +- (void)executeRefreshingCallback; | |
| 58 | + | |
| 59 | +#pragma mark - 刷新状态控制 | |
| 60 | +/** 进入刷新状态 */ | |
| 61 | +- (void)beginRefreshing; | |
| 62 | +- (void)beginRefreshingWithCompletionBlock:(void (^)(void))completionBlock; | |
| 63 | +/** 开始刷新后的回调(进入刷新状态后的回调) */ | |
| 64 | +@property (copy, nonatomic) MJRefreshComponentbeginRefreshingCompletionBlock beginRefreshingCompletionBlock; | |
| 65 | +/** 结束刷新的回调 */ | |
| 66 | +@property (copy, nonatomic) MJRefreshComponentEndRefreshingCompletionBlock endRefreshingCompletionBlock; | |
| 67 | +/** 结束刷新状态 */ | |
| 68 | +- (void)endRefreshing; | |
| 69 | +- (void)endRefreshingWithCompletionBlock:(void (^)(void))completionBlock; | |
| 70 | +/** 是否正在刷新 */ | |
| 71 | +@property (assign, nonatomic, readonly, getter=isRefreshing) BOOL refreshing; | |
| 72 | +//- (BOOL)isRefreshing; | |
| 73 | +/** 刷新状态 一般交给子类内部实现 */ | |
| 74 | +@property (assign, nonatomic) MJRefreshState state; | |
| 75 | + | |
| 76 | +#pragma mark - 交给子类去访问 | |
| 77 | +/** 记录scrollView刚开始的inset */ | |
| 78 | +@property (assign, nonatomic, readonly) UIEdgeInsets scrollViewOriginalInset; | |
| 79 | +/** 父控件 */ | |
| 80 | +@property (weak, nonatomic, readonly) UIScrollView *scrollView; | |
| 81 | + | |
| 82 | +#pragma mark - 交给子类们去实现 | |
| 83 | +/** 初始化 */ | |
| 84 | +- (void)prepare NS_REQUIRES_SUPER; | |
| 85 | +/** 摆放子控件frame */ | |
| 86 | +- (void)placeSubviews NS_REQUIRES_SUPER; | |
| 87 | +/** 当scrollView的contentOffset发生改变的时候调用 */ | |
| 88 | +- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change NS_REQUIRES_SUPER; | |
| 89 | +/** 当scrollView的contentSize发生改变的时候调用 */ | |
| 90 | +- (void)scrollViewContentSizeDidChange:(NSDictionary *)change NS_REQUIRES_SUPER; | |
| 91 | +/** 当scrollView的拖拽状态发生改变的时候调用 */ | |
| 92 | +- (void)scrollViewPanStateDidChange:(NSDictionary *)change NS_REQUIRES_SUPER; | |
| 93 | + | |
| 94 | + | |
| 95 | +#pragma mark - 其他 | |
| 96 | +/** 拉拽的百分比(交给子类重写) */ | |
| 97 | +@property (assign, nonatomic) CGFloat pullingPercent; | |
| 98 | +/** 根据拖拽比例自动切换透明度 */ | |
| 99 | +@property (assign, nonatomic, getter=isAutoChangeAlpha) BOOL autoChangeAlpha MJRefreshDeprecated("请使用automaticallyChangeAlpha属性"); | |
| 100 | +/** 根据拖拽比例自动切换透明度 */ | |
| 101 | +@property (assign, nonatomic, getter=isAutomaticallyChangeAlpha) BOOL automaticallyChangeAlpha; | |
| 102 | +@end | |
| 103 | + | |
| 104 | +@interface UILabel(MJRefresh) | |
| 105 | ++ (instancetype)mj_label; | |
| 106 | +- (CGFloat)mj_textWith; | |
| 107 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshComponent.m
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// MJRefreshComponent.m | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 15/3/4. | |
| 7 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 8 | +// | |
| 9 | + | |
| 10 | +#import "MJRefreshComponent.h" | |
| 11 | +#import "MJRefreshConst.h" | |
| 12 | + | |
| 13 | +@interface MJRefreshComponent() | |
| 14 | +@property (strong, nonatomic) UIPanGestureRecognizer *pan; | |
| 15 | +@end | |
| 16 | + | |
| 17 | +@implementation MJRefreshComponent | |
| 18 | +#pragma mark - 初始化 | |
| 19 | +- (instancetype)initWithFrame:(CGRect)frame | |
| 20 | +{ | |
| 21 | + if (self = [super initWithFrame:frame]) { | |
| 22 | + // 准备工作 | |
| 23 | + [self prepare]; | |
| 24 | + | |
| 25 | + // 默认是普通状态 | |
| 26 | + self.state = MJRefreshStateIdle; | |
| 27 | + } | |
| 28 | + return self; | |
| 29 | +} | |
| 30 | + | |
| 31 | +- (void)prepare | |
| 32 | +{ | |
| 33 | + // 基本属性 | |
| 34 | + self.autoresizingMask = UIViewAutoresizingFlexibleWidth; | |
| 35 | + self.backgroundColor = [UIColor clearColor]; | |
| 36 | +} | |
| 37 | + | |
| 38 | +- (void)layoutSubviews | |
| 39 | +{ | |
| 40 | + [self placeSubviews]; | |
| 41 | + | |
| 42 | + [super layoutSubviews]; | |
| 43 | +} | |
| 44 | + | |
| 45 | +- (void)placeSubviews{} | |
| 46 | + | |
| 47 | +- (void)willMoveToSuperview:(UIView *)newSuperview | |
| 48 | +{ | |
| 49 | + [super willMoveToSuperview:newSuperview]; | |
| 50 | + | |
| 51 | + // 如果不是UIScrollView,不做任何事情 | |
| 52 | + if (newSuperview && ![newSuperview isKindOfClass:[UIScrollView class]]) return; | |
| 53 | + | |
| 54 | + // 旧的父控件移除监听 | |
| 55 | + [self removeObservers]; | |
| 56 | + | |
| 57 | + if (newSuperview) { // 新的父控件 | |
| 58 | + // 设置宽度 | |
| 59 | + self.mj_w = newSuperview.mj_w; | |
| 60 | + // 设置位置 | |
| 61 | + self.mj_x = -_scrollView.mj_insetL; | |
| 62 | + | |
| 63 | + // 记录UIScrollView | |
| 64 | + _scrollView = (UIScrollView *)newSuperview; | |
| 65 | + // 设置永远支持垂直弹簧效果 | |
| 66 | + _scrollView.alwaysBounceVertical = YES; | |
| 67 | + // 记录UIScrollView最开始的contentInset | |
| 68 | + _scrollViewOriginalInset = _scrollView.mj_inset; | |
| 69 | + | |
| 70 | + // 添加监听 | |
| 71 | + [self addObservers]; | |
| 72 | + } | |
| 73 | +} | |
| 74 | + | |
| 75 | +- (void)drawRect:(CGRect)rect | |
| 76 | +{ | |
| 77 | + [super drawRect:rect]; | |
| 78 | + | |
| 79 | + if (self.state == MJRefreshStateWillRefresh) { | |
| 80 | + // 预防view还没显示出来就调用了beginRefreshing | |
| 81 | + self.state = MJRefreshStateRefreshing; | |
| 82 | + } | |
| 83 | +} | |
| 84 | + | |
| 85 | +#pragma mark - KVO监听 | |
| 86 | +- (void)addObservers | |
| 87 | +{ | |
| 88 | + NSKeyValueObservingOptions options = NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld; | |
| 89 | + [self.scrollView addObserver:self forKeyPath:MJRefreshKeyPathContentOffset options:options context:nil]; | |
| 90 | + [self.scrollView addObserver:self forKeyPath:MJRefreshKeyPathContentSize options:options context:nil]; | |
| 91 | + self.pan = self.scrollView.panGestureRecognizer; | |
| 92 | + [self.pan addObserver:self forKeyPath:MJRefreshKeyPathPanState options:options context:nil]; | |
| 93 | +} | |
| 94 | + | |
| 95 | +- (void)removeObservers | |
| 96 | +{ | |
| 97 | + [self.superview removeObserver:self forKeyPath:MJRefreshKeyPathContentOffset]; | |
| 98 | + [self.superview removeObserver:self forKeyPath:MJRefreshKeyPathContentSize]; | |
| 99 | + [self.pan removeObserver:self forKeyPath:MJRefreshKeyPathPanState]; | |
| 100 | + self.pan = nil; | |
| 101 | +} | |
| 102 | + | |
| 103 | +- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context | |
| 104 | +{ | |
| 105 | + // 遇到这些情况就直接返回 | |
| 106 | + if (!self.userInteractionEnabled) return; | |
| 107 | + | |
| 108 | + // 这个就算看不见也需要处理 | |
| 109 | + if ([keyPath isEqualToString:MJRefreshKeyPathContentSize]) { | |
| 110 | + [self scrollViewContentSizeDidChange:change]; | |
| 111 | + } | |
| 112 | + | |
| 113 | + // 看不见 | |
| 114 | + if (self.hidden) return; | |
| 115 | + if ([keyPath isEqualToString:MJRefreshKeyPathContentOffset]) { | |
| 116 | + [self scrollViewContentOffsetDidChange:change]; | |
| 117 | + } else if ([keyPath isEqualToString:MJRefreshKeyPathPanState]) { | |
| 118 | + [self scrollViewPanStateDidChange:change]; | |
| 119 | + } | |
| 120 | +} | |
| 121 | + | |
| 122 | +- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change{} | |
| 123 | +- (void)scrollViewContentSizeDidChange:(NSDictionary *)change{} | |
| 124 | +- (void)scrollViewPanStateDidChange:(NSDictionary *)change{} | |
| 125 | + | |
| 126 | +#pragma mark - 公共方法 | |
| 127 | +#pragma mark 设置回调对象和回调方法 | |
| 128 | +- (void)setRefreshingTarget:(id)target refreshingAction:(SEL)action | |
| 129 | +{ | |
| 130 | + self.refreshingTarget = target; | |
| 131 | + self.refreshingAction = action; | |
| 132 | +} | |
| 133 | + | |
| 134 | +- (void)setState:(MJRefreshState)state | |
| 135 | +{ | |
| 136 | + _state = state; | |
| 137 | + | |
| 138 | + // 加入主队列的目的是等setState:方法调用完毕、设置完文字后再去布局子控件 | |
| 139 | + MJRefreshDispatchAsyncOnMainQueue([self setNeedsLayout];) | |
| 140 | +} | |
| 141 | + | |
| 142 | +#pragma mark 进入刷新状态 | |
| 143 | +- (void)beginRefreshing | |
| 144 | +{ | |
| 145 | + [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{ | |
| 146 | + self.alpha = 1.0; | |
| 147 | + }]; | |
| 148 | + self.pullingPercent = 1.0; | |
| 149 | + // 只要正在刷新,就完全显示 | |
| 150 | + if (self.window) { | |
| 151 | + self.state = MJRefreshStateRefreshing; | |
| 152 | + } else { | |
| 153 | + // 预防正在刷新中时,调用本方法使得header inset回置失败 | |
| 154 | + if (self.state != MJRefreshStateRefreshing) { | |
| 155 | + self.state = MJRefreshStateWillRefresh; | |
| 156 | + // 刷新(预防从另一个控制器回到这个控制器的情况,回来要重新刷新一下) | |
| 157 | + [self setNeedsDisplay]; | |
| 158 | + } | |
| 159 | + } | |
| 160 | +} | |
| 161 | + | |
| 162 | +- (void)beginRefreshingWithCompletionBlock:(void (^)(void))completionBlock | |
| 163 | +{ | |
| 164 | + self.beginRefreshingCompletionBlock = completionBlock; | |
| 165 | + | |
| 166 | + [self beginRefreshing]; | |
| 167 | +} | |
| 168 | + | |
| 169 | +#pragma mark 结束刷新状态 | |
| 170 | +- (void)endRefreshing | |
| 171 | +{ | |
| 172 | + MJRefreshDispatchAsyncOnMainQueue(self.state = MJRefreshStateIdle;) | |
| 173 | +} | |
| 174 | + | |
| 175 | +- (void)endRefreshingWithCompletionBlock:(void (^)(void))completionBlock | |
| 176 | +{ | |
| 177 | + self.endRefreshingCompletionBlock = completionBlock; | |
| 178 | + | |
| 179 | + [self endRefreshing]; | |
| 180 | +} | |
| 181 | + | |
| 182 | +#pragma mark 是否正在刷新 | |
| 183 | +- (BOOL)isRefreshing | |
| 184 | +{ | |
| 185 | + return self.state == MJRefreshStateRefreshing || self.state == MJRefreshStateWillRefresh; | |
| 186 | +} | |
| 187 | + | |
| 188 | +#pragma mark 自动切换透明度 | |
| 189 | +- (void)setAutoChangeAlpha:(BOOL)autoChangeAlpha | |
| 190 | +{ | |
| 191 | + self.automaticallyChangeAlpha = autoChangeAlpha; | |
| 192 | +} | |
| 193 | + | |
| 194 | +- (BOOL)isAutoChangeAlpha | |
| 195 | +{ | |
| 196 | + return self.isAutomaticallyChangeAlpha; | |
| 197 | +} | |
| 198 | + | |
| 199 | +- (void)setAutomaticallyChangeAlpha:(BOOL)automaticallyChangeAlpha | |
| 200 | +{ | |
| 201 | + _automaticallyChangeAlpha = automaticallyChangeAlpha; | |
| 202 | + | |
| 203 | + if (self.isRefreshing) return; | |
| 204 | + | |
| 205 | + if (automaticallyChangeAlpha) { | |
| 206 | + self.alpha = self.pullingPercent; | |
| 207 | + } else { | |
| 208 | + self.alpha = 1.0; | |
| 209 | + } | |
| 210 | +} | |
| 211 | + | |
| 212 | +#pragma mark 根据拖拽进度设置透明度 | |
| 213 | +- (void)setPullingPercent:(CGFloat)pullingPercent | |
| 214 | +{ | |
| 215 | + _pullingPercent = pullingPercent; | |
| 216 | + | |
| 217 | + if (self.isRefreshing) return; | |
| 218 | + | |
| 219 | + if (self.isAutomaticallyChangeAlpha) { | |
| 220 | + self.alpha = pullingPercent; | |
| 221 | + } | |
| 222 | +} | |
| 223 | + | |
| 224 | +#pragma mark - 内部方法 | |
| 225 | +- (void)executeRefreshingCallback | |
| 226 | +{ | |
| 227 | + MJRefreshDispatchAsyncOnMainQueue({ | |
| 228 | + if (self.refreshingBlock) { | |
| 229 | + self.refreshingBlock(); | |
| 230 | + } | |
| 231 | + if ([self.refreshingTarget respondsToSelector:self.refreshingAction]) { | |
| 232 | + MJRefreshMsgSend(MJRefreshMsgTarget(self.refreshingTarget), self.refreshingAction, self); | |
| 233 | + } | |
| 234 | + if (self.beginRefreshingCompletionBlock) { | |
| 235 | + self.beginRefreshingCompletionBlock(); | |
| 236 | + } | |
| 237 | + }) | |
| 238 | +} | |
| 239 | +@end | |
| 240 | + | |
| 241 | +@implementation UILabel(MJRefresh) | |
| 242 | ++ (instancetype)mj_label | |
| 243 | +{ | |
| 244 | + UILabel *label = [[self alloc] init]; | |
| 245 | + label.font = MJRefreshLabelFont; | |
| 246 | + label.textColor = MJRefreshLabelTextColor; | |
| 247 | + label.autoresizingMask = UIViewAutoresizingFlexibleWidth; | |
| 248 | + label.textAlignment = NSTextAlignmentCenter; | |
| 249 | + label.backgroundColor = [UIColor clearColor]; | |
| 250 | + return label; | |
| 251 | +} | |
| 252 | + | |
| 253 | +- (CGFloat)mj_textWith { | |
| 254 | + CGFloat stringWidth = 0; | |
| 255 | + CGSize size = CGSizeMake(MAXFLOAT, MAXFLOAT); | |
| 256 | + if (self.text.length > 0) { | |
| 257 | +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 | |
| 258 | + stringWidth =[self.text | |
| 259 | + boundingRectWithSize:size | |
| 260 | + options:NSStringDrawingUsesLineFragmentOrigin | |
| 261 | + attributes:@{NSFontAttributeName:self.font} | |
| 262 | + context:nil].size.width; | |
| 263 | +#else | |
| 264 | + | |
| 265 | + stringWidth = [self.text sizeWithFont:self.font | |
| 266 | + constrainedToSize:size | |
| 267 | + lineBreakMode:NSLineBreakByCharWrapping].width; | |
| 268 | +#endif | |
| 269 | + } | |
| 270 | + return stringWidth; | |
| 271 | +} | |
| 272 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshFooter.h
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// MJRefreshFooter.h | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 15/3/5. | |
| 7 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 8 | +// 上拉刷新控件 | |
| 9 | + | |
| 10 | +#import "MJRefreshComponent.h" | |
| 11 | + | |
| 12 | +@interface MJRefreshFooter : MJRefreshComponent | |
| 13 | +/** 创建footer */ | |
| 14 | ++ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock; | |
| 15 | +/** 创建footer */ | |
| 16 | ++ (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; | |
| 17 | + | |
| 18 | +/** 提示没有更多的数据 */ | |
| 19 | +- (void)endRefreshingWithNoMoreData; | |
| 20 | +- (void)noticeNoMoreData MJRefreshDeprecated("使用endRefreshingWithNoMoreData"); | |
| 21 | + | |
| 22 | +/** 重置没有更多的数据(消除没有更多数据的状态) */ | |
| 23 | +- (void)resetNoMoreData; | |
| 24 | + | |
| 25 | +/** 忽略多少scrollView的contentInset的bottom */ | |
| 26 | +@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom; | |
| 27 | + | |
| 28 | +/** 自动根据有无数据来显示和隐藏(有数据就显示,没有数据隐藏。默认是NO) */ | |
| 29 | +@property (assign, nonatomic, getter=isAutomaticallyHidden) BOOL automaticallyHidden MJRefreshDeprecated("不建议使用此属性,开发者请自行控制footer的显示和隐藏。基于安全考虑,在未来的某些版本此属性可能作废"); | |
| 30 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshFooter.m
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// MJRefreshFooter.m | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 15/3/5. | |
| 7 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 8 | +// | |
| 9 | + | |
| 10 | +#import "MJRefreshFooter.h" | |
| 11 | +#include "UIScrollView+MJRefresh.h" | |
| 12 | + | |
| 13 | +@interface MJRefreshFooter() | |
| 14 | + | |
| 15 | +@end | |
| 16 | + | |
| 17 | +@implementation MJRefreshFooter | |
| 18 | +#pragma mark - 构造方法 | |
| 19 | ++ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock | |
| 20 | +{ | |
| 21 | + MJRefreshFooter *cmp = [[self alloc] init]; | |
| 22 | + cmp.refreshingBlock = refreshingBlock; | |
| 23 | + return cmp; | |
| 24 | +} | |
| 25 | ++ (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action | |
| 26 | +{ | |
| 27 | + MJRefreshFooter *cmp = [[self alloc] init]; | |
| 28 | + [cmp setRefreshingTarget:target refreshingAction:action]; | |
| 29 | + return cmp; | |
| 30 | +} | |
| 31 | + | |
| 32 | +#pragma mark - 重写父类的方法 | |
| 33 | +- (void)prepare | |
| 34 | +{ | |
| 35 | + [super prepare]; | |
| 36 | + | |
| 37 | + // 设置自己的高度 | |
| 38 | + self.mj_h = MJRefreshFooterHeight; | |
| 39 | + | |
| 40 | + // 默认不会自动隐藏 | |
| 41 | + self.automaticallyHidden = NO; | |
| 42 | +} | |
| 43 | + | |
| 44 | +- (void)willMoveToSuperview:(UIView *)newSuperview | |
| 45 | +{ | |
| 46 | + [super willMoveToSuperview:newSuperview]; | |
| 47 | + | |
| 48 | + if (newSuperview) { | |
| 49 | + // 监听scrollView数据的变化 | |
| 50 | + if ([self.scrollView isKindOfClass:[UITableView class]] || [self.scrollView isKindOfClass:[UICollectionView class]]) { | |
| 51 | + [self.scrollView setMj_reloadDataBlock:^(NSInteger totalDataCount) { | |
| 52 | + if (self.isAutomaticallyHidden) { | |
| 53 | + self.hidden = (totalDataCount == 0); | |
| 54 | + } | |
| 55 | + }]; | |
| 56 | + } | |
| 57 | + } | |
| 58 | +} | |
| 59 | + | |
| 60 | +#pragma mark - 公共方法 | |
| 61 | +- (void)endRefreshingWithNoMoreData | |
| 62 | +{ | |
| 63 | + MJRefreshDispatchAsyncOnMainQueue(self.state = MJRefreshStateNoMoreData;) | |
| 64 | +} | |
| 65 | + | |
| 66 | +- (void)noticeNoMoreData | |
| 67 | +{ | |
| 68 | + [self endRefreshingWithNoMoreData]; | |
| 69 | +} | |
| 70 | + | |
| 71 | +- (void)resetNoMoreData | |
| 72 | +{ | |
| 73 | + MJRefreshDispatchAsyncOnMainQueue(self.state = MJRefreshStateIdle;) | |
| 74 | +} | |
| 75 | + | |
| 76 | +- (void)setAutomaticallyHidden:(BOOL)automaticallyHidden | |
| 77 | +{ | |
| 78 | + _automaticallyHidden = automaticallyHidden; | |
| 79 | +} | |
| 80 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshHeader.h
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// MJRefreshHeader.h | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 15/3/4. | |
| 7 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 8 | +// 下拉刷新控件:负责监控用户下拉的状态 | |
| 9 | + | |
| 10 | +#import "MJRefreshComponent.h" | |
| 11 | + | |
| 12 | +@interface MJRefreshHeader : MJRefreshComponent | |
| 13 | +/** 创建header */ | |
| 14 | ++ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock; | |
| 15 | +/** 创建header */ | |
| 16 | ++ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; | |
| 17 | + | |
| 18 | +/** 这个key用来存储上一次下拉刷新成功的时间 */ | |
| 19 | +@property (copy, nonatomic) NSString *lastUpdatedTimeKey; | |
| 20 | +/** 上一次下拉刷新成功的时间 */ | |
| 21 | +@property (strong, nonatomic, readonly) NSDate *lastUpdatedTime; | |
| 22 | + | |
| 23 | +/** 忽略多少scrollView的contentInset的top */ | |
| 24 | +@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetTop; | |
| 25 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshHeader.m
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// MJRefreshHeader.m | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 15/3/4. | |
| 7 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 8 | +// | |
| 9 | + | |
| 10 | +#import "MJRefreshHeader.h" | |
| 11 | + | |
| 12 | +@interface MJRefreshHeader() | |
| 13 | +@property (assign, nonatomic) CGFloat insetTDelta; | |
| 14 | +@end | |
| 15 | + | |
| 16 | +@implementation MJRefreshHeader | |
| 17 | +#pragma mark - 构造方法 | |
| 18 | ++ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock | |
| 19 | +{ | |
| 20 | + MJRefreshHeader *cmp = [[self alloc] init]; | |
| 21 | + cmp.refreshingBlock = refreshingBlock; | |
| 22 | + return cmp; | |
| 23 | +} | |
| 24 | ++ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action | |
| 25 | +{ | |
| 26 | + MJRefreshHeader *cmp = [[self alloc] init]; | |
| 27 | + [cmp setRefreshingTarget:target refreshingAction:action]; | |
| 28 | + return cmp; | |
| 29 | +} | |
| 30 | + | |
| 31 | +#pragma mark - 覆盖父类的方法 | |
| 32 | +- (void)prepare | |
| 33 | +{ | |
| 34 | + [super prepare]; | |
| 35 | + | |
| 36 | + // 设置key | |
| 37 | + self.lastUpdatedTimeKey = MJRefreshHeaderLastUpdatedTimeKey; | |
| 38 | + | |
| 39 | + // 设置高度 | |
| 40 | + self.mj_h = MJRefreshHeaderHeight; | |
| 41 | +} | |
| 42 | + | |
| 43 | +- (void)placeSubviews | |
| 44 | +{ | |
| 45 | + [super placeSubviews]; | |
| 46 | + | |
| 47 | + // 设置y值(当自己的高度发生改变了,肯定要重新调整Y值,所以放到placeSubviews方法中设置y值) | |
| 48 | + self.mj_y = - self.mj_h - self.ignoredScrollViewContentInsetTop; | |
| 49 | +} | |
| 50 | + | |
| 51 | +- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change | |
| 52 | +{ | |
| 53 | + [super scrollViewContentOffsetDidChange:change]; | |
| 54 | + | |
| 55 | + // 在刷新的refreshing状态 | |
| 56 | + if (self.state == MJRefreshStateRefreshing) { | |
| 57 | + // 暂时保留 | |
| 58 | + if (self.window == nil) return; | |
| 59 | + | |
| 60 | + // sectionheader停留解决 | |
| 61 | + CGFloat insetT = - self.scrollView.mj_offsetY > _scrollViewOriginalInset.top ? - self.scrollView.mj_offsetY : _scrollViewOriginalInset.top; | |
| 62 | + insetT = insetT > self.mj_h + _scrollViewOriginalInset.top ? self.mj_h + _scrollViewOriginalInset.top : insetT; | |
| 63 | + self.scrollView.mj_insetT = insetT; | |
| 64 | + | |
| 65 | + self.insetTDelta = _scrollViewOriginalInset.top - insetT; | |
| 66 | + return; | |
| 67 | + } | |
| 68 | + | |
| 69 | + // 跳转到下一个控制器时,contentInset可能会变 | |
| 70 | + _scrollViewOriginalInset = self.scrollView.mj_inset; | |
| 71 | + | |
| 72 | + // 当前的contentOffset | |
| 73 | + CGFloat offsetY = self.scrollView.mj_offsetY; | |
| 74 | + // 头部控件刚好出现的offsetY | |
| 75 | + CGFloat happenOffsetY = - self.scrollViewOriginalInset.top; | |
| 76 | + | |
| 77 | + // 如果是向上滚动到看不见头部控件,直接返回 | |
| 78 | + // >= -> > | |
| 79 | + if (offsetY > happenOffsetY) return; | |
| 80 | + | |
| 81 | + // 普通 和 即将刷新 的临界点 | |
| 82 | + CGFloat normal2pullingOffsetY = happenOffsetY - self.mj_h; | |
| 83 | + CGFloat pullingPercent = (happenOffsetY - offsetY) / self.mj_h; | |
| 84 | + | |
| 85 | + if (self.scrollView.isDragging) { // 如果正在拖拽 | |
| 86 | + self.pullingPercent = pullingPercent; | |
| 87 | + if (self.state == MJRefreshStateIdle && offsetY < normal2pullingOffsetY) { | |
| 88 | + // 转为即将刷新状态 | |
| 89 | + self.state = MJRefreshStatePulling; | |
| 90 | + } else if (self.state == MJRefreshStatePulling && offsetY >= normal2pullingOffsetY) { | |
| 91 | + // 转为普通状态 | |
| 92 | + self.state = MJRefreshStateIdle; | |
| 93 | + } | |
| 94 | + } else if (self.state == MJRefreshStatePulling) {// 即将刷新 && 手松开 | |
| 95 | + // 开始刷新 | |
| 96 | + [self beginRefreshing]; | |
| 97 | + } else if (pullingPercent < 1) { | |
| 98 | + self.pullingPercent = pullingPercent; | |
| 99 | + } | |
| 100 | +} | |
| 101 | + | |
| 102 | +- (void)setState:(MJRefreshState)state | |
| 103 | +{ | |
| 104 | + MJRefreshCheckState | |
| 105 | + | |
| 106 | + // 根据状态做事情 | |
| 107 | + if (state == MJRefreshStateIdle) { | |
| 108 | + if (oldState != MJRefreshStateRefreshing) return; | |
| 109 | + | |
| 110 | + // 保存刷新时间 | |
| 111 | + [[NSUserDefaults standardUserDefaults] setObject:[NSDate date] forKey:self.lastUpdatedTimeKey]; | |
| 112 | + [[NSUserDefaults standardUserDefaults] synchronize]; | |
| 113 | + | |
| 114 | + // 恢复inset和offset | |
| 115 | + [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{ | |
| 116 | + self.scrollView.mj_insetT += self.insetTDelta; | |
| 117 | + | |
| 118 | + // 自动调整透明度 | |
| 119 | + if (self.isAutomaticallyChangeAlpha) self.alpha = 0.0; | |
| 120 | + } completion:^(BOOL finished) { | |
| 121 | + self.pullingPercent = 0.0; | |
| 122 | + | |
| 123 | + if (self.endRefreshingCompletionBlock) { | |
| 124 | + self.endRefreshingCompletionBlock(); | |
| 125 | + } | |
| 126 | + }]; | |
| 127 | + } else if (state == MJRefreshStateRefreshing) { | |
| 128 | + MJRefreshDispatchAsyncOnMainQueue({ | |
| 129 | + [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{ | |
| 130 | + if (self.scrollView.panGestureRecognizer.state != UIGestureRecognizerStateCancelled) { | |
| 131 | + CGFloat top = self.scrollViewOriginalInset.top + self.mj_h; | |
| 132 | + // 增加滚动区域top | |
| 133 | + self.scrollView.mj_insetT = top; | |
| 134 | + // 设置滚动位置 | |
| 135 | + CGPoint offset = self.scrollView.contentOffset; | |
| 136 | + offset.y = -top; | |
| 137 | + [self.scrollView setContentOffset:offset animated:NO]; | |
| 138 | + } | |
| 139 | + } completion:^(BOOL finished) { | |
| 140 | + [self executeRefreshingCallback]; | |
| 141 | + }]; | |
| 142 | + }) | |
| 143 | + } | |
| 144 | +} | |
| 145 | + | |
| 146 | +#pragma mark - 公共方法 | |
| 147 | +- (NSDate *)lastUpdatedTime | |
| 148 | +{ | |
| 149 | + return [[NSUserDefaults standardUserDefaults] objectForKey:self.lastUpdatedTimeKey]; | |
| 150 | +} | |
| 151 | + | |
| 152 | +- (void)setIgnoredScrollViewContentInsetTop:(CGFloat)ignoredScrollViewContentInsetTop { | |
| 153 | + _ignoredScrollViewContentInsetTop = ignoredScrollViewContentInsetTop; | |
| 154 | + | |
| 155 | + self.mj_y = - self.mj_h - _ignoredScrollViewContentInsetTop; | |
| 156 | +} | |
| 157 | + | |
| 158 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshAutoGifFooter.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshAutoStateFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshAutoGifFooter : MJRefreshAutoStateFooter | |
| 12 | +@property (weak, nonatomic, readonly) UIImageView *gifView; | |
| 13 | + | |
| 14 | +/** 设置state状态下的动画图片images 动画持续时间duration*/ | |
| 15 | +- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; | |
| 16 | +- (void)setImages:(NSArray *)images forState:(MJRefreshState)state; | |
| 17 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshAutoGifFooter.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshAutoGifFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshAutoGifFooter() | |
| 12 | +{ | |
| 13 | + __unsafe_unretained UIImageView *_gifView; | |
| 14 | +} | |
| 15 | +/** 所有状态对应的动画图片 */ | |
| 16 | +@property (strong, nonatomic) NSMutableDictionary *stateImages; | |
| 17 | +/** 所有状态对应的动画时间 */ | |
| 18 | +@property (strong, nonatomic) NSMutableDictionary *stateDurations; | |
| 19 | +@end | |
| 20 | + | |
| 21 | +@implementation MJRefreshAutoGifFooter | |
| 22 | +#pragma mark - 懒加载 | |
| 23 | +- (UIImageView *)gifView | |
| 24 | +{ | |
| 25 | + if (!_gifView) { | |
| 26 | + UIImageView *gifView = [[UIImageView alloc] init]; | |
| 27 | + [self addSubview:_gifView = gifView]; | |
| 28 | + } | |
| 29 | + return _gifView; | |
| 30 | +} | |
| 31 | + | |
| 32 | +- (NSMutableDictionary *)stateImages | |
| 33 | +{ | |
| 34 | + if (!_stateImages) { | |
| 35 | + self.stateImages = [NSMutableDictionary dictionary]; | |
| 36 | + } | |
| 37 | + return _stateImages; | |
| 38 | +} | |
| 39 | + | |
| 40 | +- (NSMutableDictionary *)stateDurations | |
| 41 | +{ | |
| 42 | + if (!_stateDurations) { | |
| 43 | + self.stateDurations = [NSMutableDictionary dictionary]; | |
| 44 | + } | |
| 45 | + return _stateDurations; | |
| 46 | +} | |
| 47 | + | |
| 48 | +#pragma mark - 公共方法 | |
| 49 | +- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state | |
| 50 | +{ | |
| 51 | + if (images == nil) return; | |
| 52 | + | |
| 53 | + self.stateImages[@(state)] = images; | |
| 54 | + self.stateDurations[@(state)] = @(duration); | |
| 55 | + | |
| 56 | + /* 根据图片设置控件的高度 */ | |
| 57 | + UIImage *image = [images firstObject]; | |
| 58 | + if (image.size.height > self.mj_h) { | |
| 59 | + self.mj_h = image.size.height; | |
| 60 | + } | |
| 61 | +} | |
| 62 | + | |
| 63 | +- (void)setImages:(NSArray *)images forState:(MJRefreshState)state | |
| 64 | +{ | |
| 65 | + [self setImages:images duration:images.count * 0.1 forState:state]; | |
| 66 | +} | |
| 67 | + | |
| 68 | +#pragma mark - 实现父类的方法 | |
| 69 | +- (void)prepare | |
| 70 | +{ | |
| 71 | + [super prepare]; | |
| 72 | + | |
| 73 | + // 初始化间距 | |
| 74 | + self.labelLeftInset = 20; | |
| 75 | +} | |
| 76 | + | |
| 77 | +- (void)placeSubviews | |
| 78 | +{ | |
| 79 | + [super placeSubviews]; | |
| 80 | + | |
| 81 | + if (self.gifView.constraints.count) return; | |
| 82 | + | |
| 83 | + self.gifView.frame = self.bounds; | |
| 84 | + if (self.isRefreshingTitleHidden) { | |
| 85 | + self.gifView.contentMode = UIViewContentModeCenter; | |
| 86 | + } else { | |
| 87 | + self.gifView.contentMode = UIViewContentModeRight; | |
| 88 | + self.gifView.mj_w = self.mj_w * 0.5 - self.labelLeftInset - self.stateLabel.mj_textWith * 0.5; | |
| 89 | + } | |
| 90 | +} | |
| 91 | + | |
| 92 | +- (void)setState:(MJRefreshState)state | |
| 93 | +{ | |
| 94 | + MJRefreshCheckState | |
| 95 | + | |
| 96 | + // 根据状态做事情 | |
| 97 | + if (state == MJRefreshStateRefreshing) { | |
| 98 | + NSArray *images = self.stateImages[@(state)]; | |
| 99 | + if (images.count == 0) return; | |
| 100 | + [self.gifView stopAnimating]; | |
| 101 | + | |
| 102 | + self.gifView.hidden = NO; | |
| 103 | + if (images.count == 1) { // 单张图片 | |
| 104 | + self.gifView.image = [images lastObject]; | |
| 105 | + } else { // 多张图片 | |
| 106 | + self.gifView.animationImages = images; | |
| 107 | + self.gifView.animationDuration = [self.stateDurations[@(state)] doubleValue]; | |
| 108 | + [self.gifView startAnimating]; | |
| 109 | + } | |
| 110 | + } else if (state == MJRefreshStateNoMoreData || state == MJRefreshStateIdle) { | |
| 111 | + [self.gifView stopAnimating]; | |
| 112 | + self.gifView.hidden = YES; | |
| 113 | + } | |
| 114 | +} | |
| 115 | +@end | |
| 116 | + | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshAutoNormalFooter.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshAutoStateFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshAutoNormalFooter : MJRefreshAutoStateFooter | |
| 12 | +/** 菊花的样式 */ | |
| 13 | +@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle; | |
| 14 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshAutoNormalFooter.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshAutoNormalFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshAutoNormalFooter() | |
| 12 | +@property (weak, nonatomic) UIActivityIndicatorView *loadingView; | |
| 13 | +@end | |
| 14 | + | |
| 15 | +@implementation MJRefreshAutoNormalFooter | |
| 16 | +#pragma mark - 懒加载子控件 | |
| 17 | +- (UIActivityIndicatorView *)loadingView | |
| 18 | +{ | |
| 19 | + if (!_loadingView) { | |
| 20 | + UIActivityIndicatorView *loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:self.activityIndicatorViewStyle]; | |
| 21 | + loadingView.hidesWhenStopped = YES; | |
| 22 | + [self addSubview:_loadingView = loadingView]; | |
| 23 | + } | |
| 24 | + return _loadingView; | |
| 25 | +} | |
| 26 | + | |
| 27 | +- (void)setActivityIndicatorViewStyle:(UIActivityIndicatorViewStyle)activityIndicatorViewStyle | |
| 28 | +{ | |
| 29 | + _activityIndicatorViewStyle = activityIndicatorViewStyle; | |
| 30 | + | |
| 31 | + self.loadingView = nil; | |
| 32 | + [self setNeedsLayout]; | |
| 33 | +} | |
| 34 | +#pragma mark - 重写父类的方法 | |
| 35 | +- (void)prepare | |
| 36 | +{ | |
| 37 | + [super prepare]; | |
| 38 | + | |
| 39 | + self.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray; | |
| 40 | +} | |
| 41 | + | |
| 42 | +- (void)placeSubviews | |
| 43 | +{ | |
| 44 | + [super placeSubviews]; | |
| 45 | + | |
| 46 | + if (self.loadingView.constraints.count) return; | |
| 47 | + | |
| 48 | + // 圈圈 | |
| 49 | + CGFloat loadingCenterX = self.mj_w * 0.5; | |
| 50 | + if (!self.isRefreshingTitleHidden) { | |
| 51 | + loadingCenterX -= self.stateLabel.mj_textWith * 0.5 + self.labelLeftInset; | |
| 52 | + } | |
| 53 | + CGFloat loadingCenterY = self.mj_h * 0.5; | |
| 54 | + self.loadingView.center = CGPointMake(loadingCenterX, loadingCenterY); | |
| 55 | +} | |
| 56 | + | |
| 57 | +- (void)setState:(MJRefreshState)state | |
| 58 | +{ | |
| 59 | + MJRefreshCheckState | |
| 60 | + | |
| 61 | + // 根据状态做事情 | |
| 62 | + if (state == MJRefreshStateNoMoreData || state == MJRefreshStateIdle) { | |
| 63 | + [self.loadingView stopAnimating]; | |
| 64 | + } else if (state == MJRefreshStateRefreshing) { | |
| 65 | + [self.loadingView startAnimating]; | |
| 66 | + } | |
| 67 | +} | |
| 68 | + | |
| 69 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshAutoStateFooter.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/6/13. | |
| 6 | +// Copyright © 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshAutoFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshAutoStateFooter : MJRefreshAutoFooter | |
| 12 | +/** 文字距离圈圈、箭头的距离 */ | |
| 13 | +@property (assign, nonatomic) CGFloat labelLeftInset; | |
| 14 | +/** 显示刷新状态的label */ | |
| 15 | +@property (weak, nonatomic, readonly) UILabel *stateLabel; | |
| 16 | + | |
| 17 | +/** 设置state状态下的文字 */ | |
| 18 | +- (void)setTitle:(NSString *)title forState:(MJRefreshState)state; | |
| 19 | + | |
| 20 | +/** 隐藏刷新状态的文字 */ | |
| 21 | +@property (assign, nonatomic, getter=isRefreshingTitleHidden) BOOL refreshingTitleHidden; | |
| 22 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshAutoStateFooter.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/6/13. | |
| 6 | +// Copyright © 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshAutoStateFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshAutoStateFooter() | |
| 12 | +{ | |
| 13 | + /** 显示刷新状态的label */ | |
| 14 | + __unsafe_unretained UILabel *_stateLabel; | |
| 15 | +} | |
| 16 | +/** 所有状态对应的文字 */ | |
| 17 | +@property (strong, nonatomic) NSMutableDictionary *stateTitles; | |
| 18 | +@end | |
| 19 | + | |
| 20 | +@implementation MJRefreshAutoStateFooter | |
| 21 | +#pragma mark - 懒加载 | |
| 22 | +- (NSMutableDictionary *)stateTitles | |
| 23 | +{ | |
| 24 | + if (!_stateTitles) { | |
| 25 | + self.stateTitles = [NSMutableDictionary dictionary]; | |
| 26 | + } | |
| 27 | + return _stateTitles; | |
| 28 | +} | |
| 29 | + | |
| 30 | +- (UILabel *)stateLabel | |
| 31 | +{ | |
| 32 | + if (!_stateLabel) { | |
| 33 | + [self addSubview:_stateLabel = [UILabel mj_label]]; | |
| 34 | + } | |
| 35 | + return _stateLabel; | |
| 36 | +} | |
| 37 | + | |
| 38 | +#pragma mark - 公共方法 | |
| 39 | +- (void)setTitle:(NSString *)title forState:(MJRefreshState)state | |
| 40 | +{ | |
| 41 | + if (title == nil) return; | |
| 42 | + self.stateTitles[@(state)] = title; | |
| 43 | + self.stateLabel.text = self.stateTitles[@(self.state)]; | |
| 44 | +} | |
| 45 | + | |
| 46 | +#pragma mark - 私有方法 | |
| 47 | +- (void)stateLabelClick | |
| 48 | +{ | |
| 49 | + if (self.state == MJRefreshStateIdle) { | |
| 50 | + [self beginRefreshing]; | |
| 51 | + } | |
| 52 | +} | |
| 53 | + | |
| 54 | +#pragma mark - 重写父类的方法 | |
| 55 | +- (void)prepare | |
| 56 | +{ | |
| 57 | + [super prepare]; | |
| 58 | + | |
| 59 | + // 初始化间距 | |
| 60 | + self.labelLeftInset = MJRefreshLabelLeftInset; | |
| 61 | + | |
| 62 | + // 初始化文字 | |
| 63 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshAutoFooterIdleText] forState:MJRefreshStateIdle]; | |
| 64 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshAutoFooterRefreshingText] forState:MJRefreshStateRefreshing]; | |
| 65 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshAutoFooterNoMoreDataText] forState:MJRefreshStateNoMoreData]; | |
| 66 | + | |
| 67 | + // 监听label | |
| 68 | + self.stateLabel.userInteractionEnabled = YES; | |
| 69 | + [self.stateLabel addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(stateLabelClick)]]; | |
| 70 | +} | |
| 71 | + | |
| 72 | +- (void)placeSubviews | |
| 73 | +{ | |
| 74 | + [super placeSubviews]; | |
| 75 | + | |
| 76 | + if (self.stateLabel.constraints.count) return; | |
| 77 | + | |
| 78 | + // 状态标签 | |
| 79 | + self.stateLabel.frame = self.bounds; | |
| 80 | +} | |
| 81 | + | |
| 82 | +- (void)setState:(MJRefreshState)state | |
| 83 | +{ | |
| 84 | + MJRefreshCheckState | |
| 85 | + | |
| 86 | + if (self.isRefreshingTitleHidden && state == MJRefreshStateRefreshing) { | |
| 87 | + self.stateLabel.text = nil; | |
| 88 | + } else { | |
| 89 | + self.stateLabel.text = self.stateTitles[@(state)]; | |
| 90 | + } | |
| 91 | +} | |
| 92 | +@end | |
| 0 | 93 | \ No newline at end of file | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshBackGifFooter.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshBackStateFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshBackGifFooter : MJRefreshBackStateFooter | |
| 12 | +@property (weak, nonatomic, readonly) UIImageView *gifView; | |
| 13 | + | |
| 14 | +/** 设置state状态下的动画图片images 动画持续时间duration*/ | |
| 15 | +- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; | |
| 16 | +- (void)setImages:(NSArray *)images forState:(MJRefreshState)state; | |
| 17 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshBackGifFooter.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshBackGifFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshBackGifFooter() | |
| 12 | +{ | |
| 13 | + __unsafe_unretained UIImageView *_gifView; | |
| 14 | +} | |
| 15 | +/** 所有状态对应的动画图片 */ | |
| 16 | +@property (strong, nonatomic) NSMutableDictionary *stateImages; | |
| 17 | +/** 所有状态对应的动画时间 */ | |
| 18 | +@property (strong, nonatomic) NSMutableDictionary *stateDurations; | |
| 19 | +@end | |
| 20 | + | |
| 21 | +@implementation MJRefreshBackGifFooter | |
| 22 | +#pragma mark - 懒加载 | |
| 23 | +- (UIImageView *)gifView | |
| 24 | +{ | |
| 25 | + if (!_gifView) { | |
| 26 | + UIImageView *gifView = [[UIImageView alloc] init]; | |
| 27 | + [self addSubview:_gifView = gifView]; | |
| 28 | + } | |
| 29 | + return _gifView; | |
| 30 | +} | |
| 31 | + | |
| 32 | +- (NSMutableDictionary *)stateImages | |
| 33 | +{ | |
| 34 | + if (!_stateImages) { | |
| 35 | + self.stateImages = [NSMutableDictionary dictionary]; | |
| 36 | + } | |
| 37 | + return _stateImages; | |
| 38 | +} | |
| 39 | + | |
| 40 | +- (NSMutableDictionary *)stateDurations | |
| 41 | +{ | |
| 42 | + if (!_stateDurations) { | |
| 43 | + self.stateDurations = [NSMutableDictionary dictionary]; | |
| 44 | + } | |
| 45 | + return _stateDurations; | |
| 46 | +} | |
| 47 | + | |
| 48 | +#pragma mark - 公共方法 | |
| 49 | +- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state | |
| 50 | +{ | |
| 51 | + if (images == nil) return; | |
| 52 | + | |
| 53 | + self.stateImages[@(state)] = images; | |
| 54 | + self.stateDurations[@(state)] = @(duration); | |
| 55 | + | |
| 56 | + /* 根据图片设置控件的高度 */ | |
| 57 | + UIImage *image = [images firstObject]; | |
| 58 | + if (image.size.height > self.mj_h) { | |
| 59 | + self.mj_h = image.size.height; | |
| 60 | + } | |
| 61 | +} | |
| 62 | + | |
| 63 | +- (void)setImages:(NSArray *)images forState:(MJRefreshState)state | |
| 64 | +{ | |
| 65 | + [self setImages:images duration:images.count * 0.1 forState:state]; | |
| 66 | +} | |
| 67 | + | |
| 68 | +#pragma mark - 实现父类的方法 | |
| 69 | +- (void)prepare | |
| 70 | +{ | |
| 71 | + [super prepare]; | |
| 72 | + | |
| 73 | + // 初始化间距 | |
| 74 | + self.labelLeftInset = 20; | |
| 75 | +} | |
| 76 | + | |
| 77 | +- (void)setPullingPercent:(CGFloat)pullingPercent | |
| 78 | +{ | |
| 79 | + [super setPullingPercent:pullingPercent]; | |
| 80 | + NSArray *images = self.stateImages[@(MJRefreshStateIdle)]; | |
| 81 | + if (self.state != MJRefreshStateIdle || images.count == 0) return; | |
| 82 | + [self.gifView stopAnimating]; | |
| 83 | + NSUInteger index = images.count * pullingPercent; | |
| 84 | + if (index >= images.count) index = images.count - 1; | |
| 85 | + self.gifView.image = images[index]; | |
| 86 | +} | |
| 87 | + | |
| 88 | +- (void)placeSubviews | |
| 89 | +{ | |
| 90 | + [super placeSubviews]; | |
| 91 | + | |
| 92 | + if (self.gifView.constraints.count) return; | |
| 93 | + | |
| 94 | + self.gifView.frame = self.bounds; | |
| 95 | + if (self.stateLabel.hidden) { | |
| 96 | + self.gifView.contentMode = UIViewContentModeCenter; | |
| 97 | + } else { | |
| 98 | + self.gifView.contentMode = UIViewContentModeRight; | |
| 99 | + self.gifView.mj_w = self.mj_w * 0.5 - self.labelLeftInset - self.stateLabel.mj_textWith * 0.5; | |
| 100 | + } | |
| 101 | +} | |
| 102 | + | |
| 103 | +- (void)setState:(MJRefreshState)state | |
| 104 | +{ | |
| 105 | + MJRefreshCheckState | |
| 106 | + | |
| 107 | + // 根据状态做事情 | |
| 108 | + if (state == MJRefreshStatePulling || state == MJRefreshStateRefreshing) { | |
| 109 | + NSArray *images = self.stateImages[@(state)]; | |
| 110 | + if (images.count == 0) return; | |
| 111 | + | |
| 112 | + self.gifView.hidden = NO; | |
| 113 | + [self.gifView stopAnimating]; | |
| 114 | + if (images.count == 1) { // 单张图片 | |
| 115 | + self.gifView.image = [images lastObject]; | |
| 116 | + } else { // 多张图片 | |
| 117 | + self.gifView.animationImages = images; | |
| 118 | + self.gifView.animationDuration = [self.stateDurations[@(state)] doubleValue]; | |
| 119 | + [self.gifView startAnimating]; | |
| 120 | + } | |
| 121 | + } else if (state == MJRefreshStateIdle) { | |
| 122 | + self.gifView.hidden = NO; | |
| 123 | + } else if (state == MJRefreshStateNoMoreData) { | |
| 124 | + self.gifView.hidden = YES; | |
| 125 | + } | |
| 126 | +} | |
| 127 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshBackNormalFooter.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshBackStateFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshBackNormalFooter : MJRefreshBackStateFooter | |
| 12 | +@property (weak, nonatomic, readonly) UIImageView *arrowView; | |
| 13 | +/** 菊花的样式 */ | |
| 14 | +@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle; | |
| 15 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshBackNormalFooter.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshBackNormalFooter.h" | |
| 10 | +#import "NSBundle+MJRefresh.h" | |
| 11 | + | |
| 12 | +@interface MJRefreshBackNormalFooter() | |
| 13 | +{ | |
| 14 | + __unsafe_unretained UIImageView *_arrowView; | |
| 15 | +} | |
| 16 | +@property (weak, nonatomic) UIActivityIndicatorView *loadingView; | |
| 17 | +@end | |
| 18 | + | |
| 19 | +@implementation MJRefreshBackNormalFooter | |
| 20 | +#pragma mark - 懒加载子控件 | |
| 21 | +- (UIImageView *)arrowView | |
| 22 | +{ | |
| 23 | + if (!_arrowView) { | |
| 24 | + UIImageView *arrowView = [[UIImageView alloc] initWithImage:[NSBundle mj_arrowImage]]; | |
| 25 | + [self addSubview:_arrowView = arrowView]; | |
| 26 | + } | |
| 27 | + return _arrowView; | |
| 28 | +} | |
| 29 | + | |
| 30 | + | |
| 31 | +- (UIActivityIndicatorView *)loadingView | |
| 32 | +{ | |
| 33 | + if (!_loadingView) { | |
| 34 | + UIActivityIndicatorView *loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:self.activityIndicatorViewStyle]; | |
| 35 | + loadingView.hidesWhenStopped = YES; | |
| 36 | + [self addSubview:_loadingView = loadingView]; | |
| 37 | + } | |
| 38 | + return _loadingView; | |
| 39 | +} | |
| 40 | + | |
| 41 | +- (void)setActivityIndicatorViewStyle:(UIActivityIndicatorViewStyle)activityIndicatorViewStyle | |
| 42 | +{ | |
| 43 | + _activityIndicatorViewStyle = activityIndicatorViewStyle; | |
| 44 | + | |
| 45 | + self.loadingView = nil; | |
| 46 | + [self setNeedsLayout]; | |
| 47 | +} | |
| 48 | +#pragma mark - 重写父类的方法 | |
| 49 | +- (void)prepare | |
| 50 | +{ | |
| 51 | + [super prepare]; | |
| 52 | + | |
| 53 | + self.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray; | |
| 54 | +} | |
| 55 | + | |
| 56 | +- (void)placeSubviews | |
| 57 | +{ | |
| 58 | + [super placeSubviews]; | |
| 59 | + | |
| 60 | + // 箭头的中心点 | |
| 61 | + CGFloat arrowCenterX = self.mj_w * 0.5; | |
| 62 | + if (!self.stateLabel.hidden) { | |
| 63 | + arrowCenterX -= self.labelLeftInset + self.stateLabel.mj_textWith * 0.5; | |
| 64 | + } | |
| 65 | + CGFloat arrowCenterY = self.mj_h * 0.5; | |
| 66 | + CGPoint arrowCenter = CGPointMake(arrowCenterX, arrowCenterY); | |
| 67 | + | |
| 68 | + // 箭头 | |
| 69 | + if (self.arrowView.constraints.count == 0) { | |
| 70 | + self.arrowView.mj_size = self.arrowView.image.size; | |
| 71 | + self.arrowView.center = arrowCenter; | |
| 72 | + } | |
| 73 | + | |
| 74 | + // 圈圈 | |
| 75 | + if (self.loadingView.constraints.count == 0) { | |
| 76 | + self.loadingView.center = arrowCenter; | |
| 77 | + } | |
| 78 | + | |
| 79 | + self.arrowView.tintColor = self.stateLabel.textColor; | |
| 80 | +} | |
| 81 | + | |
| 82 | +- (void)setState:(MJRefreshState)state | |
| 83 | +{ | |
| 84 | + MJRefreshCheckState | |
| 85 | + | |
| 86 | + // 根据状态做事情 | |
| 87 | + if (state == MJRefreshStateIdle) { | |
| 88 | + if (oldState == MJRefreshStateRefreshing) { | |
| 89 | + self.arrowView.transform = CGAffineTransformMakeRotation(0.000001 - M_PI); | |
| 90 | + [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{ | |
| 91 | + self.loadingView.alpha = 0.0; | |
| 92 | + } completion:^(BOOL finished) { | |
| 93 | + // 防止动画结束后,状态已经不是MJRefreshStateIdle | |
| 94 | + if (state != MJRefreshStateIdle) return; | |
| 95 | + | |
| 96 | + self.loadingView.alpha = 1.0; | |
| 97 | + [self.loadingView stopAnimating]; | |
| 98 | + | |
| 99 | + self.arrowView.hidden = NO; | |
| 100 | + }]; | |
| 101 | + } else { | |
| 102 | + self.arrowView.hidden = NO; | |
| 103 | + [self.loadingView stopAnimating]; | |
| 104 | + [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{ | |
| 105 | + self.arrowView.transform = CGAffineTransformMakeRotation(0.000001 - M_PI); | |
| 106 | + }]; | |
| 107 | + } | |
| 108 | + } else if (state == MJRefreshStatePulling) { | |
| 109 | + self.arrowView.hidden = NO; | |
| 110 | + [self.loadingView stopAnimating]; | |
| 111 | + [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{ | |
| 112 | + self.arrowView.transform = CGAffineTransformIdentity; | |
| 113 | + }]; | |
| 114 | + } else if (state == MJRefreshStateRefreshing) { | |
| 115 | + self.arrowView.hidden = YES; | |
| 116 | + [self.loadingView startAnimating]; | |
| 117 | + } else if (state == MJRefreshStateNoMoreData) { | |
| 118 | + self.arrowView.hidden = YES; | |
| 119 | + [self.loadingView stopAnimating]; | |
| 120 | + } | |
| 121 | +} | |
| 122 | + | |
| 123 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshBackStateFooter.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/6/13. | |
| 6 | +// Copyright © 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshBackFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshBackStateFooter : MJRefreshBackFooter | |
| 12 | +/** 文字距离圈圈、箭头的距离 */ | |
| 13 | +@property (assign, nonatomic) CGFloat labelLeftInset; | |
| 14 | +/** 显示刷新状态的label */ | |
| 15 | +@property (weak, nonatomic, readonly) UILabel *stateLabel; | |
| 16 | +/** 设置state状态下的文字 */ | |
| 17 | +- (void)setTitle:(NSString *)title forState:(MJRefreshState)state; | |
| 18 | + | |
| 19 | +/** 获取state状态下的title */ | |
| 20 | +- (NSString *)titleForState:(MJRefreshState)state; | |
| 21 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshBackStateFooter.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/6/13. | |
| 6 | +// Copyright © 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshBackStateFooter.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshBackStateFooter() | |
| 12 | +{ | |
| 13 | + /** 显示刷新状态的label */ | |
| 14 | + __unsafe_unretained UILabel *_stateLabel; | |
| 15 | +} | |
| 16 | +/** 所有状态对应的文字 */ | |
| 17 | +@property (strong, nonatomic) NSMutableDictionary *stateTitles; | |
| 18 | +@end | |
| 19 | + | |
| 20 | +@implementation MJRefreshBackStateFooter | |
| 21 | +#pragma mark - 懒加载 | |
| 22 | +- (NSMutableDictionary *)stateTitles | |
| 23 | +{ | |
| 24 | + if (!_stateTitles) { | |
| 25 | + self.stateTitles = [NSMutableDictionary dictionary]; | |
| 26 | + } | |
| 27 | + return _stateTitles; | |
| 28 | +} | |
| 29 | + | |
| 30 | +- (UILabel *)stateLabel | |
| 31 | +{ | |
| 32 | + if (!_stateLabel) { | |
| 33 | + [self addSubview:_stateLabel = [UILabel mj_label]]; | |
| 34 | + } | |
| 35 | + return _stateLabel; | |
| 36 | +} | |
| 37 | + | |
| 38 | +#pragma mark - 公共方法 | |
| 39 | +- (void)setTitle:(NSString *)title forState:(MJRefreshState)state | |
| 40 | +{ | |
| 41 | + if (title == nil) return; | |
| 42 | + self.stateTitles[@(state)] = title; | |
| 43 | + self.stateLabel.text = self.stateTitles[@(self.state)]; | |
| 44 | +} | |
| 45 | + | |
| 46 | +- (NSString *)titleForState:(MJRefreshState)state { | |
| 47 | + return self.stateTitles[@(state)]; | |
| 48 | +} | |
| 49 | + | |
| 50 | +#pragma mark - 重写父类的方法 | |
| 51 | +- (void)prepare | |
| 52 | +{ | |
| 53 | + [super prepare]; | |
| 54 | + | |
| 55 | + // 初始化间距 | |
| 56 | + self.labelLeftInset = MJRefreshLabelLeftInset; | |
| 57 | + | |
| 58 | + // 初始化文字 | |
| 59 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterIdleText] forState:MJRefreshStateIdle]; | |
| 60 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterPullingText] forState:MJRefreshStatePulling]; | |
| 61 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterRefreshingText] forState:MJRefreshStateRefreshing]; | |
| 62 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterNoMoreDataText] forState:MJRefreshStateNoMoreData]; | |
| 63 | +} | |
| 64 | + | |
| 65 | +- (void)placeSubviews | |
| 66 | +{ | |
| 67 | + [super placeSubviews]; | |
| 68 | + | |
| 69 | + if (self.stateLabel.constraints.count) return; | |
| 70 | + | |
| 71 | + // 状态标签 | |
| 72 | + self.stateLabel.frame = self.bounds; | |
| 73 | +} | |
| 74 | + | |
| 75 | +- (void)setState:(MJRefreshState)state | |
| 76 | +{ | |
| 77 | + MJRefreshCheckState | |
| 78 | + | |
| 79 | + // 设置状态文字 | |
| 80 | + self.stateLabel.text = self.stateTitles[@(state)]; | |
| 81 | +} | |
| 82 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshGifHeader.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshGifHeader.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshStateHeader.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshGifHeader : MJRefreshStateHeader | |
| 12 | +@property (weak, nonatomic, readonly) UIImageView *gifView; | |
| 13 | + | |
| 14 | +/** 设置state状态下的动画图片images 动画持续时间duration*/ | |
| 15 | +- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; | |
| 16 | +- (void)setImages:(NSArray *)images forState:(MJRefreshState)state; | |
| 17 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshGifHeader.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshGifHeader.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshGifHeader.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshGifHeader() | |
| 12 | +{ | |
| 13 | + __unsafe_unretained UIImageView *_gifView; | |
| 14 | +} | |
| 15 | +/** 所有状态对应的动画图片 */ | |
| 16 | +@property (strong, nonatomic) NSMutableDictionary *stateImages; | |
| 17 | +/** 所有状态对应的动画时间 */ | |
| 18 | +@property (strong, nonatomic) NSMutableDictionary *stateDurations; | |
| 19 | +@end | |
| 20 | + | |
| 21 | +@implementation MJRefreshGifHeader | |
| 22 | +#pragma mark - 懒加载 | |
| 23 | +- (UIImageView *)gifView | |
| 24 | +{ | |
| 25 | + if (!_gifView) { | |
| 26 | + UIImageView *gifView = [[UIImageView alloc] init]; | |
| 27 | + [self addSubview:_gifView = gifView]; | |
| 28 | + } | |
| 29 | + return _gifView; | |
| 30 | +} | |
| 31 | + | |
| 32 | +- (NSMutableDictionary *)stateImages | |
| 33 | +{ | |
| 34 | + if (!_stateImages) { | |
| 35 | + self.stateImages = [NSMutableDictionary dictionary]; | |
| 36 | + } | |
| 37 | + return _stateImages; | |
| 38 | +} | |
| 39 | + | |
| 40 | +- (NSMutableDictionary *)stateDurations | |
| 41 | +{ | |
| 42 | + if (!_stateDurations) { | |
| 43 | + self.stateDurations = [NSMutableDictionary dictionary]; | |
| 44 | + } | |
| 45 | + return _stateDurations; | |
| 46 | +} | |
| 47 | + | |
| 48 | +#pragma mark - 公共方法 | |
| 49 | +- (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state | |
| 50 | +{ | |
| 51 | + if (images == nil) return; | |
| 52 | + | |
| 53 | + self.stateImages[@(state)] = images; | |
| 54 | + self.stateDurations[@(state)] = @(duration); | |
| 55 | + | |
| 56 | + /* 根据图片设置控件的高度 */ | |
| 57 | + UIImage *image = [images firstObject]; | |
| 58 | + if (image.size.height > self.mj_h) { | |
| 59 | + self.mj_h = image.size.height; | |
| 60 | + } | |
| 61 | +} | |
| 62 | + | |
| 63 | +- (void)setImages:(NSArray *)images forState:(MJRefreshState)state | |
| 64 | +{ | |
| 65 | + [self setImages:images duration:images.count * 0.1 forState:state]; | |
| 66 | +} | |
| 67 | + | |
| 68 | +#pragma mark - 实现父类的方法 | |
| 69 | +- (void)prepare | |
| 70 | +{ | |
| 71 | + [super prepare]; | |
| 72 | + | |
| 73 | + // 初始化间距 | |
| 74 | + self.labelLeftInset = 20; | |
| 75 | +} | |
| 76 | + | |
| 77 | +- (void)setPullingPercent:(CGFloat)pullingPercent | |
| 78 | +{ | |
| 79 | + [super setPullingPercent:pullingPercent]; | |
| 80 | + NSArray *images = self.stateImages[@(MJRefreshStateIdle)]; | |
| 81 | + if (self.state != MJRefreshStateIdle || images.count == 0) return; | |
| 82 | + // 停止动画 | |
| 83 | + [self.gifView stopAnimating]; | |
| 84 | + // 设置当前需要显示的图片 | |
| 85 | + NSUInteger index = images.count * pullingPercent; | |
| 86 | + if (index >= images.count) index = images.count - 1; | |
| 87 | + self.gifView.image = images[index]; | |
| 88 | +} | |
| 89 | + | |
| 90 | +- (void)placeSubviews | |
| 91 | +{ | |
| 92 | + [super placeSubviews]; | |
| 93 | + | |
| 94 | + if (self.gifView.constraints.count) return; | |
| 95 | + | |
| 96 | + self.gifView.frame = self.bounds; | |
| 97 | + if (self.stateLabel.hidden && self.lastUpdatedTimeLabel.hidden) { | |
| 98 | + self.gifView.contentMode = UIViewContentModeCenter; | |
| 99 | + } else { | |
| 100 | + self.gifView.contentMode = UIViewContentModeRight; | |
| 101 | + | |
| 102 | + CGFloat stateWidth = self.stateLabel.mj_textWith; | |
| 103 | + CGFloat timeWidth = 0.0; | |
| 104 | + if (!self.lastUpdatedTimeLabel.hidden) { | |
| 105 | + timeWidth = self.lastUpdatedTimeLabel.mj_textWith; | |
| 106 | + } | |
| 107 | + CGFloat textWidth = MAX(stateWidth, timeWidth); | |
| 108 | + self.gifView.mj_w = self.mj_w * 0.5 - textWidth * 0.5 - self.labelLeftInset; | |
| 109 | + } | |
| 110 | +} | |
| 111 | + | |
| 112 | +- (void)setState:(MJRefreshState)state | |
| 113 | +{ | |
| 114 | + MJRefreshCheckState | |
| 115 | + | |
| 116 | + // 根据状态做事情 | |
| 117 | + if (state == MJRefreshStatePulling || state == MJRefreshStateRefreshing) { | |
| 118 | + NSArray *images = self.stateImages[@(state)]; | |
| 119 | + if (images.count == 0) return; | |
| 120 | + | |
| 121 | + [self.gifView stopAnimating]; | |
| 122 | + if (images.count == 1) { // 单张图片 | |
| 123 | + self.gifView.image = [images lastObject]; | |
| 124 | + } else { // 多张图片 | |
| 125 | + self.gifView.animationImages = images; | |
| 126 | + self.gifView.animationDuration = [self.stateDurations[@(state)] doubleValue]; | |
| 127 | + [self.gifView startAnimating]; | |
| 128 | + } | |
| 129 | + } else if (state == MJRefreshStateIdle) { | |
| 130 | + [self.gifView stopAnimating]; | |
| 131 | + } | |
| 132 | +} | |
| 133 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshNormalHeader.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshNormalHeader.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshStateHeader.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshNormalHeader : MJRefreshStateHeader | |
| 12 | +@property (weak, nonatomic, readonly) UIImageView *arrowView; | |
| 13 | +/** 菊花的样式 */ | |
| 14 | +@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle; | |
| 15 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshNormalHeader.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshNormalHeader.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshNormalHeader.h" | |
| 10 | +#import "NSBundle+MJRefresh.h" | |
| 11 | + | |
| 12 | +@interface MJRefreshNormalHeader() | |
| 13 | +{ | |
| 14 | + __unsafe_unretained UIImageView *_arrowView; | |
| 15 | +} | |
| 16 | +@property (weak, nonatomic) UIActivityIndicatorView *loadingView; | |
| 17 | +@end | |
| 18 | + | |
| 19 | +@implementation MJRefreshNormalHeader | |
| 20 | +#pragma mark - 懒加载子控件 | |
| 21 | +- (UIImageView *)arrowView | |
| 22 | +{ | |
| 23 | + if (!_arrowView) { | |
| 24 | + UIImageView *arrowView = [[UIImageView alloc] initWithImage:[NSBundle mj_arrowImage]]; | |
| 25 | + [self addSubview:_arrowView = arrowView]; | |
| 26 | + } | |
| 27 | + return _arrowView; | |
| 28 | +} | |
| 29 | + | |
| 30 | +- (UIActivityIndicatorView *)loadingView | |
| 31 | +{ | |
| 32 | + if (!_loadingView) { | |
| 33 | + UIActivityIndicatorView *loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:self.activityIndicatorViewStyle]; | |
| 34 | + loadingView.hidesWhenStopped = YES; | |
| 35 | + [self addSubview:_loadingView = loadingView]; | |
| 36 | + } | |
| 37 | + return _loadingView; | |
| 38 | +} | |
| 39 | + | |
| 40 | +#pragma mark - 公共方法 | |
| 41 | +- (void)setActivityIndicatorViewStyle:(UIActivityIndicatorViewStyle)activityIndicatorViewStyle | |
| 42 | +{ | |
| 43 | + _activityIndicatorViewStyle = activityIndicatorViewStyle; | |
| 44 | + | |
| 45 | + self.loadingView = nil; | |
| 46 | + [self setNeedsLayout]; | |
| 47 | +} | |
| 48 | + | |
| 49 | +#pragma mark - 重写父类的方法 | |
| 50 | +- (void)prepare | |
| 51 | +{ | |
| 52 | + [super prepare]; | |
| 53 | + | |
| 54 | + self.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray; | |
| 55 | +} | |
| 56 | + | |
| 57 | +- (void)placeSubviews | |
| 58 | +{ | |
| 59 | + [super placeSubviews]; | |
| 60 | + | |
| 61 | + // 箭头的中心点 | |
| 62 | + CGFloat arrowCenterX = self.mj_w * 0.5; | |
| 63 | + if (!self.stateLabel.hidden) { | |
| 64 | + CGFloat stateWidth = self.stateLabel.mj_textWith; | |
| 65 | + CGFloat timeWidth = 0.0; | |
| 66 | + if (!self.lastUpdatedTimeLabel.hidden) { | |
| 67 | + timeWidth = self.lastUpdatedTimeLabel.mj_textWith; | |
| 68 | + } | |
| 69 | + CGFloat textWidth = MAX(stateWidth, timeWidth); | |
| 70 | + arrowCenterX -= textWidth / 2 + self.labelLeftInset; | |
| 71 | + } | |
| 72 | + CGFloat arrowCenterY = self.mj_h * 0.5; | |
| 73 | + CGPoint arrowCenter = CGPointMake(arrowCenterX, arrowCenterY); | |
| 74 | + | |
| 75 | + // 箭头 | |
| 76 | + if (self.arrowView.constraints.count == 0) { | |
| 77 | + self.arrowView.mj_size = self.arrowView.image.size; | |
| 78 | + self.arrowView.center = arrowCenter; | |
| 79 | + } | |
| 80 | + | |
| 81 | + // 圈圈 | |
| 82 | + if (self.loadingView.constraints.count == 0) { | |
| 83 | + self.loadingView.center = arrowCenter; | |
| 84 | + } | |
| 85 | + | |
| 86 | + self.arrowView.tintColor = self.stateLabel.textColor; | |
| 87 | +} | |
| 88 | + | |
| 89 | +- (void)setState:(MJRefreshState)state | |
| 90 | +{ | |
| 91 | + MJRefreshCheckState | |
| 92 | + | |
| 93 | + // 根据状态做事情 | |
| 94 | + if (state == MJRefreshStateIdle) { | |
| 95 | + if (oldState == MJRefreshStateRefreshing) { | |
| 96 | + self.arrowView.transform = CGAffineTransformIdentity; | |
| 97 | + | |
| 98 | + [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{ | |
| 99 | + self.loadingView.alpha = 0.0; | |
| 100 | + } completion:^(BOOL finished) { | |
| 101 | + // 如果执行完动画发现不是idle状态,就直接返回,进入其他状态 | |
| 102 | + if (self.state != MJRefreshStateIdle) return; | |
| 103 | + | |
| 104 | + self.loadingView.alpha = 1.0; | |
| 105 | + [self.loadingView stopAnimating]; | |
| 106 | + self.arrowView.hidden = NO; | |
| 107 | + }]; | |
| 108 | + } else { | |
| 109 | + [self.loadingView stopAnimating]; | |
| 110 | + self.arrowView.hidden = NO; | |
| 111 | + [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{ | |
| 112 | + self.arrowView.transform = CGAffineTransformIdentity; | |
| 113 | + }]; | |
| 114 | + } | |
| 115 | + } else if (state == MJRefreshStatePulling) { | |
| 116 | + [self.loadingView stopAnimating]; | |
| 117 | + self.arrowView.hidden = NO; | |
| 118 | + [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{ | |
| 119 | + self.arrowView.transform = CGAffineTransformMakeRotation(0.000001 - M_PI); | |
| 120 | + }]; | |
| 121 | + } else if (state == MJRefreshStateRefreshing) { | |
| 122 | + self.loadingView.alpha = 1.0; // 防止refreshing -> idle的动画完毕动作没有被执行 | |
| 123 | + [self.loadingView startAnimating]; | |
| 124 | + self.arrowView.hidden = YES; | |
| 125 | + } | |
| 126 | +} | |
| 127 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshStateHeader.h
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshStateHeader.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshHeader.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshStateHeader : MJRefreshHeader | |
| 12 | +#pragma mark - 刷新时间相关 | |
| 13 | +/** 利用这个block来决定显示的更新时间文字 */ | |
| 14 | +@property (copy, nonatomic) NSString *(^lastUpdatedTimeText)(NSDate *lastUpdatedTime); | |
| 15 | +/** 显示上一次刷新时间的label */ | |
| 16 | +@property (weak, nonatomic, readonly) UILabel *lastUpdatedTimeLabel; | |
| 17 | + | |
| 18 | +#pragma mark - 状态相关 | |
| 19 | +/** 文字距离圈圈、箭头的距离 */ | |
| 20 | +@property (assign, nonatomic) CGFloat labelLeftInset; | |
| 21 | +/** 显示刷新状态的label */ | |
| 22 | +@property (weak, nonatomic, readonly) UILabel *stateLabel; | |
| 23 | +/** 设置state状态下的文字 */ | |
| 24 | +- (void)setTitle:(NSString *)title forState:(MJRefreshState)state; | |
| 25 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshStateHeader.m
0 → 100644
| 1 | +// | |
| 2 | +// MJRefreshStateHeader.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 15/4/24. | |
| 6 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "MJRefreshStateHeader.h" | |
| 10 | + | |
| 11 | +@interface MJRefreshStateHeader() | |
| 12 | +{ | |
| 13 | + /** 显示上一次刷新时间的label */ | |
| 14 | + __unsafe_unretained UILabel *_lastUpdatedTimeLabel; | |
| 15 | + /** 显示刷新状态的label */ | |
| 16 | + __unsafe_unretained UILabel *_stateLabel; | |
| 17 | +} | |
| 18 | +/** 所有状态对应的文字 */ | |
| 19 | +@property (strong, nonatomic) NSMutableDictionary *stateTitles; | |
| 20 | +@end | |
| 21 | + | |
| 22 | +@implementation MJRefreshStateHeader | |
| 23 | +#pragma mark - 懒加载 | |
| 24 | +- (NSMutableDictionary *)stateTitles | |
| 25 | +{ | |
| 26 | + if (!_stateTitles) { | |
| 27 | + self.stateTitles = [NSMutableDictionary dictionary]; | |
| 28 | + } | |
| 29 | + return _stateTitles; | |
| 30 | +} | |
| 31 | + | |
| 32 | +- (UILabel *)stateLabel | |
| 33 | +{ | |
| 34 | + if (!_stateLabel) { | |
| 35 | + [self addSubview:_stateLabel = [UILabel mj_label]]; | |
| 36 | + } | |
| 37 | + return _stateLabel; | |
| 38 | +} | |
| 39 | + | |
| 40 | +- (UILabel *)lastUpdatedTimeLabel | |
| 41 | +{ | |
| 42 | + if (!_lastUpdatedTimeLabel) { | |
| 43 | + [self addSubview:_lastUpdatedTimeLabel = [UILabel mj_label]]; | |
| 44 | + } | |
| 45 | + return _lastUpdatedTimeLabel; | |
| 46 | +} | |
| 47 | + | |
| 48 | +#pragma mark - 公共方法 | |
| 49 | +- (void)setTitle:(NSString *)title forState:(MJRefreshState)state | |
| 50 | +{ | |
| 51 | + if (title == nil) return; | |
| 52 | + self.stateTitles[@(state)] = title; | |
| 53 | + self.stateLabel.text = self.stateTitles[@(self.state)]; | |
| 54 | +} | |
| 55 | + | |
| 56 | +#pragma mark - 日历获取在9.x之后的系统使用currentCalendar会出异常。在8.0之后使用系统新API。 | |
| 57 | +- (NSCalendar *)currentCalendar { | |
| 58 | + if ([NSCalendar respondsToSelector:@selector(calendarWithIdentifier:)]) { | |
| 59 | + return [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian]; | |
| 60 | + } | |
| 61 | + return [NSCalendar currentCalendar]; | |
| 62 | +} | |
| 63 | + | |
| 64 | +#pragma mark key的处理 | |
| 65 | +- (void)setLastUpdatedTimeKey:(NSString *)lastUpdatedTimeKey | |
| 66 | +{ | |
| 67 | + [super setLastUpdatedTimeKey:lastUpdatedTimeKey]; | |
| 68 | + | |
| 69 | + // 如果label隐藏了,就不用再处理 | |
| 70 | + if (self.lastUpdatedTimeLabel.hidden) return; | |
| 71 | + | |
| 72 | + NSDate *lastUpdatedTime = [[NSUserDefaults standardUserDefaults] objectForKey:lastUpdatedTimeKey]; | |
| 73 | + | |
| 74 | + // 如果有block | |
| 75 | + if (self.lastUpdatedTimeText) { | |
| 76 | + self.lastUpdatedTimeLabel.text = self.lastUpdatedTimeText(lastUpdatedTime); | |
| 77 | + return; | |
| 78 | + } | |
| 79 | + | |
| 80 | + if (lastUpdatedTime) { | |
| 81 | + // 1.获得年月日 | |
| 82 | + NSCalendar *calendar = [self currentCalendar]; | |
| 83 | + NSUInteger unitFlags = NSCalendarUnitYear| NSCalendarUnitMonth | NSCalendarUnitDay |NSCalendarUnitHour |NSCalendarUnitMinute; | |
| 84 | + NSDateComponents *cmp1 = [calendar components:unitFlags fromDate:lastUpdatedTime]; | |
| 85 | + NSDateComponents *cmp2 = [calendar components:unitFlags fromDate:[NSDate date]]; | |
| 86 | + | |
| 87 | + // 2.格式化日期 | |
| 88 | + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; | |
| 89 | + BOOL isToday = NO; | |
| 90 | + if ([cmp1 day] == [cmp2 day]) { // 今天 | |
| 91 | + formatter.dateFormat = @" HH:mm"; | |
| 92 | + isToday = YES; | |
| 93 | + } else if ([cmp1 year] == [cmp2 year]) { // 今年 | |
| 94 | + formatter.dateFormat = @"MM-dd HH:mm"; | |
| 95 | + } else { | |
| 96 | + formatter.dateFormat = @"yyyy-MM-dd HH:mm"; | |
| 97 | + } | |
| 98 | + NSString *time = [formatter stringFromDate:lastUpdatedTime]; | |
| 99 | + | |
| 100 | + // 3.显示日期 | |
| 101 | + self.lastUpdatedTimeLabel.text = [NSString stringWithFormat:@"%@%@%@", | |
| 102 | + [NSBundle mj_localizedStringForKey:MJRefreshHeaderLastTimeText], | |
| 103 | + isToday ? [NSBundle mj_localizedStringForKey:MJRefreshHeaderDateTodayText] : @"", | |
| 104 | + time]; | |
| 105 | + } else { | |
| 106 | + self.lastUpdatedTimeLabel.text = [NSString stringWithFormat:@"%@%@", | |
| 107 | + [NSBundle mj_localizedStringForKey:MJRefreshHeaderLastTimeText], | |
| 108 | + [NSBundle mj_localizedStringForKey:MJRefreshHeaderNoneLastDateText]]; | |
| 109 | + } | |
| 110 | +} | |
| 111 | + | |
| 112 | +#pragma mark - 覆盖父类的方法 | |
| 113 | +- (void)prepare | |
| 114 | +{ | |
| 115 | + [super prepare]; | |
| 116 | + | |
| 117 | + // 初始化间距 | |
| 118 | + self.labelLeftInset = MJRefreshLabelLeftInset; | |
| 119 | + | |
| 120 | + // 初始化文字 | |
| 121 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshHeaderIdleText] forState:MJRefreshStateIdle]; | |
| 122 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshHeaderPullingText] forState:MJRefreshStatePulling]; | |
| 123 | + [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshHeaderRefreshingText] forState:MJRefreshStateRefreshing]; | |
| 124 | +} | |
| 125 | + | |
| 126 | +- (void)placeSubviews | |
| 127 | +{ | |
| 128 | + [super placeSubviews]; | |
| 129 | + | |
| 130 | + if (self.stateLabel.hidden) return; | |
| 131 | + | |
| 132 | + BOOL noConstrainsOnStatusLabel = self.stateLabel.constraints.count == 0; | |
| 133 | + | |
| 134 | + if (self.lastUpdatedTimeLabel.hidden) { | |
| 135 | + // 状态 | |
| 136 | + if (noConstrainsOnStatusLabel) self.stateLabel.frame = self.bounds; | |
| 137 | + } else { | |
| 138 | + CGFloat stateLabelH = self.mj_h * 0.5; | |
| 139 | + // 状态 | |
| 140 | + if (noConstrainsOnStatusLabel) { | |
| 141 | + self.stateLabel.mj_x = 0; | |
| 142 | + self.stateLabel.mj_y = 0; | |
| 143 | + self.stateLabel.mj_w = self.mj_w; | |
| 144 | + self.stateLabel.mj_h = stateLabelH; | |
| 145 | + } | |
| 146 | + | |
| 147 | + // 更新时间 | |
| 148 | + if (self.lastUpdatedTimeLabel.constraints.count == 0) { | |
| 149 | + self.lastUpdatedTimeLabel.mj_x = 0; | |
| 150 | + self.lastUpdatedTimeLabel.mj_y = stateLabelH; | |
| 151 | + self.lastUpdatedTimeLabel.mj_w = self.mj_w; | |
| 152 | + self.lastUpdatedTimeLabel.mj_h = self.mj_h - self.lastUpdatedTimeLabel.mj_y; | |
| 153 | + } | |
| 154 | + } | |
| 155 | +} | |
| 156 | + | |
| 157 | +- (void)setState:(MJRefreshState)state | |
| 158 | +{ | |
| 159 | + MJRefreshCheckState | |
| 160 | + | |
| 161 | + // 设置状态文字 | |
| 162 | + self.stateLabel.text = self.stateTitles[@(state)]; | |
| 163 | + | |
| 164 | + // 重新设置key(重新显示时间) | |
| 165 | + self.lastUpdatedTimeKey = self.lastUpdatedTimeKey; | |
| 166 | +} | |
| 167 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/arrow@2x.png
0 → 100755
1.01 KB
Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/en.lproj/Localizable.strings
0 → 100644
| 1 | +"MJRefreshHeaderIdleText" = "Pull down to refresh"; | |
| 2 | +"MJRefreshHeaderPullingText" = "Release to refresh"; | |
| 3 | +"MJRefreshHeaderRefreshingText" = "Loading..."; | |
| 4 | + | |
| 5 | +"MJRefreshAutoFooterIdleText" = "Tap or pull up to load more"; | |
| 6 | +"MJRefreshAutoFooterRefreshingText" = "Loading..."; | |
| 7 | +"MJRefreshAutoFooterNoMoreDataText" = "No more data"; | |
| 8 | + | |
| 9 | +"MJRefreshBackFooterIdleText" = "Pull up to load more"; | |
| 10 | +"MJRefreshBackFooterPullingText" = "Release to load more."; | |
| 11 | +"MJRefreshBackFooterRefreshingText" = "Loading..."; | |
| 12 | +"MJRefreshBackFooterNoMoreDataText" = "No more data"; | |
| 13 | + | |
| 14 | +"MJRefreshHeaderLastTimeText" = "Last updated: "; | |
| 15 | +"MJRefreshHeaderDateTodayText" = "Today"; | |
| 16 | +"MJRefreshHeaderNoneLastDateText" = "No record"; | ... | ... |
Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/zh-Hans.lproj/Localizable.strings
0 → 100644
Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/zh-Hant.lproj/Localizable.strings
0 → 100644
| 1 | +"MJRefreshHeaderIdleText" = "下拉可以刷新"; | |
| 2 | +"MJRefreshHeaderPullingText" = "鬆開立即刷新"; | |
| 3 | +"MJRefreshHeaderRefreshingText" = "正在刷新數據中..."; | |
| 4 | + | |
| 5 | +"MJRefreshAutoFooterIdleText" = "點擊或上拉加載更多"; | |
| 6 | +"MJRefreshAutoFooterRefreshingText" = "正在加載更多的數據..."; | |
| 7 | +"MJRefreshAutoFooterNoMoreDataText" = "已經全部加載完畢"; | |
| 8 | + | |
| 9 | +"MJRefreshBackFooterIdleText" = "上拉可以加載更多"; | |
| 10 | +"MJRefreshBackFooterPullingText" = "鬆開立即加載更多"; | |
| 11 | +"MJRefreshBackFooterRefreshingText" = "正在加載更多的數據..."; | |
| 12 | +"MJRefreshBackFooterNoMoreDataText" = "已經全部加載完畢"; | |
| 13 | + | |
| 14 | +"MJRefreshHeaderLastTimeText" = "最後更新:"; | |
| 15 | +"MJRefreshHeaderDateTodayText" = "今天"; | |
| 16 | +"MJRefreshHeaderNoneLastDateText" = "無記錄"; | ... | ... |
Example/Pods/MJRefresh/MJRefresh/MJRefresh.h
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | + | |
| 4 | +#import "UIScrollView+MJRefresh.h" | |
| 5 | +#import "UIScrollView+MJExtension.h" | |
| 6 | +#import "UIView+MJExtension.h" | |
| 7 | + | |
| 8 | +#import "MJRefreshNormalHeader.h" | |
| 9 | +#import "MJRefreshGifHeader.h" | |
| 10 | + | |
| 11 | +#import "MJRefreshBackNormalFooter.h" | |
| 12 | +#import "MJRefreshBackGifFooter.h" | |
| 13 | +#import "MJRefreshAutoNormalFooter.h" | |
| 14 | +#import "MJRefreshAutoGifFooter.h" | |
| 0 | 15 | \ No newline at end of file | ... | ... |
Example/Pods/MJRefresh/MJRefresh/MJRefreshConst.h
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +#import <UIKit/UIKit.h> | |
| 4 | +#import <objc/message.h> | |
| 5 | + | |
| 6 | +// 弱引用 | |
| 7 | +#define MJWeakSelf __weak typeof(self) weakSelf = self; | |
| 8 | + | |
| 9 | +// 日志输出 | |
| 10 | +#ifdef DEBUG | |
| 11 | +#define MJRefreshLog(...) NSLog(__VA_ARGS__) | |
| 12 | +#else | |
| 13 | +#define MJRefreshLog(...) | |
| 14 | +#endif | |
| 15 | + | |
| 16 | +// 过期提醒 | |
| 17 | +#define MJRefreshDeprecated(instead) NS_DEPRECATED(2_0, 2_0, 2_0, 2_0, instead) | |
| 18 | + | |
| 19 | +// 运行时objc_msgSend | |
| 20 | +#define MJRefreshMsgSend(...) ((void (*)(void *, SEL, UIView *))objc_msgSend)(__VA_ARGS__) | |
| 21 | +#define MJRefreshMsgTarget(target) (__bridge void *)(target) | |
| 22 | + | |
| 23 | +// RGB颜色 | |
| 24 | +#define MJRefreshColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0] | |
| 25 | + | |
| 26 | +// 文字颜色 | |
| 27 | +#define MJRefreshLabelTextColor MJRefreshColor(90, 90, 90) | |
| 28 | + | |
| 29 | +// 字体大小 | |
| 30 | +#define MJRefreshLabelFont [UIFont boldSystemFontOfSize:14] | |
| 31 | + | |
| 32 | +// 常量 | |
| 33 | +UIKIT_EXTERN const CGFloat MJRefreshLabelLeftInset; | |
| 34 | +UIKIT_EXTERN const CGFloat MJRefreshHeaderHeight; | |
| 35 | +UIKIT_EXTERN const CGFloat MJRefreshFooterHeight; | |
| 36 | +UIKIT_EXTERN const CGFloat MJRefreshFastAnimationDuration; | |
| 37 | +UIKIT_EXTERN const CGFloat MJRefreshSlowAnimationDuration; | |
| 38 | + | |
| 39 | +UIKIT_EXTERN NSString *const MJRefreshKeyPathContentOffset; | |
| 40 | +UIKIT_EXTERN NSString *const MJRefreshKeyPathContentSize; | |
| 41 | +UIKIT_EXTERN NSString *const MJRefreshKeyPathContentInset; | |
| 42 | +UIKIT_EXTERN NSString *const MJRefreshKeyPathPanState; | |
| 43 | + | |
| 44 | +UIKIT_EXTERN NSString *const MJRefreshHeaderLastUpdatedTimeKey; | |
| 45 | + | |
| 46 | +UIKIT_EXTERN NSString *const MJRefreshHeaderIdleText; | |
| 47 | +UIKIT_EXTERN NSString *const MJRefreshHeaderPullingText; | |
| 48 | +UIKIT_EXTERN NSString *const MJRefreshHeaderRefreshingText; | |
| 49 | + | |
| 50 | +UIKIT_EXTERN NSString *const MJRefreshAutoFooterIdleText; | |
| 51 | +UIKIT_EXTERN NSString *const MJRefreshAutoFooterRefreshingText; | |
| 52 | +UIKIT_EXTERN NSString *const MJRefreshAutoFooterNoMoreDataText; | |
| 53 | + | |
| 54 | +UIKIT_EXTERN NSString *const MJRefreshBackFooterIdleText; | |
| 55 | +UIKIT_EXTERN NSString *const MJRefreshBackFooterPullingText; | |
| 56 | +UIKIT_EXTERN NSString *const MJRefreshBackFooterRefreshingText; | |
| 57 | +UIKIT_EXTERN NSString *const MJRefreshBackFooterNoMoreDataText; | |
| 58 | + | |
| 59 | +UIKIT_EXTERN NSString *const MJRefreshHeaderLastTimeText; | |
| 60 | +UIKIT_EXTERN NSString *const MJRefreshHeaderDateTodayText; | |
| 61 | +UIKIT_EXTERN NSString *const MJRefreshHeaderNoneLastDateText; | |
| 62 | + | |
| 63 | +// 状态检查 | |
| 64 | +#define MJRefreshCheckState \ | |
| 65 | +MJRefreshState oldState = self.state; \ | |
| 66 | +if (state == oldState) return; \ | |
| 67 | +[super setState:state]; | |
| 68 | + | |
| 69 | +// 异步主线程执行,不强持有Self | |
| 70 | +#define MJRefreshDispatchAsyncOnMainQueue(x) \ | |
| 71 | +__weak typeof(self) weakSelf = self; \ | |
| 72 | +dispatch_async(dispatch_get_main_queue(), ^{ \ | |
| 73 | +typeof(weakSelf) self = weakSelf; \ | |
| 74 | +{x} \ | |
| 75 | +}); | |
| 76 | + | ... | ... |
Example/Pods/MJRefresh/MJRefresh/MJRefreshConst.m
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +#import <UIKit/UIKit.h> | |
| 4 | + | |
| 5 | +const CGFloat MJRefreshLabelLeftInset = 25; | |
| 6 | +const CGFloat MJRefreshHeaderHeight = 54.0; | |
| 7 | +const CGFloat MJRefreshFooterHeight = 44.0; | |
| 8 | +const CGFloat MJRefreshFastAnimationDuration = 0.25; | |
| 9 | +const CGFloat MJRefreshSlowAnimationDuration = 0.4; | |
| 10 | + | |
| 11 | +NSString *const MJRefreshKeyPathContentOffset = @"contentOffset"; | |
| 12 | +NSString *const MJRefreshKeyPathContentInset = @"contentInset"; | |
| 13 | +NSString *const MJRefreshKeyPathContentSize = @"contentSize"; | |
| 14 | +NSString *const MJRefreshKeyPathPanState = @"state"; | |
| 15 | + | |
| 16 | +NSString *const MJRefreshHeaderLastUpdatedTimeKey = @"MJRefreshHeaderLastUpdatedTimeKey"; | |
| 17 | + | |
| 18 | +NSString *const MJRefreshHeaderIdleText = @"MJRefreshHeaderIdleText"; | |
| 19 | +NSString *const MJRefreshHeaderPullingText = @"MJRefreshHeaderPullingText"; | |
| 20 | +NSString *const MJRefreshHeaderRefreshingText = @"MJRefreshHeaderRefreshingText"; | |
| 21 | + | |
| 22 | +NSString *const MJRefreshAutoFooterIdleText = @"MJRefreshAutoFooterIdleText"; | |
| 23 | +NSString *const MJRefreshAutoFooterRefreshingText = @"MJRefreshAutoFooterRefreshingText"; | |
| 24 | +NSString *const MJRefreshAutoFooterNoMoreDataText = @"MJRefreshAutoFooterNoMoreDataText"; | |
| 25 | + | |
| 26 | +NSString *const MJRefreshBackFooterIdleText = @"MJRefreshBackFooterIdleText"; | |
| 27 | +NSString *const MJRefreshBackFooterPullingText = @"MJRefreshBackFooterPullingText"; | |
| 28 | +NSString *const MJRefreshBackFooterRefreshingText = @"MJRefreshBackFooterRefreshingText"; | |
| 29 | +NSString *const MJRefreshBackFooterNoMoreDataText = @"MJRefreshBackFooterNoMoreDataText"; | |
| 30 | + | |
| 31 | +NSString *const MJRefreshHeaderLastTimeText = @"MJRefreshHeaderLastTimeText"; | |
| 32 | +NSString *const MJRefreshHeaderDateTodayText = @"MJRefreshHeaderDateTodayText"; | |
| 33 | +NSString *const MJRefreshHeaderNoneLastDateText = @"MJRefreshHeaderNoneLastDateText"; | |
| 0 | 34 | \ No newline at end of file | ... | ... |
Example/Pods/MJRefresh/MJRefresh/NSBundle+MJRefresh.h
0 → 100644
| 1 | +// | |
| 2 | +// NSBundle+MJRefresh.h | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 16/6/13. | |
| 6 | +// Copyright © 2016年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <UIKit/UIKit.h> | |
| 10 | + | |
| 11 | +@interface NSBundle (MJRefresh) | |
| 12 | ++ (instancetype)mj_refreshBundle; | |
| 13 | ++ (UIImage *)mj_arrowImage; | |
| 14 | ++ (NSString *)mj_localizedStringForKey:(NSString *)key value:(NSString *)value; | |
| 15 | ++ (NSString *)mj_localizedStringForKey:(NSString *)key; | |
| 16 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/NSBundle+MJRefresh.m
0 → 100644
| 1 | +// | |
| 2 | +// NSBundle+MJRefresh.m | |
| 3 | +// MJRefreshExample | |
| 4 | +// | |
| 5 | +// Created by MJ Lee on 16/6/13. | |
| 6 | +// Copyright © 2016年 小码哥. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "NSBundle+MJRefresh.h" | |
| 10 | +#import "MJRefreshComponent.h" | |
| 11 | + | |
| 12 | +@implementation NSBundle (MJRefresh) | |
| 13 | ++ (instancetype)mj_refreshBundle | |
| 14 | +{ | |
| 15 | + static NSBundle *refreshBundle = nil; | |
| 16 | + if (refreshBundle == nil) { | |
| 17 | + // 这里不使用mainBundle是为了适配pod 1.x和0.x | |
| 18 | + refreshBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[MJRefreshComponent class]] pathForResource:@"MJRefresh" ofType:@"bundle"]]; | |
| 19 | + } | |
| 20 | + return refreshBundle; | |
| 21 | +} | |
| 22 | + | |
| 23 | ++ (UIImage *)mj_arrowImage | |
| 24 | +{ | |
| 25 | + static UIImage *arrowImage = nil; | |
| 26 | + if (arrowImage == nil) { | |
| 27 | + arrowImage = [[UIImage imageWithContentsOfFile:[[self mj_refreshBundle] pathForResource:@"arrow@2x" ofType:@"png"]] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; | |
| 28 | + } | |
| 29 | + return arrowImage; | |
| 30 | +} | |
| 31 | + | |
| 32 | ++ (NSString *)mj_localizedStringForKey:(NSString *)key | |
| 33 | +{ | |
| 34 | + return [self mj_localizedStringForKey:key value:nil]; | |
| 35 | +} | |
| 36 | + | |
| 37 | ++ (NSString *)mj_localizedStringForKey:(NSString *)key value:(NSString *)value | |
| 38 | +{ | |
| 39 | + static NSBundle *bundle = nil; | |
| 40 | + if (bundle == nil) { | |
| 41 | + // (iOS获取的语言字符串比较不稳定)目前框架只处理en、zh-Hans、zh-Hant三种情况,其他按照系统默认处理 | |
| 42 | + NSString *language = [NSLocale preferredLanguages].firstObject; | |
| 43 | + if ([language hasPrefix:@"en"]) { | |
| 44 | + language = @"en"; | |
| 45 | + } else if ([language hasPrefix:@"zh"]) { | |
| 46 | + if ([language rangeOfString:@"Hans"].location != NSNotFound) { | |
| 47 | + language = @"zh-Hans"; // 简体中文 | |
| 48 | + } else { // zh-Hant\zh-HK\zh-TW | |
| 49 | + language = @"zh-Hant"; // 繁體中文 | |
| 50 | + } | |
| 51 | + } else { | |
| 52 | + language = @"en"; | |
| 53 | + } | |
| 54 | + | |
| 55 | + // 从MJRefresh.bundle中查找资源 | |
| 56 | + bundle = [NSBundle bundleWithPath:[[NSBundle mj_refreshBundle] pathForResource:language ofType:@"lproj"]]; | |
| 57 | + } | |
| 58 | + value = [bundle localizedStringForKey:key value:value table:nil]; | |
| 59 | + return [[NSBundle mainBundle] localizedStringForKey:key value:value table:nil]; | |
| 60 | +} | |
| 61 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/UIScrollView+MJExtension.h
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// UIScrollView+Extension.h | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 14-5-28. | |
| 7 | +// Copyright (c) 2014年 小码哥. All rights reserved. | |
| 8 | +// | |
| 9 | + | |
| 10 | +#import <UIKit/UIKit.h> | |
| 11 | + | |
| 12 | +@interface UIScrollView (MJExtension) | |
| 13 | +@property (readonly, nonatomic) UIEdgeInsets mj_inset; | |
| 14 | + | |
| 15 | +@property (assign, nonatomic) CGFloat mj_insetT; | |
| 16 | +@property (assign, nonatomic) CGFloat mj_insetB; | |
| 17 | +@property (assign, nonatomic) CGFloat mj_insetL; | |
| 18 | +@property (assign, nonatomic) CGFloat mj_insetR; | |
| 19 | + | |
| 20 | +@property (assign, nonatomic) CGFloat mj_offsetX; | |
| 21 | +@property (assign, nonatomic) CGFloat mj_offsetY; | |
| 22 | + | |
| 23 | +@property (assign, nonatomic) CGFloat mj_contentW; | |
| 24 | +@property (assign, nonatomic) CGFloat mj_contentH; | |
| 25 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/UIScrollView+MJExtension.m
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// UIScrollView+Extension.m | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 14-5-28. | |
| 7 | +// Copyright (c) 2014年 小码哥. All rights reserved. | |
| 8 | +// | |
| 9 | + | |
| 10 | +#import "UIScrollView+MJExtension.h" | |
| 11 | +#import <objc/runtime.h> | |
| 12 | + | |
| 13 | +#pragma clang diagnostic push | |
| 14 | +#pragma clang diagnostic ignored "-Wunguarded-availability-new" | |
| 15 | + | |
| 16 | +@implementation UIScrollView (MJExtension) | |
| 17 | + | |
| 18 | +static BOOL respondsToAdjustedContentInset_; | |
| 19 | + | |
| 20 | ++ (void)initialize | |
| 21 | +{ | |
| 22 | + static dispatch_once_t onceToken; | |
| 23 | + dispatch_once(&onceToken, ^{ | |
| 24 | + respondsToAdjustedContentInset_ = [self instancesRespondToSelector:@selector(adjustedContentInset)]; | |
| 25 | + }); | |
| 26 | +} | |
| 27 | + | |
| 28 | +- (UIEdgeInsets)mj_inset | |
| 29 | +{ | |
| 30 | +#ifdef __IPHONE_11_0 | |
| 31 | + if (respondsToAdjustedContentInset_) { | |
| 32 | + return self.adjustedContentInset; | |
| 33 | + } | |
| 34 | +#endif | |
| 35 | + return self.contentInset; | |
| 36 | +} | |
| 37 | + | |
| 38 | +- (void)setMj_insetT:(CGFloat)mj_insetT | |
| 39 | +{ | |
| 40 | + UIEdgeInsets inset = self.contentInset; | |
| 41 | + inset.top = mj_insetT; | |
| 42 | +#ifdef __IPHONE_11_0 | |
| 43 | + if (respondsToAdjustedContentInset_) { | |
| 44 | + inset.top -= (self.adjustedContentInset.top - self.contentInset.top); | |
| 45 | + } | |
| 46 | +#endif | |
| 47 | + self.contentInset = inset; | |
| 48 | +} | |
| 49 | + | |
| 50 | +- (CGFloat)mj_insetT | |
| 51 | +{ | |
| 52 | + return self.mj_inset.top; | |
| 53 | +} | |
| 54 | + | |
| 55 | +- (void)setMj_insetB:(CGFloat)mj_insetB | |
| 56 | +{ | |
| 57 | + UIEdgeInsets inset = self.contentInset; | |
| 58 | + inset.bottom = mj_insetB; | |
| 59 | +#ifdef __IPHONE_11_0 | |
| 60 | + if (respondsToAdjustedContentInset_) { | |
| 61 | + inset.bottom -= (self.adjustedContentInset.bottom - self.contentInset.bottom); | |
| 62 | + } | |
| 63 | +#endif | |
| 64 | + self.contentInset = inset; | |
| 65 | +} | |
| 66 | + | |
| 67 | +- (CGFloat)mj_insetB | |
| 68 | +{ | |
| 69 | + return self.mj_inset.bottom; | |
| 70 | +} | |
| 71 | + | |
| 72 | +- (void)setMj_insetL:(CGFloat)mj_insetL | |
| 73 | +{ | |
| 74 | + UIEdgeInsets inset = self.contentInset; | |
| 75 | + inset.left = mj_insetL; | |
| 76 | +#ifdef __IPHONE_11_0 | |
| 77 | + if (respondsToAdjustedContentInset_) { | |
| 78 | + inset.left -= (self.adjustedContentInset.left - self.contentInset.left); | |
| 79 | + } | |
| 80 | +#endif | |
| 81 | + self.contentInset = inset; | |
| 82 | +} | |
| 83 | + | |
| 84 | +- (CGFloat)mj_insetL | |
| 85 | +{ | |
| 86 | + return self.mj_inset.left; | |
| 87 | +} | |
| 88 | + | |
| 89 | +- (void)setMj_insetR:(CGFloat)mj_insetR | |
| 90 | +{ | |
| 91 | + UIEdgeInsets inset = self.contentInset; | |
| 92 | + inset.right = mj_insetR; | |
| 93 | +#ifdef __IPHONE_11_0 | |
| 94 | + if (respondsToAdjustedContentInset_) { | |
| 95 | + inset.right -= (self.adjustedContentInset.right - self.contentInset.right); | |
| 96 | + } | |
| 97 | +#endif | |
| 98 | + self.contentInset = inset; | |
| 99 | +} | |
| 100 | + | |
| 101 | +- (CGFloat)mj_insetR | |
| 102 | +{ | |
| 103 | + return self.mj_inset.right; | |
| 104 | +} | |
| 105 | + | |
| 106 | +- (void)setMj_offsetX:(CGFloat)mj_offsetX | |
| 107 | +{ | |
| 108 | + CGPoint offset = self.contentOffset; | |
| 109 | + offset.x = mj_offsetX; | |
| 110 | + self.contentOffset = offset; | |
| 111 | +} | |
| 112 | + | |
| 113 | +- (CGFloat)mj_offsetX | |
| 114 | +{ | |
| 115 | + return self.contentOffset.x; | |
| 116 | +} | |
| 117 | + | |
| 118 | +- (void)setMj_offsetY:(CGFloat)mj_offsetY | |
| 119 | +{ | |
| 120 | + CGPoint offset = self.contentOffset; | |
| 121 | + offset.y = mj_offsetY; | |
| 122 | + self.contentOffset = offset; | |
| 123 | +} | |
| 124 | + | |
| 125 | +- (CGFloat)mj_offsetY | |
| 126 | +{ | |
| 127 | + return self.contentOffset.y; | |
| 128 | +} | |
| 129 | + | |
| 130 | +- (void)setMj_contentW:(CGFloat)mj_contentW | |
| 131 | +{ | |
| 132 | + CGSize size = self.contentSize; | |
| 133 | + size.width = mj_contentW; | |
| 134 | + self.contentSize = size; | |
| 135 | +} | |
| 136 | + | |
| 137 | +- (CGFloat)mj_contentW | |
| 138 | +{ | |
| 139 | + return self.contentSize.width; | |
| 140 | +} | |
| 141 | + | |
| 142 | +- (void)setMj_contentH:(CGFloat)mj_contentH | |
| 143 | +{ | |
| 144 | + CGSize size = self.contentSize; | |
| 145 | + size.height = mj_contentH; | |
| 146 | + self.contentSize = size; | |
| 147 | +} | |
| 148 | + | |
| 149 | +- (CGFloat)mj_contentH | |
| 150 | +{ | |
| 151 | + return self.contentSize.height; | |
| 152 | +} | |
| 153 | +@end | |
| 154 | +#pragma clang diagnostic pop | ... | ... |
Example/Pods/MJRefresh/MJRefresh/UIScrollView+MJRefresh.h
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// UIScrollView+MJRefresh.h | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 15/3/4. | |
| 7 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 8 | +// 给ScrollView增加下拉刷新、上拉刷新的功能 | |
| 9 | + | |
| 10 | +#import <UIKit/UIKit.h> | |
| 11 | +#import "MJRefreshConst.h" | |
| 12 | + | |
| 13 | +@class MJRefreshHeader, MJRefreshFooter; | |
| 14 | + | |
| 15 | +@interface UIScrollView (MJRefresh) | |
| 16 | +/** 下拉刷新控件 */ | |
| 17 | +@property (strong, nonatomic) MJRefreshHeader *mj_header; | |
| 18 | +@property (strong, nonatomic) MJRefreshHeader *header MJRefreshDeprecated("使用mj_header"); | |
| 19 | +/** 上拉刷新控件 */ | |
| 20 | +@property (strong, nonatomic) MJRefreshFooter *mj_footer; | |
| 21 | +@property (strong, nonatomic) MJRefreshFooter *footer MJRefreshDeprecated("使用mj_footer"); | |
| 22 | + | |
| 23 | +#pragma mark - other | |
| 24 | +- (NSInteger)mj_totalDataCount; | |
| 25 | +@property (copy, nonatomic) void (^mj_reloadDataBlock)(NSInteger totalDataCount); | |
| 26 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/UIScrollView+MJRefresh.m
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// UIScrollView+MJRefresh.m | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 15/3/4. | |
| 7 | +// Copyright (c) 2015年 小码哥. All rights reserved. | |
| 8 | +// | |
| 9 | + | |
| 10 | +#import "UIScrollView+MJRefresh.h" | |
| 11 | +#import "MJRefreshHeader.h" | |
| 12 | +#import "MJRefreshFooter.h" | |
| 13 | +#import <objc/runtime.h> | |
| 14 | + | |
| 15 | +@implementation NSObject (MJRefresh) | |
| 16 | + | |
| 17 | ++ (void)exchangeInstanceMethod1:(SEL)method1 method2:(SEL)method2 | |
| 18 | +{ | |
| 19 | + method_exchangeImplementations(class_getInstanceMethod(self, method1), class_getInstanceMethod(self, method2)); | |
| 20 | +} | |
| 21 | + | |
| 22 | ++ (void)exchangeClassMethod1:(SEL)method1 method2:(SEL)method2 | |
| 23 | +{ | |
| 24 | + method_exchangeImplementations(class_getClassMethod(self, method1), class_getClassMethod(self, method2)); | |
| 25 | +} | |
| 26 | + | |
| 27 | +@end | |
| 28 | + | |
| 29 | +@implementation UIScrollView (MJRefresh) | |
| 30 | + | |
| 31 | +#pragma mark - header | |
| 32 | +static const char MJRefreshHeaderKey = '\0'; | |
| 33 | +- (void)setMj_header:(MJRefreshHeader *)mj_header | |
| 34 | +{ | |
| 35 | + if (mj_header != self.mj_header) { | |
| 36 | + // 删除旧的,添加新的 | |
| 37 | + [self.mj_header removeFromSuperview]; | |
| 38 | + [self insertSubview:mj_header atIndex:0]; | |
| 39 | + | |
| 40 | + // 存储新的 | |
| 41 | + objc_setAssociatedObject(self, &MJRefreshHeaderKey, | |
| 42 | + mj_header, OBJC_ASSOCIATION_RETAIN); | |
| 43 | + } | |
| 44 | +} | |
| 45 | + | |
| 46 | +- (MJRefreshHeader *)mj_header | |
| 47 | +{ | |
| 48 | + return objc_getAssociatedObject(self, &MJRefreshHeaderKey); | |
| 49 | +} | |
| 50 | + | |
| 51 | +#pragma mark - footer | |
| 52 | +static const char MJRefreshFooterKey = '\0'; | |
| 53 | +- (void)setMj_footer:(MJRefreshFooter *)mj_footer | |
| 54 | +{ | |
| 55 | + if (mj_footer != self.mj_footer) { | |
| 56 | + // 删除旧的,添加新的 | |
| 57 | + [self.mj_footer removeFromSuperview]; | |
| 58 | + [self insertSubview:mj_footer atIndex:0]; | |
| 59 | + | |
| 60 | + // 存储新的 | |
| 61 | + objc_setAssociatedObject(self, &MJRefreshFooterKey, | |
| 62 | + mj_footer, OBJC_ASSOCIATION_RETAIN); | |
| 63 | + } | |
| 64 | +} | |
| 65 | + | |
| 66 | +- (MJRefreshFooter *)mj_footer | |
| 67 | +{ | |
| 68 | + return objc_getAssociatedObject(self, &MJRefreshFooterKey); | |
| 69 | +} | |
| 70 | + | |
| 71 | +#pragma mark - 过期 | |
| 72 | +- (void)setFooter:(MJRefreshFooter *)footer | |
| 73 | +{ | |
| 74 | + self.mj_footer = footer; | |
| 75 | +} | |
| 76 | + | |
| 77 | +- (MJRefreshFooter *)footer | |
| 78 | +{ | |
| 79 | + return self.mj_footer; | |
| 80 | +} | |
| 81 | + | |
| 82 | +- (void)setHeader:(MJRefreshHeader *)header | |
| 83 | +{ | |
| 84 | + self.mj_header = header; | |
| 85 | +} | |
| 86 | + | |
| 87 | +- (MJRefreshHeader *)header | |
| 88 | +{ | |
| 89 | + return self.mj_header; | |
| 90 | +} | |
| 91 | + | |
| 92 | +#pragma mark - other | |
| 93 | +- (NSInteger)mj_totalDataCount | |
| 94 | +{ | |
| 95 | + NSInteger totalCount = 0; | |
| 96 | + if ([self isKindOfClass:[UITableView class]]) { | |
| 97 | + UITableView *tableView = (UITableView *)self; | |
| 98 | + | |
| 99 | + for (NSInteger section = 0; section<tableView.numberOfSections; section++) { | |
| 100 | + totalCount += [tableView numberOfRowsInSection:section]; | |
| 101 | + } | |
| 102 | + } else if ([self isKindOfClass:[UICollectionView class]]) { | |
| 103 | + UICollectionView *collectionView = (UICollectionView *)self; | |
| 104 | + | |
| 105 | + for (NSInteger section = 0; section<collectionView.numberOfSections; section++) { | |
| 106 | + totalCount += [collectionView numberOfItemsInSection:section]; | |
| 107 | + } | |
| 108 | + } | |
| 109 | + return totalCount; | |
| 110 | +} | |
| 111 | + | |
| 112 | +static const char MJRefreshReloadDataBlockKey = '\0'; | |
| 113 | +- (void)setMj_reloadDataBlock:(void (^)(NSInteger))mj_reloadDataBlock | |
| 114 | +{ | |
| 115 | + [self willChangeValueForKey:@"mj_reloadDataBlock"]; // KVO | |
| 116 | + objc_setAssociatedObject(self, &MJRefreshReloadDataBlockKey, mj_reloadDataBlock, OBJC_ASSOCIATION_COPY_NONATOMIC); | |
| 117 | + [self didChangeValueForKey:@"mj_reloadDataBlock"]; // KVO | |
| 118 | +} | |
| 119 | + | |
| 120 | +- (void (^)(NSInteger))mj_reloadDataBlock | |
| 121 | +{ | |
| 122 | + return objc_getAssociatedObject(self, &MJRefreshReloadDataBlockKey); | |
| 123 | +} | |
| 124 | + | |
| 125 | +- (void)executeReloadDataBlock | |
| 126 | +{ | |
| 127 | + !self.mj_reloadDataBlock ? : self.mj_reloadDataBlock(self.mj_totalDataCount); | |
| 128 | +} | |
| 129 | +@end | |
| 130 | + | |
| 131 | +@implementation UITableView (MJRefresh) | |
| 132 | + | |
| 133 | ++ (void)load | |
| 134 | +{ | |
| 135 | + [self exchangeInstanceMethod1:@selector(reloadData) method2:@selector(mj_reloadData)]; | |
| 136 | +} | |
| 137 | + | |
| 138 | +- (void)mj_reloadData | |
| 139 | +{ | |
| 140 | + [self mj_reloadData]; | |
| 141 | + | |
| 142 | + [self executeReloadDataBlock]; | |
| 143 | +} | |
| 144 | +@end | |
| 145 | + | |
| 146 | +@implementation UICollectionView (MJRefresh) | |
| 147 | + | |
| 148 | ++ (void)load | |
| 149 | +{ | |
| 150 | + [self exchangeInstanceMethod1:@selector(reloadData) method2:@selector(mj_reloadData)]; | |
| 151 | +} | |
| 152 | + | |
| 153 | +- (void)mj_reloadData | |
| 154 | +{ | |
| 155 | + [self mj_reloadData]; | |
| 156 | + | |
| 157 | + [self executeReloadDataBlock]; | |
| 158 | +} | |
| 159 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/UIView+MJExtension.h
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// UIView+Extension.h | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 14-5-28. | |
| 7 | +// Copyright (c) 2014年 小码哥. All rights reserved. | |
| 8 | +// | |
| 9 | + | |
| 10 | +#import <UIKit/UIKit.h> | |
| 11 | + | |
| 12 | +@interface UIView (MJExtension) | |
| 13 | +@property (assign, nonatomic) CGFloat mj_x; | |
| 14 | +@property (assign, nonatomic) CGFloat mj_y; | |
| 15 | +@property (assign, nonatomic) CGFloat mj_w; | |
| 16 | +@property (assign, nonatomic) CGFloat mj_h; | |
| 17 | +@property (assign, nonatomic) CGSize mj_size; | |
| 18 | +@property (assign, nonatomic) CGPoint mj_origin; | |
| 19 | +@end | ... | ... |
Example/Pods/MJRefresh/MJRefresh/UIView+MJExtension.m
0 → 100644
| 1 | +// 代码地址: https://github.com/CoderMJLee/MJRefresh | |
| 2 | +// 代码地址: 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 | |
| 3 | +// UIView+Extension.m | |
| 4 | +// MJRefreshExample | |
| 5 | +// | |
| 6 | +// Created by MJ Lee on 14-5-28. | |
| 7 | +// Copyright (c) 2014年 小码哥. All rights reserved. | |
| 8 | +// | |
| 9 | + | |
| 10 | +#import "UIView+MJExtension.h" | |
| 11 | + | |
| 12 | +@implementation UIView (MJExtension) | |
| 13 | +- (void)setMj_x:(CGFloat)mj_x | |
| 14 | +{ | |
| 15 | + CGRect frame = self.frame; | |
| 16 | + frame.origin.x = mj_x; | |
| 17 | + self.frame = frame; | |
| 18 | +} | |
| 19 | + | |
| 20 | +- (CGFloat)mj_x | |
| 21 | +{ | |
| 22 | + return self.frame.origin.x; | |
| 23 | +} | |
| 24 | + | |
| 25 | +- (void)setMj_y:(CGFloat)mj_y | |
| 26 | +{ | |
| 27 | + CGRect frame = self.frame; | |
| 28 | + frame.origin.y = mj_y; | |
| 29 | + self.frame = frame; | |
| 30 | +} | |
| 31 | + | |
| 32 | +- (CGFloat)mj_y | |
| 33 | +{ | |
| 34 | + return self.frame.origin.y; | |
| 35 | +} | |
| 36 | + | |
| 37 | +- (void)setMj_w:(CGFloat)mj_w | |
| 38 | +{ | |
| 39 | + CGRect frame = self.frame; | |
| 40 | + frame.size.width = mj_w; | |
| 41 | + self.frame = frame; | |
| 42 | +} | |
| 43 | + | |
| 44 | +- (CGFloat)mj_w | |
| 45 | +{ | |
| 46 | + return self.frame.size.width; | |
| 47 | +} | |
| 48 | + | |
| 49 | +- (void)setMj_h:(CGFloat)mj_h | |
| 50 | +{ | |
| 51 | + CGRect frame = self.frame; | |
| 52 | + frame.size.height = mj_h; | |
| 53 | + self.frame = frame; | |
| 54 | +} | |
| 55 | + | |
| 56 | +- (CGFloat)mj_h | |
| 57 | +{ | |
| 58 | + return self.frame.size.height; | |
| 59 | +} | |
| 60 | + | |
| 61 | +- (void)setMj_size:(CGSize)mj_size | |
| 62 | +{ | |
| 63 | + CGRect frame = self.frame; | |
| 64 | + frame.size = mj_size; | |
| 65 | + self.frame = frame; | |
| 66 | +} | |
| 67 | + | |
| 68 | +- (CGSize)mj_size | |
| 69 | +{ | |
| 70 | + return self.frame.size; | |
| 71 | +} | |
| 72 | + | |
| 73 | +- (void)setMj_origin:(CGPoint)mj_origin | |
| 74 | +{ | |
| 75 | + CGRect frame = self.frame; | |
| 76 | + frame.origin = mj_origin; | |
| 77 | + self.frame = frame; | |
| 78 | +} | |
| 79 | + | |
| 80 | +- (CGPoint)mj_origin | |
| 81 | +{ | |
| 82 | + return self.frame.origin; | |
| 83 | +} | |
| 84 | +@end | ... | ... |
Example/Pods/MJRefresh/README.md
0 → 100644
| 1 | + | |
| 2 | +## MJRefresh | |
| 3 | +* An easy way to use pull-to-refresh | |
| 4 | + | |
| 5 | +## Contents | |
| 6 | +* Getting Started | |
| 7 | + * [Features【Support what kinds of controls to refresh】](#Support_what_kinds_of_controls_to_refresh) | |
| 8 | + * [Installation【How to use MJRefresh】](#How_to_use_MJRefresh) | |
| 9 | + * [Who's using【More than hundreds of Apps are using MJRefresh】](#More_than_hundreds_of_Apps_are_using_MJRefresh) | |
| 10 | + * [Classes【The Class Structure Chart of MJRefresh】](#The_Class_Structure_Chart_of_MJRefresh) | |
| 11 | +* Comment API | |
| 12 | + * [MJRefreshComponent.h](#MJRefreshComponent.h) | |
| 13 | + * [MJRefreshHeader.h](#MJRefreshHeader.h) | |
| 14 | + * [MJRefreshFooter.h](#MJRefreshFooter.h) | |
| 15 | + * [MJRefreshAutoFooter.h](#MJRefreshAutoFooter.h) | |
| 16 | +* Examples | |
| 17 | + * [Reference](#Reference) | |
| 18 | + * [The drop-down refresh 01-Default](#The_drop-down_refresh_01-Default) | |
| 19 | + * [The drop-down refresh 02-Animation image](#The_drop-down_refresh_02-Animation_image) | |
| 20 | + * [The drop-down refresh 03-Hide the time](#The_drop-down_refresh_03-Hide_the_time) | |
| 21 | + * [The drop-down refresh 04-Hide status and time](#The_drop-down_refresh_04-Hide_status_and_time) | |
| 22 | + * [The drop-down refresh 05-DIY title](#The_drop-down_refresh_05-DIY_title) | |
| 23 | + * [The drop-down refresh 06-DIY the control of refresh](#The_drop-down_refresh_06-DIY_the_control_of_refresh) | |
| 24 | + * [The pull to refresh 01-Default](#The_pull_to_refresh_01-Default) | |
| 25 | + * [The pull to refresh 02-Animation image](#The_pull_to_refresh_02-Animation_image) | |
| 26 | + * [The pull to refresh 03-Hide the title of refresh status](#The_pull_to_refresh_03-Hide_the_title_of_refresh_status) | |
| 27 | + * [The pull to refresh 04-All loaded](#The_pull_to_refresh_04-All_loaded) | |
| 28 | + * [The pull to refresh 05-DIY title](#The_pull_to_refresh_05-DIY_title) | |
| 29 | + * [The pull to refresh 06-Hidden After loaded](#The_pull_to_refresh_06-Hidden_After_loaded) | |
| 30 | + * [The pull to refresh 07-Automatic back of the pull01](#The_pull_to_refresh_07-Automatic_back_of_the_pull01) | |
| 31 | + * [The pull to refresh 08-Automatic back of the pull02](#The_pull_to_refresh_08-Automatic_back_of_the_pull02) | |
| 32 | + * [The pull to refresh 09-DIY the control of refresh(Automatic refresh)](#The_pull_to_refresh_09-DIY_the_control_of_refresh(Automatic_refresh)) | |
| 33 | + * [The pull to refresh 10-DIY the control of refresh(Automatic back)](#The_pull_to_refresh_10-DIY_the_control_of_refresh(Automatic_back)) | |
| 34 | + * [UICollectionView01-The pull and drop-down refresh](#UICollectionView01-The_pull_and_drop-down_refresh) | |
| 35 | + * [UIWebView01-The drop-down refresh](#UIWebView01-The_drop-down_refresh) | |
| 36 | +* [Hope](#Hope) | |
| 37 | + | |
| 38 | +## <a id="Support_what_kinds_of_controls_to_refresh"></a>Support what kinds of controls to refresh | |
| 39 | +* `UIScrollView`、`UITableView`、`UICollectionView`、`UIWebView` | |
| 40 | + | |
| 41 | +## <a id="How_to_use_MJRefresh"></a>How to use MJRefresh | |
| 42 | +* Installation with CocoaPods:`pod 'MJRefresh'` | |
| 43 | +* Manual import: | |
| 44 | + * Drag All files in the `MJRefresh` folder to project | |
| 45 | + * Import the main file:`#import "MJRefresh.h"` | |
| 46 | + | |
| 47 | +```objc | |
| 48 | +Base Custom | |
| 49 | +MJRefresh.bundle MJRefresh.h | |
| 50 | +MJRefreshConst.h MJRefreshConst.m | |
| 51 | +UIScrollView+MJExtension.h UIScrollView+MJExtension.m | |
| 52 | +UIScrollView+MJRefresh.h UIScrollView+MJRefresh.m | |
| 53 | +UIView+MJExtension.h UIView+MJExtension.m | |
| 54 | +``` | |
| 55 | + | |
| 56 | +## <a id="More_than_hundreds_of_Apps_are_using_MJRefresh"></a>More than hundreds of Apps are using MJRefresh | |
| 57 | +<img src="http://images0.cnblogs.com/blog2015/497279/201506/141212365041650.png" width="200" height="300"> | |
| 58 | +* More information of App can focus on:[M了个J-博客园](http://www.cnblogs.com/mjios/p/4409853.html) | |
| 59 | + | |
| 60 | +## <a id="The_Class_Structure_Chart_of_MJRefresh"></a>The Class Structure Chart of MJRefresh | |
| 61 | + | |
| 62 | +- `The class of red text` in the chart:You can use them directly | |
| 63 | + - The drop-down refresh control types | |
| 64 | + - Normal:`MJRefreshNormalHeader` | |
| 65 | + - Gif:`MJRefreshGifHeader` | |
| 66 | + - The pull to refresh control types | |
| 67 | + - Auto refresh | |
| 68 | + - Normal:`MJRefreshAutoNormalFooter` | |
| 69 | + - Gif:`MJRefreshAutoGifFooter` | |
| 70 | + - Auto Back | |
| 71 | + - Normal:`MJRefreshBackNormalFooter` | |
| 72 | + - Gif:`MJRefreshBackGifFooter` | |
| 73 | +- `The class of non-red text` in the chart:For inheritance,to use DIY the control of refresh | |
| 74 | +- About how to DIY the control of refresh,You can refer the Class in below Chart<br> | |
| 75 | +<img src="http://images0.cnblogs.com/blog2015/497279/201506/141358159107893.png" width="30%" height="30%"> | |
| 76 | + | |
| 77 | +## <a id="MJRefreshComponent.h"></a>MJRefreshComponent.h | |
| 78 | +```objc | |
| 79 | +/** The Base Class of refresh control */ | |
| 80 | +@interface MJRefreshComponent : UIView | |
| 81 | +#pragma mark - Control the state of Refresh | |
| 82 | + | |
| 83 | +/** BeginRefreshing */ | |
| 84 | +- (void)beginRefreshing; | |
| 85 | +/** EndRefreshing */ | |
| 86 | +- (void)endRefreshing; | |
| 87 | +/** IsRefreshing */ | |
| 88 | +- (BOOL)isRefreshing; | |
| 89 | + | |
| 90 | +#pragma mark - Other | |
| 91 | +/** According to the drag ratio to change alpha automatically */ | |
| 92 | +@property (assign, nonatomic, getter=isAutomaticallyChangeAlpha) BOOL automaticallyChangeAlpha; | |
| 93 | +@end | |
| 94 | +``` | |
| 95 | + | |
| 96 | +## <a id="MJRefreshHeader.h"></a>MJRefreshHeader.h | |
| 97 | +```objc | |
| 98 | +@interface MJRefreshHeader : MJRefreshComponent | |
| 99 | +/** Creat header */ | |
| 100 | ++ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock; | |
| 101 | +/** Creat header */ | |
| 102 | ++ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; | |
| 103 | + | |
| 104 | +/** This key is used to storage the time that the last time of drown-down successfully */ | |
| 105 | +@property (copy, nonatomic) NSString *lastUpdatedTimeKey; | |
| 106 | +/** The last time of drown-down successfully */ | |
| 107 | +@property (strong, nonatomic, readonly) NSDate *lastUpdatedTime; | |
| 108 | + | |
| 109 | +/** Ignored scrollView contentInset top */ | |
| 110 | +@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetTop; | |
| 111 | +@end | |
| 112 | +``` | |
| 113 | + | |
| 114 | +## <a id="MJRefreshFooter.h"></a>MJRefreshFooter.h | |
| 115 | +```objc | |
| 116 | +@interface MJRefreshFooter : MJRefreshComponent | |
| 117 | +/** Creat footer */ | |
| 118 | ++ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock; | |
| 119 | +/** Creat footer */ | |
| 120 | ++ (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; | |
| 121 | + | |
| 122 | +/** NoticeNoMoreData */ | |
| 123 | +- (void)noticeNoMoreData; | |
| 124 | +/** ResetNoMoreData(Clear the status of NoMoreData ) */ | |
| 125 | +- (void)resetNoMoreData; | |
| 126 | + | |
| 127 | +/** Ignored scrollView contentInset bottom */ | |
| 128 | +@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom; | |
| 129 | + | |
| 130 | +/** Automaticlly show or hidden by the count of data(Show-have data,Hidden- no data) */ | |
| 131 | +@property (assign, nonatomic) BOOL automaticallyHidden; | |
| 132 | +@end | |
| 133 | +``` | |
| 134 | + | |
| 135 | +## <a id="MJRefreshAutoFooter.h"></a>MJRefreshAutoFooter.h | |
| 136 | +```objc | |
| 137 | +@interface MJRefreshAutoFooter : MJRefreshFooter | |
| 138 | +/** Is Automatically Refresh(Default is Yes) */ | |
| 139 | +@property (assign, nonatomic, getter=isAutomaticallyRefresh) BOOL automaticallyRefresh; | |
| 140 | + | |
| 141 | +/** When there is much at the bottom of the control is automatically refresh(Default is 1.0,Is at the bottom of the control appears in full, will refresh automatically) */ | |
| 142 | +@property (assign, nonatomic) CGFloat triggerAutomaticallyRefreshPercent; | |
| 143 | +@end | |
| 144 | +``` | |
| 145 | + | |
| 146 | +## <a id="Reference"></a>Reference | |
| 147 | +```objc | |
| 148 | +* Due to there are more functions of this framework,Don't write specific text describe its usage | |
| 149 | +* You can directly reference examples MJTableViewController、MJCollectionViewController、MJWebViewController,More intuitive and fast. | |
| 150 | +``` | |
| 151 | +<img src="http://images0.cnblogs.com/blog2015/497279/201506/141345470048120.png" width="30%" height="30%"> | |
| 152 | + | |
| 153 | +## <a id="The_drop-down_refresh_01-Default"></a>The drop-down refresh 01-Default | |
| 154 | + | |
| 155 | +```objc | |
| 156 | +self.tableView.header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{ | |
| 157 | + //Call this Block When enter the refresh status automatically | |
| 158 | +}]; | |
| 159 | +或 | |
| 160 | +// Set the callback(Once you enter the refresh status,then call the action of target,that is call [self loadNewData]) | |
| 161 | +self.tableView.header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)]; | |
| 162 | + | |
| 163 | +// Enter the refresh status immediately | |
| 164 | +[self.tableView.header beginRefreshing]; | |
| 165 | +``` | |
| 166 | + | |
| 167 | + | |
| 168 | +## <a id="The_drop-down_refresh_02-Animation_image"></a>The drop-down refresh 02-Animation image | |
| 169 | +```objc | |
| 170 | +// Set the callback(一Once you enter the refresh status,then call the action of target,that is call [self loadNewData]) | |
| 171 | +MJRefreshGifHeader *header = [MJRefreshGifHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)]; | |
| 172 | +// Set the ordinary state of animated images | |
| 173 | +[header setImages:idleImages forState:MJRefreshStateIdle]; | |
| 174 | +// Set the pulling state of animated images(Enter the status of refreshing as soon as loosen) | |
| 175 | +[header setImages:pullingImages forState:MJRefreshStatePulling]; | |
| 176 | +// Set the refreshing state of animated images | |
| 177 | +[header setImages:refreshingImages forState:MJRefreshStateRefreshing]; | |
| 178 | +// Set header | |
| 179 | +self.tableView.mj_header = header; | |
| 180 | +``` | |
| 181 | + | |
| 182 | + | |
| 183 | +## <a id="The_drop-down_refresh_03-Hide_the_time"></a>The drop-down refresh 03-Hide the time | |
| 184 | +```objc | |
| 185 | +// Hide the time | |
| 186 | +header.lastUpdatedTimeLabel.hidden = YES; | |
| 187 | +``` | |
| 188 | + | |
| 189 | + | |
| 190 | +## <a id="The_drop-down_refresh_04-Hide_status_and_time"></a>The drop-down refresh 04-Hide status and time | |
| 191 | +```objc | |
| 192 | +// Hide the time | |
| 193 | +header.lastUpdatedTimeLabel.hidden = YES; | |
| 194 | + | |
| 195 | +// Hide the status | |
| 196 | +header.stateLabel.hidden = YES; | |
| 197 | +``` | |
| 198 | + | |
| 199 | + | |
| 200 | +## <a id="The_drop-down_refresh_05-DIY_title"></a>The drop-down refresh 05-DIY title | |
| 201 | +```objc | |
| 202 | +// Set title | |
| 203 | +[header setTitle:@"Pull down to refresh" forState:MJRefreshStateIdle]; | |
| 204 | +[header setTitle:@"Release to refresh" forState:MJRefreshStatePulling]; | |
| 205 | +[header setTitle:@"Loading ..." forState:MJRefreshStateRefreshing]; | |
| 206 | + | |
| 207 | +// Set font | |
| 208 | +header.stateLabel.font = [UIFont systemFontOfSize:15]; | |
| 209 | +header.lastUpdatedTimeLabel.font = [UIFont systemFontOfSize:14]; | |
| 210 | + | |
| 211 | +// Set textColor | |
| 212 | +header.stateLabel.textColor = [UIColor redColor]; | |
| 213 | +header.lastUpdatedTimeLabel.textColor = [UIColor blueColor]; | |
| 214 | +``` | |
| 215 | + | |
| 216 | + | |
| 217 | +## <a id="The_drop-down_refresh_06-DIY_the_control_of_refresh"></a>The drop-down refresh 06-DIY the control of refresh | |
| 218 | +```objc | |
| 219 | +self.tableView.mj_header = [MJDIYHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)]; | |
| 220 | +// Implementation reference to MJDIYHeader.h和MJDIYHeader.m | |
| 221 | +``` | |
| 222 | + | |
| 223 | + | |
| 224 | +## <a id="The_pull_to_refresh_01-Default"></a>The pull to refresh 01-Default | |
| 225 | +```objc | |
| 226 | +self.tableView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{ | |
| 227 | + //Call this Block When enter the refresh status automatically | |
| 228 | +}]; | |
| 229 | +或 | |
| 230 | +// Set the callback(Once you enter the refresh status,then call the action of target,that is call [self loadMoreData]) | |
| 231 | +self.tableView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)]; | |
| 232 | +``` | |
| 233 | + | |
| 234 | + | |
| 235 | +## <a id="The_pull_to_refresh_02-Animation_image"></a>The pull to refresh 02-Animation image | |
| 236 | +```objc | |
| 237 | +// Set the callback(Once you enter the refresh status,then call the action of target,that is call [self loadMoreData]) | |
| 238 | +MJRefreshAutoGifFooter *footer = [MJRefreshAutoGifFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)]; | |
| 239 | + | |
| 240 | +// Set the refresh image | |
| 241 | +[footer setImages:refreshingImages forState:MJRefreshStateRefreshing]; | |
| 242 | + | |
| 243 | +// Set footer | |
| 244 | +self.tableView.mj_footer = footer; | |
| 245 | +``` | |
| 246 | + | |
| 247 | + | |
| 248 | +## <a id="The_pull_to_refresh_03-Hide_the_title_of_refresh_status"></a>The pull to refresh 03-Hide the title of refresh status | |
| 249 | +```objc | |
| 250 | +// Hide the title of refresh status | |
| 251 | +footer.refreshingTitleHidden = YES; | |
| 252 | +// If does have not above method,then use footer.stateLabel.hidden = YES; | |
| 253 | +``` | |
| 254 | + | |
| 255 | + | |
| 256 | +## <a id="The_pull_to_refresh_04-All_loaded"></a>The pull to refresh 04-All loaded | |
| 257 | +```objc | |
| 258 | +//Become the status of NoMoreData | |
| 259 | +[footer noticeNoMoreData]; | |
| 260 | +``` | |
| 261 | + | |
| 262 | + | |
| 263 | +## <a id="The_pull_to_refresh_05-DIY_title"></a>The pull to refresh 05-DIY title | |
| 264 | +```objc | |
| 265 | +// Set title | |
| 266 | +[footer setTitle:@"Click or drag up to refresh" forState:MJRefreshStateIdle]; | |
| 267 | +[footer setTitle:@"Loading more ..." forState:MJRefreshStateRefreshing]; | |
| 268 | +[footer setTitle:@"No more data" forState:MJRefreshStateNoMoreData]; | |
| 269 | + | |
| 270 | +// Set font | |
| 271 | +footer.stateLabel.font = [UIFont systemFontOfSize:17]; | |
| 272 | + | |
| 273 | +// Set textColor | |
| 274 | +footer.stateLabel.textColor = [UIColor blueColor]; | |
| 275 | +``` | |
| 276 | + | |
| 277 | + | |
| 278 | +## <a id="The_pull_to_refresh_06-Hidden_After_loaded"></a>The pull to refresh 06-Hidden After loaded | |
| 279 | +```objc | |
| 280 | +//Hidden current control of the pull to refresh | |
| 281 | +self.tableView.mj_footer.hidden = YES; | |
| 282 | +``` | |
| 283 | + | |
| 284 | + | |
| 285 | +## <a id="The_pull_to_refresh_07-Automatic_back_of_the_pull01"></a>The pull to refresh 07-Automatic back of the pull01 | |
| 286 | +```objc | |
| 287 | +self.tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)]; | |
| 288 | +``` | |
| 289 | + | |
| 290 | + | |
| 291 | +## <a id="The_pull_to_refresh_08-Automatic_back_of_the_pull02"></a>The pull to refresh 08-Automatic back of the pull02 | |
| 292 | +```objc | |
| 293 | +MJRefreshBackGifFooter *footer = [MJRefreshBackGifFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)]; | |
| 294 | + | |
| 295 | +// Set the normal state of the animated image | |
| 296 | +[footer setImages:idleImages forState:MJRefreshStateIdle]; | |
| 297 | +// Set the pulling state of animated images(Enter the status of refreshing as soon as loosen) | |
| 298 | +[footer setImages:pullingImages forState:MJRefreshStatePulling]; | |
| 299 | +// Set the refreshing state of animated images | |
| 300 | +[footer setImages:refreshingImages forState:MJRefreshStateRefreshing]; | |
| 301 | + | |
| 302 | +// Set footer | |
| 303 | +self.tableView.mj_footer = footer; | |
| 304 | +``` | |
| 305 | + | |
| 306 | + | |
| 307 | +## <a id="The_pull_to_refresh_09-DIY_the_control_of_refresh(Automatic_refresh)"></a>The pull to refresh 09-DIY the control of refresh(Automatic refresh) | |
| 308 | +```objc | |
| 309 | +self.tableView.mj_footer = [MJDIYAutoFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)]; | |
| 310 | +// Implementation reference to MJDIYAutoFooter.h和MJDIYAutoFooter.m | |
| 311 | +``` | |
| 312 | + | |
| 313 | + | |
| 314 | +## <a id="The_pull_to_refresh_10-DIY_the_control_of_refresh(Automatic_back)"></a>The pull to refresh 10-DIY the control of refresh(Automatic back) | |
| 315 | +```objc | |
| 316 | +self.tableView.mj_footer = [MJDIYBackFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreData)]; | |
| 317 | +// Implementation reference to MJDIYBackFooter.h和MJDIYBackFooter.m | |
| 318 | +``` | |
| 319 | + | |
| 320 | + | |
| 321 | +## <a id="UICollectionView01-The_pull_and_drop-down_refresh"></a>UICollectionView01-The pull and drop-down refresh | |
| 322 | +```objc | |
| 323 | +// The drop-down refresh | |
| 324 | +self.collectionView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{ | |
| 325 | + //Call this Block When enter the refresh status automatically | |
| 326 | +}]; | |
| 327 | + | |
| 328 | +// The pull to refresh | |
| 329 | +self.collectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{ | |
| 330 | + //Call this Block When enter the refresh status automatically | |
| 331 | +}]; | |
| 332 | +``` | |
| 333 | + | |
| 334 | + | |
| 335 | +## <a id="UIWebView01-The_drop-down_refresh"></a>UIWebView01-The drop-down refresh | |
| 336 | +```objc | |
| 337 | +//Add the control of The drop-down refresh | |
| 338 | +self.webView.scrollView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{ | |
| 339 | + //Call this Block When enter the refresh status automatically | |
| 340 | +}]; | |
| 341 | +``` | |
| 342 | + | |
| 343 | + | |
| 344 | +## Remind | |
| 345 | +* ARC | |
| 346 | +* iOS>=6.0 | |
| 347 | +* iPhone \ iPad screen anyway | |
| 348 | + | |
| 349 | +## <a id="Hope"></a>Hope | |
| 350 | +* If you find bug when used,Hope you can Issues me,Thank you or try to download the latest code of this framework to see the BUG has been fixed or not) | |
| 351 | +* If you find the function is not enough when used,Hope you can Issues me,I very much to add more useful function to this framework ,Thank you ! | |
| 352 | +* If you want to contribute code for MJRefresh,please Pull Requests me | |
| 353 | +* If you use MJRefresh in your develop app,Hope you can go to[CocoaControls](https://www.cocoacontrols.com/controls/mjrefresh)to add the iTunes path | |
| 354 | + of you app,I Will install your app,and according to the usage of many app,to be a better design and improve to MJRefresh,Thank you ! | |
| 355 | + * StepO1(WeChat is just an Example,Explore“Your app name itunes”) | |
| 356 | + | |
| 357 | + * StepO2 | |
| 358 | + | |
| 359 | + * StepO3 | |
| 360 | + | |
| 361 | + * StepO4 | |
| 362 | + | ... | ... |
Example/Pods/Manifest.lock
0 → 100644
| 1 | +PODS: | |
| 2 | + - CNLiveRefreshFooter (0.0.1): | |
| 3 | + - MJRefresh | |
| 4 | + - MJRefresh (3.1.15.7) | |
| 5 | + | |
| 6 | +DEPENDENCIES: | |
| 7 | + - CNLiveRefreshFooter (from `../`) | |
| 8 | + - MJRefresh | |
| 9 | + | |
| 10 | +SPEC REPOS: | |
| 11 | + https://github.com/cocoapods/specs.git: | |
| 12 | + - MJRefresh | |
| 13 | + | |
| 14 | +EXTERNAL SOURCES: | |
| 15 | + CNLiveRefreshFooter: | |
| 16 | + :path: "../" | |
| 17 | + | |
| 18 | +SPEC CHECKSUMS: | |
| 19 | + CNLiveRefreshFooter: 6425c728580007ffe534adf5c14d5bf876a0c594 | |
| 20 | + MJRefresh: 697f8ec75ebdbe9207767bb682cf0f51b0d8a41f | |
| 21 | + | |
| 22 | +PODFILE CHECKSUM: 0a51086267afeffdcad68ab5e4784ae8667622d2 | |
| 23 | + | |
| 24 | +COCOAPODS: 1.5.3 | ... | ... |
Example/Pods/Pods.xcodeproj/project.pbxproj
0 → 100644
| 1 | +// !$*UTF8*$! | |
| 2 | +{ | |
| 3 | + archiveVersion = 1; | |
| 4 | + classes = { | |
| 5 | + }; | |
| 6 | + objectVersion = 46; | |
| 7 | + objects = { | |
| 8 | + | |
| 9 | +/* Begin PBXBuildFile section */ | |
| 10 | + 00983A59DC9AC329089D231C929AC63C /* CNLiveRrfreshFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 24552D577CD959C4AA3DFCB554BDB9A7 /* CNLiveRrfreshFooter.m */; }; | |
| 11 | + 01EEC545FF25CE54CCE4BEC9B7064D4E /* MJRefreshBackFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 28D452368B1E23E34CF464E99127DB84 /* MJRefreshBackFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 12 | + 036EEBC27F9F9657F7493AE5D0854619 /* UIView+MJExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = AD80BC1238C1F025946C78EA689F9FD6 /* UIView+MJExtension.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 13 | + 08B53CFE1016B51209D9EDF8DFA4FC65 /* UIScrollView+MJExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = B572762D25AE884A6E6025CD584CA279 /* UIScrollView+MJExtension.m */; }; | |
| 14 | + 091593D5ADC2D430C27CFAD7F8F29EEC /* MJRefreshConst.m in Sources */ = {isa = PBXBuildFile; fileRef = D8958DD64D4F8B06313515F077270881 /* MJRefreshConst.m */; }; | |
| 15 | + 0A8C5C35ADB95BABEC97F96FE47EDE5B /* CNLiveRefreshFooter-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0305B9482660B044E7F780A912EF27FE /* CNLiveRefreshFooter-dummy.m */; }; | |
| 16 | + 0B5CF04D03873439E98F1CF8CDE587AC /* MJRefreshComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = CD0799BB500F75019954F20434A4457B /* MJRefreshComponent.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 17 | + 0E36E8B51184F67033DDE3DF4D5EB3E2 /* CNLiveRefreshFooter.bundle in Resources */ = {isa = PBXBuildFile; fileRef = F947CBD2DBFEBE5620C0E0A531BF7EA2 /* CNLiveRefreshFooter.bundle */; }; | |
| 18 | + 19BE7BE3BD9A74C25C6F3568C5A0890E /* UIScrollView+MJRefresh.h in Headers */ = {isa = PBXBuildFile; fileRef = 2970467A63AAFA0B9F669E070084CED3 /* UIScrollView+MJRefresh.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 19 | + 29D08C16D0B1C6BD4D4F0730DC5B2FBD /* MJRefresh-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = D08C87668D5079F8C4B61B3D95436F64 /* MJRefresh-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 20 | + 2A6C70D2A845BB74357CBF310B1B0462 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 853528392C89701D61153E0753FCEE98 /* UIKit.framework */; }; | |
| 21 | + 2B3FAE913033A01558C6A815E81D63F0 /* MJRefreshStateHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = CD7796E0B84D08F3954CB2285480571B /* MJRefreshStateHeader.m */; }; | |
| 22 | + 3E2594CBBF423F4A063481ED2F3944C2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5740F0E3F5B79528E4F9BAF55A850995 /* Foundation.framework */; }; | |
| 23 | + 438D496BC430861779C2E42A608B9172 /* UIScrollView+MJRefresh.m in Sources */ = {isa = PBXBuildFile; fileRef = 359A4DE4AFFF1344A5481B9EE94ABAC4 /* UIScrollView+MJRefresh.m */; }; | |
| 24 | + 460487B64992AFDAA91C219D09DA9917 /* MJRefreshBackNormalFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 772828D7C1B5EC016F2A391EE2153D58 /* MJRefreshBackNormalFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 25 | + 468D84CD2552376CA0201C9D79D3E537 /* MJRefreshHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = D5CCB235447F3E18360C0DAB5E88F117 /* MJRefreshHeader.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 26 | + 48E227D96D542C3509080C6245C5816B /* UIView+MJExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EF1CC5B1CE4B106461CE38F0B1BAAC9 /* UIView+MJExtension.m */; }; | |
| 27 | + 4920B097AA6B4188E9477D26F87401DD /* Pods-CNLiveRefreshFooter_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F808BE157FB5655EAA46858FD6510C53 /* Pods-CNLiveRefreshFooter_Tests-dummy.m */; }; | |
| 28 | + 4AA475AA574104E6652E675733422473 /* NSBundle+MJRefresh.m in Sources */ = {isa = PBXBuildFile; fileRef = 399AAF1C3C81270C477811E90BCD5614 /* NSBundle+MJRefresh.m */; }; | |
| 29 | + 4F872C99F5884DBED802184212FC979D /* MJRefreshAutoGifFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 2FF9F7454D6F6BFD295023CF64ADB47E /* MJRefreshAutoGifFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 30 | + 641F3DED143FC2FA8AB5D90FAF86018C /* MJRefreshBackGifFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 91E087BFF5A4C96024394F46FAB373F0 /* MJRefreshBackGifFooter.m */; }; | |
| 31 | + 65277D95D4D640398EE305CA79EBE8F6 /* MJRefreshComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = D9FE37D6C27365FC5DB7076DB6A5080B /* MJRefreshComponent.m */; }; | |
| 32 | + 662AFCF9B75D4B3D7AA37A3031A69972 /* MJRefresh.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 304CC5D3C2AF74487F5E51E2BD351C87 /* MJRefresh.bundle */; }; | |
| 33 | + 666D7FD0EDAC511968DE974A820D260F /* MJRefreshBackStateFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 22423C0D9752CE12BC99436DC3E8D200 /* MJRefreshBackStateFooter.m */; }; | |
| 34 | + 7584CAD3B28310FD541528A2C31DF3F6 /* MJRefreshBackStateFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 2A7D6998A720A4F72C5E60295FBAC081 /* MJRefreshBackStateFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 35 | + 7774DC14194F2E07AFC1C630FB89FB6F /* CNLiveRefreshFooter-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B5E4970329CBDABC9DBDFF42855461A8 /* CNLiveRefreshFooter-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 36 | + 7D7EDD288250C0B052A2435E03FB5520 /* Pods-CNLiveRefreshFooter_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BDEDF3B5E8D58DFADD394F240912E8D2 /* Pods-CNLiveRefreshFooter_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 37 | + 7F8D862F974506128FA8865D9C22434F /* MJRefreshAutoFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 89E7FFE3499454CF2099186410BBF06F /* MJRefreshAutoFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 38 | + 83E3A762FF86283B514CD9AC3DDF0788 /* MJRefresh.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17CCA8DD82EF1C1B58D82DE0271EB93F /* MJRefresh.framework */; }; | |
| 39 | + 8647AA2163D02AE912C56218352ECF63 /* MJRefreshNormalHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 9CD495E243B865555CCA84971329BB72 /* MJRefreshNormalHeader.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 40 | + 8A6C562B653E487F46029726CC02BD29 /* MJRefreshAutoNormalFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = A65AF0DDBD5843EF6BE10063EC1DE255 /* MJRefreshAutoNormalFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 41 | + 8DF6D2D9C9D2D76C3E4A5B75CCEB25B5 /* Pods-CNLiveRefreshFooter_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 132ECAFF25A0A31AB46588C93DF2FBAE /* Pods-CNLiveRefreshFooter_Example-dummy.m */; }; | |
| 42 | + 910AA0E2004342F1E17A360E390BCF5E /* MJRefreshBackNormalFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 31FF1A0FB915D51EBFBE9B0C0D45453B /* MJRefreshBackNormalFooter.m */; }; | |
| 43 | + 95F372C980C43B78630496BF82057CA7 /* MJRefreshGifHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = BCBFB5C2A3FCF292E4C8F9355FD0F053 /* MJRefreshGifHeader.m */; }; | |
| 44 | + 997A48F3EC24E144F1F2A3A57CA1DA7A /* MJRefreshNormalHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C7F9AE22051BDBE67493DD290EC5FD9 /* MJRefreshNormalHeader.m */; }; | |
| 45 | + 99A39BC606508D879A876669A35FBB42 /* MJRefreshAutoStateFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 85DBD653F2D083BF866FD821BDED8FE0 /* MJRefreshAutoStateFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 46 | + 9B0EC30E3AD845838CEBB99817E05B64 /* MJRefreshStateHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 9BF3ED4117E8669D0A80A95FA78F1B70 /* MJRefreshStateHeader.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 47 | + A2472F19A8616BE3A7BB583F6B66EE70 /* NSBundle+MJRefresh.h in Headers */ = {isa = PBXBuildFile; fileRef = F1604E7B9DB88EF0843279A3CF2928F5 /* NSBundle+MJRefresh.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 48 | + A34E4B45BC9F66E2ACFAD301558D4E99 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F11B6AEB5189027B0A6C6FDFBDD7DEE2 /* Assets.xcassets */; }; | |
| 49 | + A396BE4EFE4F609AC4872898D8028D16 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5740F0E3F5B79528E4F9BAF55A850995 /* Foundation.framework */; }; | |
| 50 | + A4B19881D9B1C4057153964434F67F11 /* MJRefreshAutoFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D6CA0A599AA99D8D4849BE6F09120B4 /* MJRefreshAutoFooter.m */; }; | |
| 51 | + A953A3721D918FE61E22B868B6084FBE /* MJRefreshBackFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = C9FCFA9C7618D0EF63681404B1649D15 /* MJRefreshBackFooter.m */; }; | |
| 52 | + AF08E4E5075CAD66BEC7153916B2CA09 /* CNLiveRrfreshFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 9BB5B175A94F20FE06A9F374C748A124 /* CNLiveRrfreshFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 53 | + AF29D974E626979A92332BF6D17FD130 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5740F0E3F5B79528E4F9BAF55A850995 /* Foundation.framework */; }; | |
| 54 | + AFD980E96D4AA316A88310F01148B282 /* MJRefreshAutoGifFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = C462EB7C5A1BFAAAA88A2A69302D6D0D /* MJRefreshAutoGifFooter.m */; }; | |
| 55 | + C25251C03BD1EE1D075AD3F7578E43B2 /* MJRefreshConst.h in Headers */ = {isa = PBXBuildFile; fileRef = D3494A5480373FC3C9BDB523B7E08DB9 /* MJRefreshConst.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 56 | + C354F8E6602B4A56B8719408B3AD4878 /* MJRefresh-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D156FE66233F9837692DC3CE7C7C5BE2 /* MJRefresh-dummy.m */; }; | |
| 57 | + D6AD8D2CBDEC68124062B2D031E13787 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5740F0E3F5B79528E4F9BAF55A850995 /* Foundation.framework */; }; | |
| 58 | + D9684AA8B03AB32701210E711B8DDFD3 /* UIScrollView+MJExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = E6643DEB2913C3EFD0B2310908C6B17D /* UIScrollView+MJExtension.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 59 | + D9996218BD5D2F4593B72CF076BD4398 /* MJRefreshBackGifFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = E6152B094EC2308994892CDDA977AECA /* MJRefreshBackGifFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 60 | + DA52AB1B581B47254CDF98FD3C795074 /* MJRefreshAutoStateFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 1ACC47ED652C3A45F4AFC7ED038A9741 /* MJRefreshAutoStateFooter.m */; }; | |
| 61 | + DC6A3DFB0FAF77237B36E1EE9DF4B4FC /* MJRefreshGifHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = 95959F04C94DDA65B9FFB6C650CFFA32 /* MJRefreshGifHeader.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 62 | + E61CD1E9ABE4359E28C8C64D6C43D4FB /* MJRefreshFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 25E1B990CE4C4CD728A278B17E09A203 /* MJRefreshFooter.m */; }; | |
| 63 | + EC1D76DA27ABDBF3F6364DBD2E235307 /* MJRefreshHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D88BEDD1B5B89A24603DEEDA27376E2 /* MJRefreshHeader.m */; }; | |
| 64 | + ED11D9F54FA31C3D6A4C19D52D9F9D8E /* MJRefreshAutoNormalFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A8FF7AF8A14C7B50C338359C13B34F2 /* MJRefreshAutoNormalFooter.m */; }; | |
| 65 | + F701A51CD65A8A179D6FE1A9E8263C71 /* MJRefresh.h in Headers */ = {isa = PBXBuildFile; fileRef = 23F9717796B8BB5A0C18C41CD9A84856 /* MJRefresh.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 66 | + FE215EDA9BEEE84C101B2785E8E21704 /* MJRefreshFooter.h in Headers */ = {isa = PBXBuildFile; fileRef = 01D848AF815E0097FBB84EE1D0DC9525 /* MJRefreshFooter.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 67 | + FF76F6D337B9427A3311690D4398F445 /* Pods-CNLiveRefreshFooter_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = EA464BEEC655FFFBCDE50E037642C9F0 /* Pods-CNLiveRefreshFooter_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; | |
| 68 | +/* End PBXBuildFile section */ | |
| 69 | + | |
| 70 | +/* Begin PBXContainerItemProxy section */ | |
| 71 | + 01194BB02A1AD512ADCE102C46EAC771 /* PBXContainerItemProxy */ = { | |
| 72 | + isa = PBXContainerItemProxy; | |
| 73 | + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; | |
| 74 | + proxyType = 1; | |
| 75 | + remoteGlobalIDString = 6BE55A9780BE8C54418AC68CC8C504FA; | |
| 76 | + remoteInfo = "Pods-CNLiveRefreshFooter_Example"; | |
| 77 | + }; | |
| 78 | + 80A70501ACEA096DC1EEEB5C04BEE383 /* PBXContainerItemProxy */ = { | |
| 79 | + isa = PBXContainerItemProxy; | |
| 80 | + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; | |
| 81 | + proxyType = 1; | |
| 82 | + remoteGlobalIDString = D91815A523706B3FD04AEC51AE7D38B5; | |
| 83 | + remoteInfo = MJRefresh; | |
| 84 | + }; | |
| 85 | + B5A4E1D74185AFA28F643E05E3E94442 /* PBXContainerItemProxy */ = { | |
| 86 | + isa = PBXContainerItemProxy; | |
| 87 | + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; | |
| 88 | + proxyType = 1; | |
| 89 | + remoteGlobalIDString = D91815A523706B3FD04AEC51AE7D38B5; | |
| 90 | + remoteInfo = MJRefresh; | |
| 91 | + }; | |
| 92 | + E40BB89F18785CF85E96BE2A870586E6 /* PBXContainerItemProxy */ = { | |
| 93 | + isa = PBXContainerItemProxy; | |
| 94 | + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; | |
| 95 | + proxyType = 1; | |
| 96 | + remoteGlobalIDString = D91815A523706B3FD04AEC51AE7D38B5; | |
| 97 | + remoteInfo = MJRefresh; | |
| 98 | + }; | |
| 99 | + E708EE9818101FEEFC34E4E67ED488B0 /* PBXContainerItemProxy */ = { | |
| 100 | + isa = PBXContainerItemProxy; | |
| 101 | + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; | |
| 102 | + proxyType = 1; | |
| 103 | + remoteGlobalIDString = 369D809BEF3AA025DED90434D093B38A; | |
| 104 | + remoteInfo = CNLiveRefreshFooter; | |
| 105 | + }; | |
| 106 | + E94244D5F34EE0A3BCF77C1A9C034054 /* PBXContainerItemProxy */ = { | |
| 107 | + isa = PBXContainerItemProxy; | |
| 108 | + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; | |
| 109 | + proxyType = 1; | |
| 110 | + remoteGlobalIDString = 0F9E487FA6DD9E9AA3A0B0FB5ED6E79D; | |
| 111 | + remoteInfo = "CNLiveRefreshFooter-CNLiveRefreshFooter"; | |
| 112 | + }; | |
| 113 | +/* End PBXContainerItemProxy section */ | |
| 114 | + | |
| 115 | +/* Begin PBXFileReference section */ | |
| 116 | + 01D848AF815E0097FBB84EE1D0DC9525 /* MJRefreshFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshFooter.h; path = MJRefresh/Base/MJRefreshFooter.h; sourceTree = "<group>"; }; | |
| 117 | + 0305B9482660B044E7F780A912EF27FE /* CNLiveRefreshFooter-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "CNLiveRefreshFooter-dummy.m"; sourceTree = "<group>"; }; | |
| 118 | + 0CEFA691BF1A798C5F51B68010CA4E7C /* Pods_CNLiveRefreshFooter_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_CNLiveRefreshFooter_Example.framework; path = "Pods-CNLiveRefreshFooter_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 119 | + 0D192BFD16ED0191FE73EBE0B18F4029 /* Pods-CNLiveRefreshFooter_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CNLiveRefreshFooter_Tests-resources.sh"; sourceTree = "<group>"; }; | |
| 120 | + 132ECAFF25A0A31AB46588C93DF2FBAE /* Pods-CNLiveRefreshFooter_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CNLiveRefreshFooter_Example-dummy.m"; sourceTree = "<group>"; }; | |
| 121 | + 17CCA8DD82EF1C1B58D82DE0271EB93F /* MJRefresh.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MJRefresh.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 122 | + 1ACC47ED652C3A45F4AFC7ED038A9741 /* MJRefreshAutoStateFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshAutoStateFooter.m; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.m; sourceTree = "<group>"; }; | |
| 123 | + 1E256B4182782ABD0C58715D0C469CD8 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | |
| 124 | + 1F72B722FE36B78AC815E8891F071C37 /* CNLiveRefreshFooter.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = CNLiveRefreshFooter.modulemap; sourceTree = "<group>"; }; | |
| 125 | + 22423C0D9752CE12BC99436DC3E8D200 /* MJRefreshBackStateFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshBackStateFooter.m; path = MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.m; sourceTree = "<group>"; }; | |
| 126 | + 23F9717796B8BB5A0C18C41CD9A84856 /* MJRefresh.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefresh.h; path = MJRefresh/MJRefresh.h; sourceTree = "<group>"; }; | |
| 127 | + 240F5B7917D3F1FDFB931146ECB8CD6F /* MJRefresh.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MJRefresh.xcconfig; sourceTree = "<group>"; }; | |
| 128 | + 24552D577CD959C4AA3DFCB554BDB9A7 /* CNLiveRrfreshFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = CNLiveRrfreshFooter.m; path = CNLiveRefreshFooter/Classes/CNLiveRrfreshFooter.m; sourceTree = "<group>"; }; | |
| 129 | + 24ACDE650527FF57D6A6EBFDAEDFCC3C /* Pods-CNLiveRefreshFooter_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CNLiveRefreshFooter_Example.debug.xcconfig"; sourceTree = "<group>"; }; | |
| 130 | + 25E1B990CE4C4CD728A278B17E09A203 /* MJRefreshFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshFooter.m; path = MJRefresh/Base/MJRefreshFooter.m; sourceTree = "<group>"; }; | |
| 131 | + 28D452368B1E23E34CF464E99127DB84 /* MJRefreshBackFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshBackFooter.h; path = MJRefresh/Base/MJRefreshBackFooter.h; sourceTree = "<group>"; }; | |
| 132 | + 2970467A63AAFA0B9F669E070084CED3 /* UIScrollView+MJRefresh.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIScrollView+MJRefresh.h"; path = "MJRefresh/UIScrollView+MJRefresh.h"; sourceTree = "<group>"; }; | |
| 133 | + 2A7D6998A720A4F72C5E60295FBAC081 /* MJRefreshBackStateFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshBackStateFooter.h; path = MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h; sourceTree = "<group>"; }; | |
| 134 | + 2A8FF7AF8A14C7B50C338359C13B34F2 /* MJRefreshAutoNormalFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshAutoNormalFooter.m; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.m; sourceTree = "<group>"; }; | |
| 135 | + 2DB902B26B569D3CD4AEC59BACE1544E /* CNLiveRefreshFooter-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CNLiveRefreshFooter-prefix.pch"; sourceTree = "<group>"; }; | |
| 136 | + 2FF9F7454D6F6BFD295023CF64ADB47E /* MJRefreshAutoGifFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshAutoGifFooter.h; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h; sourceTree = "<group>"; }; | |
| 137 | + 304CC5D3C2AF74487F5E51E2BD351C87 /* MJRefresh.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; name = MJRefresh.bundle; path = MJRefresh/MJRefresh.bundle; sourceTree = "<group>"; }; | |
| 138 | + 31FF1A0FB915D51EBFBE9B0C0D45453B /* MJRefreshBackNormalFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshBackNormalFooter.m; path = MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.m; sourceTree = "<group>"; }; | |
| 139 | + 359A4DE4AFFF1344A5481B9EE94ABAC4 /* UIScrollView+MJRefresh.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIScrollView+MJRefresh.m"; path = "MJRefresh/UIScrollView+MJRefresh.m"; sourceTree = "<group>"; }; | |
| 140 | + 399AAF1C3C81270C477811E90BCD5614 /* NSBundle+MJRefresh.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSBundle+MJRefresh.m"; path = "MJRefresh/NSBundle+MJRefresh.m"; sourceTree = "<group>"; }; | |
| 141 | + 3D6CA0A599AA99D8D4849BE6F09120B4 /* MJRefreshAutoFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshAutoFooter.m; path = MJRefresh/Base/MJRefreshAutoFooter.m; sourceTree = "<group>"; }; | |
| 142 | + 4DFC060C2F10D1D3BE1714A787BC6069 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = "<group>"; }; | |
| 143 | + 5740F0E3F5B79528E4F9BAF55A850995 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; | |
| 144 | + 5B5EEA0CDBECE7C7A5C11BC71AEBEBBA /* CNLiveRefreshFooter.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = CNLiveRefreshFooter.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; | |
| 145 | + 6D88BEDD1B5B89A24603DEEDA27376E2 /* MJRefreshHeader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshHeader.m; path = MJRefresh/Base/MJRefreshHeader.m; sourceTree = "<group>"; }; | |
| 146 | + 6D97A81069DFF7D833553EA36C9D1F76 /* Pods_CNLiveRefreshFooter_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_CNLiveRefreshFooter_Tests.framework; path = "Pods-CNLiveRefreshFooter_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 147 | + 722F132BBAAB7D5D21F5983CB7517AA1 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | |
| 148 | + 772828D7C1B5EC016F2A391EE2153D58 /* MJRefreshBackNormalFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshBackNormalFooter.h; path = MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h; sourceTree = "<group>"; }; | |
| 149 | + 851BBDA95F8412173115442AA4B9CEC5 /* Pods-CNLiveRefreshFooter_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CNLiveRefreshFooter_Tests.debug.xcconfig"; sourceTree = "<group>"; }; | |
| 150 | + 853528392C89701D61153E0753FCEE98 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; | |
| 151 | + 85DBD653F2D083BF866FD821BDED8FE0 /* MJRefreshAutoStateFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshAutoStateFooter.h; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h; sourceTree = "<group>"; }; | |
| 152 | + 86E793DDDE92FA78384D1FDF7C5283C4 /* Pods-CNLiveRefreshFooter_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CNLiveRefreshFooter_Example.release.xcconfig"; sourceTree = "<group>"; }; | |
| 153 | + 89E7FFE3499454CF2099186410BBF06F /* MJRefreshAutoFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshAutoFooter.h; path = MJRefresh/Base/MJRefreshAutoFooter.h; sourceTree = "<group>"; }; | |
| 154 | + 8DA5FE97760F538AD544561F7353EFEC /* Pods-CNLiveRefreshFooter_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CNLiveRefreshFooter_Example-frameworks.sh"; sourceTree = "<group>"; }; | |
| 155 | + 8EB47CB3D2C2F5185F7A85B11AAED992 /* MJRefresh-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MJRefresh-prefix.pch"; sourceTree = "<group>"; }; | |
| 156 | + 8EF1CC5B1CE4B106461CE38F0B1BAAC9 /* UIView+MJExtension.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIView+MJExtension.m"; path = "MJRefresh/UIView+MJExtension.m"; sourceTree = "<group>"; }; | |
| 157 | + 91E087BFF5A4C96024394F46FAB373F0 /* MJRefreshBackGifFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshBackGifFooter.m; path = MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.m; sourceTree = "<group>"; }; | |
| 158 | + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; | |
| 159 | + 95959F04C94DDA65B9FFB6C650CFFA32 /* MJRefreshGifHeader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshGifHeader.h; path = MJRefresh/Custom/Header/MJRefreshGifHeader.h; sourceTree = "<group>"; }; | |
| 160 | + 9BB5B175A94F20FE06A9F374C748A124 /* CNLiveRrfreshFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = CNLiveRrfreshFooter.h; path = CNLiveRefreshFooter/Classes/CNLiveRrfreshFooter.h; sourceTree = "<group>"; }; | |
| 161 | + 9BF3ED4117E8669D0A80A95FA78F1B70 /* MJRefreshStateHeader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshStateHeader.h; path = MJRefresh/Custom/Header/MJRefreshStateHeader.h; sourceTree = "<group>"; }; | |
| 162 | + 9C7F9AE22051BDBE67493DD290EC5FD9 /* MJRefreshNormalHeader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshNormalHeader.m; path = MJRefresh/Custom/Header/MJRefreshNormalHeader.m; sourceTree = "<group>"; }; | |
| 163 | + 9CD495E243B865555CCA84971329BB72 /* MJRefreshNormalHeader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshNormalHeader.h; path = MJRefresh/Custom/Header/MJRefreshNormalHeader.h; sourceTree = "<group>"; }; | |
| 164 | + A65AF0DDBD5843EF6BE10063EC1DE255 /* MJRefreshAutoNormalFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshAutoNormalFooter.h; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h; sourceTree = "<group>"; }; | |
| 165 | + AA75E5DA39330F7A3A94EC9F661924E2 /* ResourceBundle-CNLiveRefreshFooter-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-CNLiveRefreshFooter-Info.plist"; sourceTree = "<group>"; }; | |
| 166 | + AD80BC1238C1F025946C78EA689F9FD6 /* UIView+MJExtension.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIView+MJExtension.h"; path = "MJRefresh/UIView+MJExtension.h"; sourceTree = "<group>"; }; | |
| 167 | + ADEE1689C34A89CE5141E193C219A3F3 /* Pods-CNLiveRefreshFooter_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CNLiveRefreshFooter_Tests.modulemap"; sourceTree = "<group>"; }; | |
| 168 | + B572762D25AE884A6E6025CD584CA279 /* UIScrollView+MJExtension.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIScrollView+MJExtension.m"; path = "MJRefresh/UIScrollView+MJExtension.m"; sourceTree = "<group>"; }; | |
| 169 | + B5E4970329CBDABC9DBDFF42855461A8 /* CNLiveRefreshFooter-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CNLiveRefreshFooter-umbrella.h"; sourceTree = "<group>"; }; | |
| 170 | + B8C029907D0E82BF97DED4BCA9EFEAB9 /* CNLiveRefreshFooter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = CNLiveRefreshFooter.framework; path = CNLiveRefreshFooter.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 171 | + BCBFB5C2A3FCF292E4C8F9355FD0F053 /* MJRefreshGifHeader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshGifHeader.m; path = MJRefresh/Custom/Header/MJRefreshGifHeader.m; sourceTree = "<group>"; }; | |
| 172 | + BDA20AC7D28B8E3EF1EA29C2B56E295C /* Pods-CNLiveRefreshFooter_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CNLiveRefreshFooter_Example-acknowledgements.plist"; sourceTree = "<group>"; }; | |
| 173 | + BDEDF3B5E8D58DFADD394F240912E8D2 /* Pods-CNLiveRefreshFooter_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CNLiveRefreshFooter_Tests-umbrella.h"; sourceTree = "<group>"; }; | |
| 174 | + BE626E4C973C02C2D3AB57F29623342A /* Pods-CNLiveRefreshFooter_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CNLiveRefreshFooter_Example-resources.sh"; sourceTree = "<group>"; }; | |
| 175 | + C1BDD45F09B3CEC54F05952784F1D158 /* MJRefresh.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = MJRefresh.framework; path = MJRefresh.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 176 | + C462EB7C5A1BFAAAA88A2A69302D6D0D /* MJRefreshAutoGifFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshAutoGifFooter.m; path = MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.m; sourceTree = "<group>"; }; | |
| 177 | + C59CA3B35611069886BD9B24209A66D8 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | |
| 178 | + C7CC4BFD7F50D0125AF48708AD97F146 /* CNLiveRefreshFooter.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CNLiveRefreshFooter.xcconfig; sourceTree = "<group>"; }; | |
| 179 | + C9FCFA9C7618D0EF63681404B1649D15 /* MJRefreshBackFooter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshBackFooter.m; path = MJRefresh/Base/MJRefreshBackFooter.m; sourceTree = "<group>"; }; | |
| 180 | + CCA883241EA2E0634A957360EF53F8B2 /* Pods-CNLiveRefreshFooter_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CNLiveRefreshFooter_Tests-acknowledgements.plist"; sourceTree = "<group>"; }; | |
| 181 | + CD0799BB500F75019954F20434A4457B /* MJRefreshComponent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshComponent.h; path = MJRefresh/Base/MJRefreshComponent.h; sourceTree = "<group>"; }; | |
| 182 | + CD7796E0B84D08F3954CB2285480571B /* MJRefreshStateHeader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshStateHeader.m; path = MJRefresh/Custom/Header/MJRefreshStateHeader.m; sourceTree = "<group>"; }; | |
| 183 | + D08C87668D5079F8C4B61B3D95436F64 /* MJRefresh-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MJRefresh-umbrella.h"; sourceTree = "<group>"; }; | |
| 184 | + D156FE66233F9837692DC3CE7C7C5BE2 /* MJRefresh-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "MJRefresh-dummy.m"; sourceTree = "<group>"; }; | |
| 185 | + D3494A5480373FC3C9BDB523B7E08DB9 /* MJRefreshConst.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshConst.h; path = MJRefresh/MJRefreshConst.h; sourceTree = "<group>"; }; | |
| 186 | + D5CCB235447F3E18360C0DAB5E88F117 /* MJRefreshHeader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshHeader.h; path = MJRefresh/Base/MJRefreshHeader.h; sourceTree = "<group>"; }; | |
| 187 | + D8958DD64D4F8B06313515F077270881 /* MJRefreshConst.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshConst.m; path = MJRefresh/MJRefreshConst.m; sourceTree = "<group>"; }; | |
| 188 | + D9FE37D6C27365FC5DB7076DB6A5080B /* MJRefreshComponent.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MJRefreshComponent.m; path = MJRefresh/Base/MJRefreshComponent.m; sourceTree = "<group>"; }; | |
| 189 | + DB0F97B9DF090D9A97186E37E9E8394B /* Pods-CNLiveRefreshFooter_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CNLiveRefreshFooter_Tests-acknowledgements.markdown"; sourceTree = "<group>"; }; | |
| 190 | + E2738281A327E43C37E77577465D4195 /* Pods-CNLiveRefreshFooter_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CNLiveRefreshFooter_Example.modulemap"; sourceTree = "<group>"; }; | |
| 191 | + E31FE368037DB756AF264BA156F3DBE3 /* Pods-CNLiveRefreshFooter_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CNLiveRefreshFooter_Tests.release.xcconfig"; sourceTree = "<group>"; }; | |
| 192 | + E6152B094EC2308994892CDDA977AECA /* MJRefreshBackGifFooter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MJRefreshBackGifFooter.h; path = MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h; sourceTree = "<group>"; }; | |
| 193 | + E6643DEB2913C3EFD0B2310908C6B17D /* UIScrollView+MJExtension.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIScrollView+MJExtension.h"; path = "MJRefresh/UIScrollView+MJExtension.h"; sourceTree = "<group>"; }; | |
| 194 | + E95BDF57AA4A0FD8C8B1B87CA3C495C7 /* Pods-CNLiveRefreshFooter_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CNLiveRefreshFooter_Tests-frameworks.sh"; sourceTree = "<group>"; }; | |
| 195 | + EA464BEEC655FFFBCDE50E037642C9F0 /* Pods-CNLiveRefreshFooter_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CNLiveRefreshFooter_Example-umbrella.h"; sourceTree = "<group>"; }; | |
| 196 | + EEDE874A8F3F97D00CE3D3446F13F674 /* Pods-CNLiveRefreshFooter_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CNLiveRefreshFooter_Example-acknowledgements.markdown"; sourceTree = "<group>"; }; | |
| 197 | + F11B6AEB5189027B0A6C6FDFBDD7DEE2 /* Assets.xcassets */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = CNLiveRefreshFooter/Assets/Assets.xcassets; sourceTree = "<group>"; }; | |
| 198 | + F1604E7B9DB88EF0843279A3CF2928F5 /* NSBundle+MJRefresh.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSBundle+MJRefresh.h"; path = "MJRefresh/NSBundle+MJRefresh.h"; sourceTree = "<group>"; }; | |
| 199 | + F1A111851B3054FEDC84D1FF7557D15A /* MJRefresh.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = MJRefresh.modulemap; sourceTree = "<group>"; }; | |
| 200 | + F808BE157FB5655EAA46858FD6510C53 /* Pods-CNLiveRefreshFooter_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CNLiveRefreshFooter_Tests-dummy.m"; sourceTree = "<group>"; }; | |
| 201 | + F947CBD2DBFEBE5620C0E0A531BF7EA2 /* CNLiveRefreshFooter.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = CNLiveRefreshFooter.bundle; path = "CNLiveRefreshFooter-CNLiveRefreshFooter.bundle"; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 202 | + FABAFE7CE42B1D3FCE06EEDC25035895 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = "<group>"; }; | |
| 203 | + FE8465EE65E9B9BE51DF792BCB470830 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | |
| 204 | +/* End PBXFileReference section */ | |
| 205 | + | |
| 206 | +/* Begin PBXFrameworksBuildPhase section */ | |
| 207 | + 0E3D542A822F8EA245830D8833AAD699 /* Frameworks */ = { | |
| 208 | + isa = PBXFrameworksBuildPhase; | |
| 209 | + buildActionMask = 2147483647; | |
| 210 | + files = ( | |
| 211 | + A396BE4EFE4F609AC4872898D8028D16 /* Foundation.framework in Frameworks */, | |
| 212 | + ); | |
| 213 | + runOnlyForDeploymentPostprocessing = 0; | |
| 214 | + }; | |
| 215 | + 79F32458013D0D5F9E7EF183F332C36B /* Frameworks */ = { | |
| 216 | + isa = PBXFrameworksBuildPhase; | |
| 217 | + buildActionMask = 2147483647; | |
| 218 | + files = ( | |
| 219 | + D6AD8D2CBDEC68124062B2D031E13787 /* Foundation.framework in Frameworks */, | |
| 220 | + ); | |
| 221 | + runOnlyForDeploymentPostprocessing = 0; | |
| 222 | + }; | |
| 223 | + 9F3E52A545D376284B993E4A1E5BC062 /* Frameworks */ = { | |
| 224 | + isa = PBXFrameworksBuildPhase; | |
| 225 | + buildActionMask = 2147483647; | |
| 226 | + files = ( | |
| 227 | + 3E2594CBBF423F4A063481ED2F3944C2 /* Foundation.framework in Frameworks */, | |
| 228 | + ); | |
| 229 | + runOnlyForDeploymentPostprocessing = 0; | |
| 230 | + }; | |
| 231 | + A511C42A362EEFE2989E0887CE94C423 /* Frameworks */ = { | |
| 232 | + isa = PBXFrameworksBuildPhase; | |
| 233 | + buildActionMask = 2147483647; | |
| 234 | + files = ( | |
| 235 | + ); | |
| 236 | + runOnlyForDeploymentPostprocessing = 0; | |
| 237 | + }; | |
| 238 | + EC03DA0DC91C6EB5EDDC427912BD46F6 /* Frameworks */ = { | |
| 239 | + isa = PBXFrameworksBuildPhase; | |
| 240 | + buildActionMask = 2147483647; | |
| 241 | + files = ( | |
| 242 | + AF29D974E626979A92332BF6D17FD130 /* Foundation.framework in Frameworks */, | |
| 243 | + 83E3A762FF86283B514CD9AC3DDF0788 /* MJRefresh.framework in Frameworks */, | |
| 244 | + 2A6C70D2A845BB74357CBF310B1B0462 /* UIKit.framework in Frameworks */, | |
| 245 | + ); | |
| 246 | + runOnlyForDeploymentPostprocessing = 0; | |
| 247 | + }; | |
| 248 | +/* End PBXFrameworksBuildPhase section */ | |
| 249 | + | |
| 250 | +/* Begin PBXGroup section */ | |
| 251 | + 00D2128E3D14B6D22A9F731FE06EDA56 /* Pods-CNLiveRefreshFooter_Tests */ = { | |
| 252 | + isa = PBXGroup; | |
| 253 | + children = ( | |
| 254 | + FE8465EE65E9B9BE51DF792BCB470830 /* Info.plist */, | |
| 255 | + ADEE1689C34A89CE5141E193C219A3F3 /* Pods-CNLiveRefreshFooter_Tests.modulemap */, | |
| 256 | + DB0F97B9DF090D9A97186E37E9E8394B /* Pods-CNLiveRefreshFooter_Tests-acknowledgements.markdown */, | |
| 257 | + CCA883241EA2E0634A957360EF53F8B2 /* Pods-CNLiveRefreshFooter_Tests-acknowledgements.plist */, | |
| 258 | + F808BE157FB5655EAA46858FD6510C53 /* Pods-CNLiveRefreshFooter_Tests-dummy.m */, | |
| 259 | + E95BDF57AA4A0FD8C8B1B87CA3C495C7 /* Pods-CNLiveRefreshFooter_Tests-frameworks.sh */, | |
| 260 | + 0D192BFD16ED0191FE73EBE0B18F4029 /* Pods-CNLiveRefreshFooter_Tests-resources.sh */, | |
| 261 | + BDEDF3B5E8D58DFADD394F240912E8D2 /* Pods-CNLiveRefreshFooter_Tests-umbrella.h */, | |
| 262 | + 851BBDA95F8412173115442AA4B9CEC5 /* Pods-CNLiveRefreshFooter_Tests.debug.xcconfig */, | |
| 263 | + E31FE368037DB756AF264BA156F3DBE3 /* Pods-CNLiveRefreshFooter_Tests.release.xcconfig */, | |
| 264 | + ); | |
| 265 | + name = "Pods-CNLiveRefreshFooter_Tests"; | |
| 266 | + path = "Target Support Files/Pods-CNLiveRefreshFooter_Tests"; | |
| 267 | + sourceTree = "<group>"; | |
| 268 | + }; | |
| 269 | + 0CD1F1B3DBB711F2545AF5DF3CD992F1 /* MJRefresh */ = { | |
| 270 | + isa = PBXGroup; | |
| 271 | + children = ( | |
| 272 | + 23F9717796B8BB5A0C18C41CD9A84856 /* MJRefresh.h */, | |
| 273 | + 89E7FFE3499454CF2099186410BBF06F /* MJRefreshAutoFooter.h */, | |
| 274 | + 3D6CA0A599AA99D8D4849BE6F09120B4 /* MJRefreshAutoFooter.m */, | |
| 275 | + 2FF9F7454D6F6BFD295023CF64ADB47E /* MJRefreshAutoGifFooter.h */, | |
| 276 | + C462EB7C5A1BFAAAA88A2A69302D6D0D /* MJRefreshAutoGifFooter.m */, | |
| 277 | + A65AF0DDBD5843EF6BE10063EC1DE255 /* MJRefreshAutoNormalFooter.h */, | |
| 278 | + 2A8FF7AF8A14C7B50C338359C13B34F2 /* MJRefreshAutoNormalFooter.m */, | |
| 279 | + 85DBD653F2D083BF866FD821BDED8FE0 /* MJRefreshAutoStateFooter.h */, | |
| 280 | + 1ACC47ED652C3A45F4AFC7ED038A9741 /* MJRefreshAutoStateFooter.m */, | |
| 281 | + 28D452368B1E23E34CF464E99127DB84 /* MJRefreshBackFooter.h */, | |
| 282 | + C9FCFA9C7618D0EF63681404B1649D15 /* MJRefreshBackFooter.m */, | |
| 283 | + E6152B094EC2308994892CDDA977AECA /* MJRefreshBackGifFooter.h */, | |
| 284 | + 91E087BFF5A4C96024394F46FAB373F0 /* MJRefreshBackGifFooter.m */, | |
| 285 | + 772828D7C1B5EC016F2A391EE2153D58 /* MJRefreshBackNormalFooter.h */, | |
| 286 | + 31FF1A0FB915D51EBFBE9B0C0D45453B /* MJRefreshBackNormalFooter.m */, | |
| 287 | + 2A7D6998A720A4F72C5E60295FBAC081 /* MJRefreshBackStateFooter.h */, | |
| 288 | + 22423C0D9752CE12BC99436DC3E8D200 /* MJRefreshBackStateFooter.m */, | |
| 289 | + CD0799BB500F75019954F20434A4457B /* MJRefreshComponent.h */, | |
| 290 | + D9FE37D6C27365FC5DB7076DB6A5080B /* MJRefreshComponent.m */, | |
| 291 | + D3494A5480373FC3C9BDB523B7E08DB9 /* MJRefreshConst.h */, | |
| 292 | + D8958DD64D4F8B06313515F077270881 /* MJRefreshConst.m */, | |
| 293 | + 01D848AF815E0097FBB84EE1D0DC9525 /* MJRefreshFooter.h */, | |
| 294 | + 25E1B990CE4C4CD728A278B17E09A203 /* MJRefreshFooter.m */, | |
| 295 | + 95959F04C94DDA65B9FFB6C650CFFA32 /* MJRefreshGifHeader.h */, | |
| 296 | + BCBFB5C2A3FCF292E4C8F9355FD0F053 /* MJRefreshGifHeader.m */, | |
| 297 | + D5CCB235447F3E18360C0DAB5E88F117 /* MJRefreshHeader.h */, | |
| 298 | + 6D88BEDD1B5B89A24603DEEDA27376E2 /* MJRefreshHeader.m */, | |
| 299 | + 9CD495E243B865555CCA84971329BB72 /* MJRefreshNormalHeader.h */, | |
| 300 | + 9C7F9AE22051BDBE67493DD290EC5FD9 /* MJRefreshNormalHeader.m */, | |
| 301 | + 9BF3ED4117E8669D0A80A95FA78F1B70 /* MJRefreshStateHeader.h */, | |
| 302 | + CD7796E0B84D08F3954CB2285480571B /* MJRefreshStateHeader.m */, | |
| 303 | + F1604E7B9DB88EF0843279A3CF2928F5 /* NSBundle+MJRefresh.h */, | |
| 304 | + 399AAF1C3C81270C477811E90BCD5614 /* NSBundle+MJRefresh.m */, | |
| 305 | + E6643DEB2913C3EFD0B2310908C6B17D /* UIScrollView+MJExtension.h */, | |
| 306 | + B572762D25AE884A6E6025CD584CA279 /* UIScrollView+MJExtension.m */, | |
| 307 | + 2970467A63AAFA0B9F669E070084CED3 /* UIScrollView+MJRefresh.h */, | |
| 308 | + 359A4DE4AFFF1344A5481B9EE94ABAC4 /* UIScrollView+MJRefresh.m */, | |
| 309 | + AD80BC1238C1F025946C78EA689F9FD6 /* UIView+MJExtension.h */, | |
| 310 | + 8EF1CC5B1CE4B106461CE38F0B1BAAC9 /* UIView+MJExtension.m */, | |
| 311 | + 6A06433F80093BADBE67BFF332FBA5A5 /* Resources */, | |
| 312 | + 2F7A31F2CC7696BDCA31131421062736 /* Support Files */, | |
| 313 | + ); | |
| 314 | + name = MJRefresh; | |
| 315 | + path = MJRefresh; | |
| 316 | + sourceTree = "<group>"; | |
| 317 | + }; | |
| 318 | + 1CAC1DA8C380A1C0BD09220832732823 /* Support Files */ = { | |
| 319 | + isa = PBXGroup; | |
| 320 | + children = ( | |
| 321 | + 1F72B722FE36B78AC815E8891F071C37 /* CNLiveRefreshFooter.modulemap */, | |
| 322 | + C7CC4BFD7F50D0125AF48708AD97F146 /* CNLiveRefreshFooter.xcconfig */, | |
| 323 | + 0305B9482660B044E7F780A912EF27FE /* CNLiveRefreshFooter-dummy.m */, | |
| 324 | + 2DB902B26B569D3CD4AEC59BACE1544E /* CNLiveRefreshFooter-prefix.pch */, | |
| 325 | + B5E4970329CBDABC9DBDFF42855461A8 /* CNLiveRefreshFooter-umbrella.h */, | |
| 326 | + 1E256B4182782ABD0C58715D0C469CD8 /* Info.plist */, | |
| 327 | + AA75E5DA39330F7A3A94EC9F661924E2 /* ResourceBundle-CNLiveRefreshFooter-Info.plist */, | |
| 328 | + ); | |
| 329 | + name = "Support Files"; | |
| 330 | + path = "Example/Pods/Target Support Files/CNLiveRefreshFooter"; | |
| 331 | + sourceTree = "<group>"; | |
| 332 | + }; | |
| 333 | + 2F7A31F2CC7696BDCA31131421062736 /* Support Files */ = { | |
| 334 | + isa = PBXGroup; | |
| 335 | + children = ( | |
| 336 | + C59CA3B35611069886BD9B24209A66D8 /* Info.plist */, | |
| 337 | + F1A111851B3054FEDC84D1FF7557D15A /* MJRefresh.modulemap */, | |
| 338 | + 240F5B7917D3F1FDFB931146ECB8CD6F /* MJRefresh.xcconfig */, | |
| 339 | + D156FE66233F9837692DC3CE7C7C5BE2 /* MJRefresh-dummy.m */, | |
| 340 | + 8EB47CB3D2C2F5185F7A85B11AAED992 /* MJRefresh-prefix.pch */, | |
| 341 | + D08C87668D5079F8C4B61B3D95436F64 /* MJRefresh-umbrella.h */, | |
| 342 | + ); | |
| 343 | + name = "Support Files"; | |
| 344 | + path = "../Target Support Files/MJRefresh"; | |
| 345 | + sourceTree = "<group>"; | |
| 346 | + }; | |
| 347 | + 3964AEC683B0B18DA6747BEC2DC47E83 /* Pod */ = { | |
| 348 | + isa = PBXGroup; | |
| 349 | + children = ( | |
| 350 | + 5B5EEA0CDBECE7C7A5C11BC71AEBEBBA /* CNLiveRefreshFooter.podspec */, | |
| 351 | + FABAFE7CE42B1D3FCE06EEDC25035895 /* LICENSE */, | |
| 352 | + 4DFC060C2F10D1D3BE1714A787BC6069 /* README.md */, | |
| 353 | + ); | |
| 354 | + name = Pod; | |
| 355 | + sourceTree = "<group>"; | |
| 356 | + }; | |
| 357 | + 6A06433F80093BADBE67BFF332FBA5A5 /* Resources */ = { | |
| 358 | + isa = PBXGroup; | |
| 359 | + children = ( | |
| 360 | + 304CC5D3C2AF74487F5E51E2BD351C87 /* MJRefresh.bundle */, | |
| 361 | + ); | |
| 362 | + name = Resources; | |
| 363 | + sourceTree = "<group>"; | |
| 364 | + }; | |
| 365 | + 6CF05A888950EAD7905D5CF4BF897791 /* Resources */ = { | |
| 366 | + isa = PBXGroup; | |
| 367 | + children = ( | |
| 368 | + F11B6AEB5189027B0A6C6FDFBDD7DEE2 /* Assets.xcassets */, | |
| 369 | + ); | |
| 370 | + name = Resources; | |
| 371 | + sourceTree = "<group>"; | |
| 372 | + }; | |
| 373 | + 6E384A741B4011BC20EC8753B3452488 /* Products */ = { | |
| 374 | + isa = PBXGroup; | |
| 375 | + children = ( | |
| 376 | + F947CBD2DBFEBE5620C0E0A531BF7EA2 /* CNLiveRefreshFooter.bundle */, | |
| 377 | + B8C029907D0E82BF97DED4BCA9EFEAB9 /* CNLiveRefreshFooter.framework */, | |
| 378 | + C1BDD45F09B3CEC54F05952784F1D158 /* MJRefresh.framework */, | |
| 379 | + 0CEFA691BF1A798C5F51B68010CA4E7C /* Pods_CNLiveRefreshFooter_Example.framework */, | |
| 380 | + 6D97A81069DFF7D833553EA36C9D1F76 /* Pods_CNLiveRefreshFooter_Tests.framework */, | |
| 381 | + ); | |
| 382 | + name = Products; | |
| 383 | + sourceTree = "<group>"; | |
| 384 | + }; | |
| 385 | + 7DB346D0F39D3F0E887471402A8071AB = { | |
| 386 | + isa = PBXGroup; | |
| 387 | + children = ( | |
| 388 | + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, | |
| 389 | + A408031739D22815D1B10E7DC185787F /* Development Pods */, | |
| 390 | + F63DF0D4E566BB69A93A3FC7DC0AAD1D /* Frameworks */, | |
| 391 | + DD0132D41CBFCB2611DA7EABABDA47E4 /* Pods */, | |
| 392 | + 6E384A741B4011BC20EC8753B3452488 /* Products */, | |
| 393 | + 9CA71DAB36504A7423D4639F5DEB7BC3 /* Targets Support Files */, | |
| 394 | + ); | |
| 395 | + sourceTree = "<group>"; | |
| 396 | + }; | |
| 397 | + 8236C00D8CF69F52371E800D82672AF2 /* CNLiveRefreshFooter */ = { | |
| 398 | + isa = PBXGroup; | |
| 399 | + children = ( | |
| 400 | + 9BB5B175A94F20FE06A9F374C748A124 /* CNLiveRrfreshFooter.h */, | |
| 401 | + 24552D577CD959C4AA3DFCB554BDB9A7 /* CNLiveRrfreshFooter.m */, | |
| 402 | + 3964AEC683B0B18DA6747BEC2DC47E83 /* Pod */, | |
| 403 | + 6CF05A888950EAD7905D5CF4BF897791 /* Resources */, | |
| 404 | + 1CAC1DA8C380A1C0BD09220832732823 /* Support Files */, | |
| 405 | + ); | |
| 406 | + name = CNLiveRefreshFooter; | |
| 407 | + path = ../..; | |
| 408 | + sourceTree = "<group>"; | |
| 409 | + }; | |
| 410 | + 9CA71DAB36504A7423D4639F5DEB7BC3 /* Targets Support Files */ = { | |
| 411 | + isa = PBXGroup; | |
| 412 | + children = ( | |
| 413 | + B55C49A4D8741CD9DFB11402B646EC70 /* Pods-CNLiveRefreshFooter_Example */, | |
| 414 | + 00D2128E3D14B6D22A9F731FE06EDA56 /* Pods-CNLiveRefreshFooter_Tests */, | |
| 415 | + ); | |
| 416 | + name = "Targets Support Files"; | |
| 417 | + sourceTree = "<group>"; | |
| 418 | + }; | |
| 419 | + A408031739D22815D1B10E7DC185787F /* Development Pods */ = { | |
| 420 | + isa = PBXGroup; | |
| 421 | + children = ( | |
| 422 | + 8236C00D8CF69F52371E800D82672AF2 /* CNLiveRefreshFooter */, | |
| 423 | + ); | |
| 424 | + name = "Development Pods"; | |
| 425 | + sourceTree = "<group>"; | |
| 426 | + }; | |
| 427 | + B55C49A4D8741CD9DFB11402B646EC70 /* Pods-CNLiveRefreshFooter_Example */ = { | |
| 428 | + isa = PBXGroup; | |
| 429 | + children = ( | |
| 430 | + 722F132BBAAB7D5D21F5983CB7517AA1 /* Info.plist */, | |
| 431 | + E2738281A327E43C37E77577465D4195 /* Pods-CNLiveRefreshFooter_Example.modulemap */, | |
| 432 | + EEDE874A8F3F97D00CE3D3446F13F674 /* Pods-CNLiveRefreshFooter_Example-acknowledgements.markdown */, | |
| 433 | + BDA20AC7D28B8E3EF1EA29C2B56E295C /* Pods-CNLiveRefreshFooter_Example-acknowledgements.plist */, | |
| 434 | + 132ECAFF25A0A31AB46588C93DF2FBAE /* Pods-CNLiveRefreshFooter_Example-dummy.m */, | |
| 435 | + 8DA5FE97760F538AD544561F7353EFEC /* Pods-CNLiveRefreshFooter_Example-frameworks.sh */, | |
| 436 | + BE626E4C973C02C2D3AB57F29623342A /* Pods-CNLiveRefreshFooter_Example-resources.sh */, | |
| 437 | + EA464BEEC655FFFBCDE50E037642C9F0 /* Pods-CNLiveRefreshFooter_Example-umbrella.h */, | |
| 438 | + 24ACDE650527FF57D6A6EBFDAEDFCC3C /* Pods-CNLiveRefreshFooter_Example.debug.xcconfig */, | |
| 439 | + 86E793DDDE92FA78384D1FDF7C5283C4 /* Pods-CNLiveRefreshFooter_Example.release.xcconfig */, | |
| 440 | + ); | |
| 441 | + name = "Pods-CNLiveRefreshFooter_Example"; | |
| 442 | + path = "Target Support Files/Pods-CNLiveRefreshFooter_Example"; | |
| 443 | + sourceTree = "<group>"; | |
| 444 | + }; | |
| 445 | + D586138D20C0FDDAAA69BED529E0B4AD /* iOS */ = { | |
| 446 | + isa = PBXGroup; | |
| 447 | + children = ( | |
| 448 | + 5740F0E3F5B79528E4F9BAF55A850995 /* Foundation.framework */, | |
| 449 | + 853528392C89701D61153E0753FCEE98 /* UIKit.framework */, | |
| 450 | + ); | |
| 451 | + name = iOS; | |
| 452 | + sourceTree = "<group>"; | |
| 453 | + }; | |
| 454 | + DD0132D41CBFCB2611DA7EABABDA47E4 /* Pods */ = { | |
| 455 | + isa = PBXGroup; | |
| 456 | + children = ( | |
| 457 | + 0CD1F1B3DBB711F2545AF5DF3CD992F1 /* MJRefresh */, | |
| 458 | + ); | |
| 459 | + name = Pods; | |
| 460 | + sourceTree = "<group>"; | |
| 461 | + }; | |
| 462 | + F63DF0D4E566BB69A93A3FC7DC0AAD1D /* Frameworks */ = { | |
| 463 | + isa = PBXGroup; | |
| 464 | + children = ( | |
| 465 | + 17CCA8DD82EF1C1B58D82DE0271EB93F /* MJRefresh.framework */, | |
| 466 | + D586138D20C0FDDAAA69BED529E0B4AD /* iOS */, | |
| 467 | + ); | |
| 468 | + name = Frameworks; | |
| 469 | + sourceTree = "<group>"; | |
| 470 | + }; | |
| 471 | +/* End PBXGroup section */ | |
| 472 | + | |
| 473 | +/* Begin PBXHeadersBuildPhase section */ | |
| 474 | + 026F060A2632551C3CE862301E32EA08 /* Headers */ = { | |
| 475 | + isa = PBXHeadersBuildPhase; | |
| 476 | + buildActionMask = 2147483647; | |
| 477 | + files = ( | |
| 478 | + FF76F6D337B9427A3311690D4398F445 /* Pods-CNLiveRefreshFooter_Example-umbrella.h in Headers */, | |
| 479 | + ); | |
| 480 | + runOnlyForDeploymentPostprocessing = 0; | |
| 481 | + }; | |
| 482 | + 1490B41E3A26AFEBDA3AE8CF613DAE52 /* Headers */ = { | |
| 483 | + isa = PBXHeadersBuildPhase; | |
| 484 | + buildActionMask = 2147483647; | |
| 485 | + files = ( | |
| 486 | + 29D08C16D0B1C6BD4D4F0730DC5B2FBD /* MJRefresh-umbrella.h in Headers */, | |
| 487 | + F701A51CD65A8A179D6FE1A9E8263C71 /* MJRefresh.h in Headers */, | |
| 488 | + 7F8D862F974506128FA8865D9C22434F /* MJRefreshAutoFooter.h in Headers */, | |
| 489 | + 4F872C99F5884DBED802184212FC979D /* MJRefreshAutoGifFooter.h in Headers */, | |
| 490 | + 8A6C562B653E487F46029726CC02BD29 /* MJRefreshAutoNormalFooter.h in Headers */, | |
| 491 | + 99A39BC606508D879A876669A35FBB42 /* MJRefreshAutoStateFooter.h in Headers */, | |
| 492 | + 01EEC545FF25CE54CCE4BEC9B7064D4E /* MJRefreshBackFooter.h in Headers */, | |
| 493 | + D9996218BD5D2F4593B72CF076BD4398 /* MJRefreshBackGifFooter.h in Headers */, | |
| 494 | + 460487B64992AFDAA91C219D09DA9917 /* MJRefreshBackNormalFooter.h in Headers */, | |
| 495 | + 7584CAD3B28310FD541528A2C31DF3F6 /* MJRefreshBackStateFooter.h in Headers */, | |
| 496 | + 0B5CF04D03873439E98F1CF8CDE587AC /* MJRefreshComponent.h in Headers */, | |
| 497 | + C25251C03BD1EE1D075AD3F7578E43B2 /* MJRefreshConst.h in Headers */, | |
| 498 | + FE215EDA9BEEE84C101B2785E8E21704 /* MJRefreshFooter.h in Headers */, | |
| 499 | + DC6A3DFB0FAF77237B36E1EE9DF4B4FC /* MJRefreshGifHeader.h in Headers */, | |
| 500 | + 468D84CD2552376CA0201C9D79D3E537 /* MJRefreshHeader.h in Headers */, | |
| 501 | + 8647AA2163D02AE912C56218352ECF63 /* MJRefreshNormalHeader.h in Headers */, | |
| 502 | + 9B0EC30E3AD845838CEBB99817E05B64 /* MJRefreshStateHeader.h in Headers */, | |
| 503 | + A2472F19A8616BE3A7BB583F6B66EE70 /* NSBundle+MJRefresh.h in Headers */, | |
| 504 | + D9684AA8B03AB32701210E711B8DDFD3 /* UIScrollView+MJExtension.h in Headers */, | |
| 505 | + 19BE7BE3BD9A74C25C6F3568C5A0890E /* UIScrollView+MJRefresh.h in Headers */, | |
| 506 | + 036EEBC27F9F9657F7493AE5D0854619 /* UIView+MJExtension.h in Headers */, | |
| 507 | + ); | |
| 508 | + runOnlyForDeploymentPostprocessing = 0; | |
| 509 | + }; | |
| 510 | + 6161ABE1177A4B44838948B1AE4E2F1D /* Headers */ = { | |
| 511 | + isa = PBXHeadersBuildPhase; | |
| 512 | + buildActionMask = 2147483647; | |
| 513 | + files = ( | |
| 514 | + 7774DC14194F2E07AFC1C630FB89FB6F /* CNLiveRefreshFooter-umbrella.h in Headers */, | |
| 515 | + AF08E4E5075CAD66BEC7153916B2CA09 /* CNLiveRrfreshFooter.h in Headers */, | |
| 516 | + ); | |
| 517 | + runOnlyForDeploymentPostprocessing = 0; | |
| 518 | + }; | |
| 519 | + 827AB0BFC554758BC911DCC991676D8F /* Headers */ = { | |
| 520 | + isa = PBXHeadersBuildPhase; | |
| 521 | + buildActionMask = 2147483647; | |
| 522 | + files = ( | |
| 523 | + 7D7EDD288250C0B052A2435E03FB5520 /* Pods-CNLiveRefreshFooter_Tests-umbrella.h in Headers */, | |
| 524 | + ); | |
| 525 | + runOnlyForDeploymentPostprocessing = 0; | |
| 526 | + }; | |
| 527 | +/* End PBXHeadersBuildPhase section */ | |
| 528 | + | |
| 529 | +/* Begin PBXNativeTarget section */ | |
| 530 | + 0F9E487FA6DD9E9AA3A0B0FB5ED6E79D /* CNLiveRefreshFooter-CNLiveRefreshFooter */ = { | |
| 531 | + isa = PBXNativeTarget; | |
| 532 | + buildConfigurationList = 8CBC1C8E1C3AB9FA0E6015D73FEFC530 /* Build configuration list for PBXNativeTarget "CNLiveRefreshFooter-CNLiveRefreshFooter" */; | |
| 533 | + buildPhases = ( | |
| 534 | + 40AF44D125F308B64B6B10AB056D5631 /* Sources */, | |
| 535 | + A511C42A362EEFE2989E0887CE94C423 /* Frameworks */, | |
| 536 | + E2AD781CB90D7A2D298546B3AAB71449 /* Resources */, | |
| 537 | + ); | |
| 538 | + buildRules = ( | |
| 539 | + ); | |
| 540 | + dependencies = ( | |
| 541 | + ); | |
| 542 | + name = "CNLiveRefreshFooter-CNLiveRefreshFooter"; | |
| 543 | + productName = "CNLiveRefreshFooter-CNLiveRefreshFooter"; | |
| 544 | + productReference = F947CBD2DBFEBE5620C0E0A531BF7EA2 /* CNLiveRefreshFooter.bundle */; | |
| 545 | + productType = "com.apple.product-type.bundle"; | |
| 546 | + }; | |
| 547 | + 369D809BEF3AA025DED90434D093B38A /* CNLiveRefreshFooter */ = { | |
| 548 | + isa = PBXNativeTarget; | |
| 549 | + buildConfigurationList = D97A293FCBE2A6AA6FF6FBFDC114DA36 /* Build configuration list for PBXNativeTarget "CNLiveRefreshFooter" */; | |
| 550 | + buildPhases = ( | |
| 551 | + 6161ABE1177A4B44838948B1AE4E2F1D /* Headers */, | |
| 552 | + 802089C8BDB8D0311494FFEE2455F483 /* Sources */, | |
| 553 | + EC03DA0DC91C6EB5EDDC427912BD46F6 /* Frameworks */, | |
| 554 | + 20E815A9F3D0FBC91FF602C2439C4C43 /* Resources */, | |
| 555 | + ); | |
| 556 | + buildRules = ( | |
| 557 | + ); | |
| 558 | + dependencies = ( | |
| 559 | + 943DDB1D8BA55636D130155D9BD2244C /* PBXTargetDependency */, | |
| 560 | + 3744D034C0F5D38C551D4D9B07E14B39 /* PBXTargetDependency */, | |
| 561 | + ); | |
| 562 | + name = CNLiveRefreshFooter; | |
| 563 | + productName = CNLiveRefreshFooter; | |
| 564 | + productReference = B8C029907D0E82BF97DED4BCA9EFEAB9 /* CNLiveRefreshFooter.framework */; | |
| 565 | + productType = "com.apple.product-type.framework"; | |
| 566 | + }; | |
| 567 | + 484FC89C64DE7B3C8D3DE6D25F5592DC /* Pods-CNLiveRefreshFooter_Tests */ = { | |
| 568 | + isa = PBXNativeTarget; | |
| 569 | + buildConfigurationList = E23CBE165A1011058D743D5192953233 /* Build configuration list for PBXNativeTarget "Pods-CNLiveRefreshFooter_Tests" */; | |
| 570 | + buildPhases = ( | |
| 571 | + 827AB0BFC554758BC911DCC991676D8F /* Headers */, | |
| 572 | + 2FF48B6B946E06F1D18E8ABE864007CF /* Sources */, | |
| 573 | + 9F3E52A545D376284B993E4A1E5BC062 /* Frameworks */, | |
| 574 | + 388B9C20CEDFFC9EF35122848C4B3AF8 /* Resources */, | |
| 575 | + ); | |
| 576 | + buildRules = ( | |
| 577 | + ); | |
| 578 | + dependencies = ( | |
| 579 | + E9DFAECA1D4421AF764500670B2DEB0A /* PBXTargetDependency */, | |
| 580 | + 248D8513B3EF4A5F4C5425175E72C27A /* PBXTargetDependency */, | |
| 581 | + ); | |
| 582 | + name = "Pods-CNLiveRefreshFooter_Tests"; | |
| 583 | + productName = "Pods-CNLiveRefreshFooter_Tests"; | |
| 584 | + productReference = 6D97A81069DFF7D833553EA36C9D1F76 /* Pods_CNLiveRefreshFooter_Tests.framework */; | |
| 585 | + productType = "com.apple.product-type.framework"; | |
| 586 | + }; | |
| 587 | + 6BE55A9780BE8C54418AC68CC8C504FA /* Pods-CNLiveRefreshFooter_Example */ = { | |
| 588 | + isa = PBXNativeTarget; | |
| 589 | + buildConfigurationList = 31FC733F59A86EECAE54C5BD43A2CF0E /* Build configuration list for PBXNativeTarget "Pods-CNLiveRefreshFooter_Example" */; | |
| 590 | + buildPhases = ( | |
| 591 | + 026F060A2632551C3CE862301E32EA08 /* Headers */, | |
| 592 | + DE19F2DEF749EDE497D5DDCB8F17CC85 /* Sources */, | |
| 593 | + 0E3D542A822F8EA245830D8833AAD699 /* Frameworks */, | |
| 594 | + 77EA349B2EBAE7DA4877565A35F08A2C /* Resources */, | |
| 595 | + ); | |
| 596 | + buildRules = ( | |
| 597 | + ); | |
| 598 | + dependencies = ( | |
| 599 | + 485BB6F110A029123B25F996640F2550 /* PBXTargetDependency */, | |
| 600 | + 2C830BB72900564B584F181A98D5E797 /* PBXTargetDependency */, | |
| 601 | + ); | |
| 602 | + name = "Pods-CNLiveRefreshFooter_Example"; | |
| 603 | + productName = "Pods-CNLiveRefreshFooter_Example"; | |
| 604 | + productReference = 0CEFA691BF1A798C5F51B68010CA4E7C /* Pods_CNLiveRefreshFooter_Example.framework */; | |
| 605 | + productType = "com.apple.product-type.framework"; | |
| 606 | + }; | |
| 607 | + D91815A523706B3FD04AEC51AE7D38B5 /* MJRefresh */ = { | |
| 608 | + isa = PBXNativeTarget; | |
| 609 | + buildConfigurationList = 889C9D2B9F70A3EEB0D80E2DCC04864D /* Build configuration list for PBXNativeTarget "MJRefresh" */; | |
| 610 | + buildPhases = ( | |
| 611 | + 1490B41E3A26AFEBDA3AE8CF613DAE52 /* Headers */, | |
| 612 | + F5F88C76F4AB2BEE2461FB2DB8A644A5 /* Sources */, | |
| 613 | + 79F32458013D0D5F9E7EF183F332C36B /* Frameworks */, | |
| 614 | + 62B5F9B979C3A698086ADC338E5FFAFD /* Resources */, | |
| 615 | + ); | |
| 616 | + buildRules = ( | |
| 617 | + ); | |
| 618 | + dependencies = ( | |
| 619 | + ); | |
| 620 | + name = MJRefresh; | |
| 621 | + productName = MJRefresh; | |
| 622 | + productReference = C1BDD45F09B3CEC54F05952784F1D158 /* MJRefresh.framework */; | |
| 623 | + productType = "com.apple.product-type.framework"; | |
| 624 | + }; | |
| 625 | +/* End PBXNativeTarget section */ | |
| 626 | + | |
| 627 | +/* Begin PBXProject section */ | |
| 628 | + D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { | |
| 629 | + isa = PBXProject; | |
| 630 | + attributes = { | |
| 631 | + LastSwiftUpdateCheck = 0930; | |
| 632 | + LastUpgradeCheck = 0930; | |
| 633 | + }; | |
| 634 | + buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; | |
| 635 | + compatibilityVersion = "Xcode 3.2"; | |
| 636 | + developmentRegion = English; | |
| 637 | + hasScannedForEncodings = 0; | |
| 638 | + knownRegions = ( | |
| 639 | + en, | |
| 640 | + ); | |
| 641 | + mainGroup = 7DB346D0F39D3F0E887471402A8071AB; | |
| 642 | + productRefGroup = 6E384A741B4011BC20EC8753B3452488 /* Products */; | |
| 643 | + projectDirPath = ""; | |
| 644 | + projectRoot = ""; | |
| 645 | + targets = ( | |
| 646 | + 369D809BEF3AA025DED90434D093B38A /* CNLiveRefreshFooter */, | |
| 647 | + 0F9E487FA6DD9E9AA3A0B0FB5ED6E79D /* CNLiveRefreshFooter-CNLiveRefreshFooter */, | |
| 648 | + D91815A523706B3FD04AEC51AE7D38B5 /* MJRefresh */, | |
| 649 | + 6BE55A9780BE8C54418AC68CC8C504FA /* Pods-CNLiveRefreshFooter_Example */, | |
| 650 | + 484FC89C64DE7B3C8D3DE6D25F5592DC /* Pods-CNLiveRefreshFooter_Tests */, | |
| 651 | + ); | |
| 652 | + }; | |
| 653 | +/* End PBXProject section */ | |
| 654 | + | |
| 655 | +/* Begin PBXResourcesBuildPhase section */ | |
| 656 | + 20E815A9F3D0FBC91FF602C2439C4C43 /* Resources */ = { | |
| 657 | + isa = PBXResourcesBuildPhase; | |
| 658 | + buildActionMask = 2147483647; | |
| 659 | + files = ( | |
| 660 | + 0E36E8B51184F67033DDE3DF4D5EB3E2 /* CNLiveRefreshFooter.bundle in Resources */, | |
| 661 | + ); | |
| 662 | + runOnlyForDeploymentPostprocessing = 0; | |
| 663 | + }; | |
| 664 | + 388B9C20CEDFFC9EF35122848C4B3AF8 /* Resources */ = { | |
| 665 | + isa = PBXResourcesBuildPhase; | |
| 666 | + buildActionMask = 2147483647; | |
| 667 | + files = ( | |
| 668 | + ); | |
| 669 | + runOnlyForDeploymentPostprocessing = 0; | |
| 670 | + }; | |
| 671 | + 62B5F9B979C3A698086ADC338E5FFAFD /* Resources */ = { | |
| 672 | + isa = PBXResourcesBuildPhase; | |
| 673 | + buildActionMask = 2147483647; | |
| 674 | + files = ( | |
| 675 | + 662AFCF9B75D4B3D7AA37A3031A69972 /* MJRefresh.bundle in Resources */, | |
| 676 | + ); | |
| 677 | + runOnlyForDeploymentPostprocessing = 0; | |
| 678 | + }; | |
| 679 | + 77EA349B2EBAE7DA4877565A35F08A2C /* Resources */ = { | |
| 680 | + isa = PBXResourcesBuildPhase; | |
| 681 | + buildActionMask = 2147483647; | |
| 682 | + files = ( | |
| 683 | + ); | |
| 684 | + runOnlyForDeploymentPostprocessing = 0; | |
| 685 | + }; | |
| 686 | + E2AD781CB90D7A2D298546B3AAB71449 /* Resources */ = { | |
| 687 | + isa = PBXResourcesBuildPhase; | |
| 688 | + buildActionMask = 2147483647; | |
| 689 | + files = ( | |
| 690 | + A34E4B45BC9F66E2ACFAD301558D4E99 /* Assets.xcassets in Resources */, | |
| 691 | + ); | |
| 692 | + runOnlyForDeploymentPostprocessing = 0; | |
| 693 | + }; | |
| 694 | +/* End PBXResourcesBuildPhase section */ | |
| 695 | + | |
| 696 | +/* Begin PBXSourcesBuildPhase section */ | |
| 697 | + 2FF48B6B946E06F1D18E8ABE864007CF /* Sources */ = { | |
| 698 | + isa = PBXSourcesBuildPhase; | |
| 699 | + buildActionMask = 2147483647; | |
| 700 | + files = ( | |
| 701 | + 4920B097AA6B4188E9477D26F87401DD /* Pods-CNLiveRefreshFooter_Tests-dummy.m in Sources */, | |
| 702 | + ); | |
| 703 | + runOnlyForDeploymentPostprocessing = 0; | |
| 704 | + }; | |
| 705 | + 40AF44D125F308B64B6B10AB056D5631 /* Sources */ = { | |
| 706 | + isa = PBXSourcesBuildPhase; | |
| 707 | + buildActionMask = 2147483647; | |
| 708 | + files = ( | |
| 709 | + ); | |
| 710 | + runOnlyForDeploymentPostprocessing = 0; | |
| 711 | + }; | |
| 712 | + 802089C8BDB8D0311494FFEE2455F483 /* Sources */ = { | |
| 713 | + isa = PBXSourcesBuildPhase; | |
| 714 | + buildActionMask = 2147483647; | |
| 715 | + files = ( | |
| 716 | + 0A8C5C35ADB95BABEC97F96FE47EDE5B /* CNLiveRefreshFooter-dummy.m in Sources */, | |
| 717 | + 00983A59DC9AC329089D231C929AC63C /* CNLiveRrfreshFooter.m in Sources */, | |
| 718 | + ); | |
| 719 | + runOnlyForDeploymentPostprocessing = 0; | |
| 720 | + }; | |
| 721 | + DE19F2DEF749EDE497D5DDCB8F17CC85 /* Sources */ = { | |
| 722 | + isa = PBXSourcesBuildPhase; | |
| 723 | + buildActionMask = 2147483647; | |
| 724 | + files = ( | |
| 725 | + 8DF6D2D9C9D2D76C3E4A5B75CCEB25B5 /* Pods-CNLiveRefreshFooter_Example-dummy.m in Sources */, | |
| 726 | + ); | |
| 727 | + runOnlyForDeploymentPostprocessing = 0; | |
| 728 | + }; | |
| 729 | + F5F88C76F4AB2BEE2461FB2DB8A644A5 /* Sources */ = { | |
| 730 | + isa = PBXSourcesBuildPhase; | |
| 731 | + buildActionMask = 2147483647; | |
| 732 | + files = ( | |
| 733 | + C354F8E6602B4A56B8719408B3AD4878 /* MJRefresh-dummy.m in Sources */, | |
| 734 | + A4B19881D9B1C4057153964434F67F11 /* MJRefreshAutoFooter.m in Sources */, | |
| 735 | + AFD980E96D4AA316A88310F01148B282 /* MJRefreshAutoGifFooter.m in Sources */, | |
| 736 | + ED11D9F54FA31C3D6A4C19D52D9F9D8E /* MJRefreshAutoNormalFooter.m in Sources */, | |
| 737 | + DA52AB1B581B47254CDF98FD3C795074 /* MJRefreshAutoStateFooter.m in Sources */, | |
| 738 | + A953A3721D918FE61E22B868B6084FBE /* MJRefreshBackFooter.m in Sources */, | |
| 739 | + 641F3DED143FC2FA8AB5D90FAF86018C /* MJRefreshBackGifFooter.m in Sources */, | |
| 740 | + 910AA0E2004342F1E17A360E390BCF5E /* MJRefreshBackNormalFooter.m in Sources */, | |
| 741 | + 666D7FD0EDAC511968DE974A820D260F /* MJRefreshBackStateFooter.m in Sources */, | |
| 742 | + 65277D95D4D640398EE305CA79EBE8F6 /* MJRefreshComponent.m in Sources */, | |
| 743 | + 091593D5ADC2D430C27CFAD7F8F29EEC /* MJRefreshConst.m in Sources */, | |
| 744 | + E61CD1E9ABE4359E28C8C64D6C43D4FB /* MJRefreshFooter.m in Sources */, | |
| 745 | + 95F372C980C43B78630496BF82057CA7 /* MJRefreshGifHeader.m in Sources */, | |
| 746 | + EC1D76DA27ABDBF3F6364DBD2E235307 /* MJRefreshHeader.m in Sources */, | |
| 747 | + 997A48F3EC24E144F1F2A3A57CA1DA7A /* MJRefreshNormalHeader.m in Sources */, | |
| 748 | + 2B3FAE913033A01558C6A815E81D63F0 /* MJRefreshStateHeader.m in Sources */, | |
| 749 | + 4AA475AA574104E6652E675733422473 /* NSBundle+MJRefresh.m in Sources */, | |
| 750 | + 08B53CFE1016B51209D9EDF8DFA4FC65 /* UIScrollView+MJExtension.m in Sources */, | |
| 751 | + 438D496BC430861779C2E42A608B9172 /* UIScrollView+MJRefresh.m in Sources */, | |
| 752 | + 48E227D96D542C3509080C6245C5816B /* UIView+MJExtension.m in Sources */, | |
| 753 | + ); | |
| 754 | + runOnlyForDeploymentPostprocessing = 0; | |
| 755 | + }; | |
| 756 | +/* End PBXSourcesBuildPhase section */ | |
| 757 | + | |
| 758 | +/* Begin PBXTargetDependency section */ | |
| 759 | + 248D8513B3EF4A5F4C5425175E72C27A /* PBXTargetDependency */ = { | |
| 760 | + isa = PBXTargetDependency; | |
| 761 | + name = "Pods-CNLiveRefreshFooter_Example"; | |
| 762 | + target = 6BE55A9780BE8C54418AC68CC8C504FA /* Pods-CNLiveRefreshFooter_Example */; | |
| 763 | + targetProxy = 01194BB02A1AD512ADCE102C46EAC771 /* PBXContainerItemProxy */; | |
| 764 | + }; | |
| 765 | + 2C830BB72900564B584F181A98D5E797 /* PBXTargetDependency */ = { | |
| 766 | + isa = PBXTargetDependency; | |
| 767 | + name = MJRefresh; | |
| 768 | + target = D91815A523706B3FD04AEC51AE7D38B5 /* MJRefresh */; | |
| 769 | + targetProxy = E40BB89F18785CF85E96BE2A870586E6 /* PBXContainerItemProxy */; | |
| 770 | + }; | |
| 771 | + 3744D034C0F5D38C551D4D9B07E14B39 /* PBXTargetDependency */ = { | |
| 772 | + isa = PBXTargetDependency; | |
| 773 | + name = MJRefresh; | |
| 774 | + target = D91815A523706B3FD04AEC51AE7D38B5 /* MJRefresh */; | |
| 775 | + targetProxy = B5A4E1D74185AFA28F643E05E3E94442 /* PBXContainerItemProxy */; | |
| 776 | + }; | |
| 777 | + 485BB6F110A029123B25F996640F2550 /* PBXTargetDependency */ = { | |
| 778 | + isa = PBXTargetDependency; | |
| 779 | + name = CNLiveRefreshFooter; | |
| 780 | + target = 369D809BEF3AA025DED90434D093B38A /* CNLiveRefreshFooter */; | |
| 781 | + targetProxy = E708EE9818101FEEFC34E4E67ED488B0 /* PBXContainerItemProxy */; | |
| 782 | + }; | |
| 783 | + 943DDB1D8BA55636D130155D9BD2244C /* PBXTargetDependency */ = { | |
| 784 | + isa = PBXTargetDependency; | |
| 785 | + name = "CNLiveRefreshFooter-CNLiveRefreshFooter"; | |
| 786 | + target = 0F9E487FA6DD9E9AA3A0B0FB5ED6E79D /* CNLiveRefreshFooter-CNLiveRefreshFooter */; | |
| 787 | + targetProxy = E94244D5F34EE0A3BCF77C1A9C034054 /* PBXContainerItemProxy */; | |
| 788 | + }; | |
| 789 | + E9DFAECA1D4421AF764500670B2DEB0A /* PBXTargetDependency */ = { | |
| 790 | + isa = PBXTargetDependency; | |
| 791 | + name = MJRefresh; | |
| 792 | + target = D91815A523706B3FD04AEC51AE7D38B5 /* MJRefresh */; | |
| 793 | + targetProxy = 80A70501ACEA096DC1EEEB5C04BEE383 /* PBXContainerItemProxy */; | |
| 794 | + }; | |
| 795 | +/* End PBXTargetDependency section */ | |
| 796 | + | |
| 797 | +/* Begin XCBuildConfiguration section */ | |
| 798 | + 13772838DE2E0CB868EE50661D78449B /* Release */ = { | |
| 799 | + isa = XCBuildConfiguration; | |
| 800 | + baseConfigurationReference = C7CC4BFD7F50D0125AF48708AD97F146 /* CNLiveRefreshFooter.xcconfig */; | |
| 801 | + buildSettings = { | |
| 802 | + CODE_SIGN_IDENTITY = "iPhone Developer"; | |
| 803 | + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/CNLiveRefreshFooter"; | |
| 804 | + INFOPLIST_FILE = "Target Support Files/CNLiveRefreshFooter/ResourceBundle-CNLiveRefreshFooter-Info.plist"; | |
| 805 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 806 | + PRODUCT_NAME = CNLiveRefreshFooter; | |
| 807 | + SDKROOT = iphoneos; | |
| 808 | + SKIP_INSTALL = YES; | |
| 809 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 810 | + WRAPPER_EXTENSION = bundle; | |
| 811 | + }; | |
| 812 | + name = Release; | |
| 813 | + }; | |
| 814 | + 236E6FC0E14B3DD7BD90579DA2961EA7 /* Debug */ = { | |
| 815 | + isa = XCBuildConfiguration; | |
| 816 | + baseConfigurationReference = C7CC4BFD7F50D0125AF48708AD97F146 /* CNLiveRefreshFooter.xcconfig */; | |
| 817 | + buildSettings = { | |
| 818 | + CODE_SIGN_IDENTITY = ""; | |
| 819 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | |
| 820 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | |
| 821 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | |
| 822 | + CURRENT_PROJECT_VERSION = 1; | |
| 823 | + DEFINES_MODULE = YES; | |
| 824 | + DYLIB_COMPATIBILITY_VERSION = 1; | |
| 825 | + DYLIB_CURRENT_VERSION = 1; | |
| 826 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | |
| 827 | + GCC_PREFIX_HEADER = "Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter-prefix.pch"; | |
| 828 | + INFOPLIST_FILE = "Target Support Files/CNLiveRefreshFooter/Info.plist"; | |
| 829 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | |
| 830 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 831 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | |
| 832 | + MODULEMAP_FILE = "Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter.modulemap"; | |
| 833 | + PRODUCT_MODULE_NAME = CNLiveRefreshFooter; | |
| 834 | + PRODUCT_NAME = CNLiveRefreshFooter; | |
| 835 | + SDKROOT = iphoneos; | |
| 836 | + SKIP_INSTALL = YES; | |
| 837 | + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; | |
| 838 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 839 | + VERSIONING_SYSTEM = "apple-generic"; | |
| 840 | + VERSION_INFO_PREFIX = ""; | |
| 841 | + }; | |
| 842 | + name = Debug; | |
| 843 | + }; | |
| 844 | + 2F7E7475AFDC0744BD9E216CB46C433C /* Debug */ = { | |
| 845 | + isa = XCBuildConfiguration; | |
| 846 | + baseConfigurationReference = 240F5B7917D3F1FDFB931146ECB8CD6F /* MJRefresh.xcconfig */; | |
| 847 | + buildSettings = { | |
| 848 | + CODE_SIGN_IDENTITY = ""; | |
| 849 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | |
| 850 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | |
| 851 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | |
| 852 | + CURRENT_PROJECT_VERSION = 1; | |
| 853 | + DEFINES_MODULE = YES; | |
| 854 | + DYLIB_COMPATIBILITY_VERSION = 1; | |
| 855 | + DYLIB_CURRENT_VERSION = 1; | |
| 856 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | |
| 857 | + GCC_PREFIX_HEADER = "Target Support Files/MJRefresh/MJRefresh-prefix.pch"; | |
| 858 | + INFOPLIST_FILE = "Target Support Files/MJRefresh/Info.plist"; | |
| 859 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | |
| 860 | + IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |
| 861 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | |
| 862 | + MODULEMAP_FILE = "Target Support Files/MJRefresh/MJRefresh.modulemap"; | |
| 863 | + PRODUCT_MODULE_NAME = MJRefresh; | |
| 864 | + PRODUCT_NAME = MJRefresh; | |
| 865 | + SDKROOT = iphoneos; | |
| 866 | + SKIP_INSTALL = YES; | |
| 867 | + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; | |
| 868 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 869 | + VERSIONING_SYSTEM = "apple-generic"; | |
| 870 | + VERSION_INFO_PREFIX = ""; | |
| 871 | + }; | |
| 872 | + name = Debug; | |
| 873 | + }; | |
| 874 | + 3F317E47BC3F896C3BE2E9C22A1ACACE /* Debug */ = { | |
| 875 | + isa = XCBuildConfiguration; | |
| 876 | + baseConfigurationReference = 851BBDA95F8412173115442AA4B9CEC5 /* Pods-CNLiveRefreshFooter_Tests.debug.xcconfig */; | |
| 877 | + buildSettings = { | |
| 878 | + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; | |
| 879 | + CODE_SIGN_IDENTITY = ""; | |
| 880 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | |
| 881 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | |
| 882 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | |
| 883 | + CURRENT_PROJECT_VERSION = 1; | |
| 884 | + DEFINES_MODULE = YES; | |
| 885 | + DYLIB_COMPATIBILITY_VERSION = 1; | |
| 886 | + DYLIB_CURRENT_VERSION = 1; | |
| 887 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | |
| 888 | + INFOPLIST_FILE = "Target Support Files/Pods-CNLiveRefreshFooter_Tests/Info.plist"; | |
| 889 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | |
| 890 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 891 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | |
| 892 | + MACH_O_TYPE = staticlib; | |
| 893 | + MODULEMAP_FILE = "Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests.modulemap"; | |
| 894 | + OTHER_LDFLAGS = ""; | |
| 895 | + OTHER_LIBTOOLFLAGS = ""; | |
| 896 | + PODS_ROOT = "$(SRCROOT)"; | |
| 897 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; | |
| 898 | + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; | |
| 899 | + SDKROOT = iphoneos; | |
| 900 | + SKIP_INSTALL = YES; | |
| 901 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 902 | + VERSIONING_SYSTEM = "apple-generic"; | |
| 903 | + VERSION_INFO_PREFIX = ""; | |
| 904 | + }; | |
| 905 | + name = Debug; | |
| 906 | + }; | |
| 907 | + 400134497F4B88BC4BC8C77C53FFCE21 /* Debug */ = { | |
| 908 | + isa = XCBuildConfiguration; | |
| 909 | + baseConfigurationReference = C7CC4BFD7F50D0125AF48708AD97F146 /* CNLiveRefreshFooter.xcconfig */; | |
| 910 | + buildSettings = { | |
| 911 | + CODE_SIGN_IDENTITY = "iPhone Developer"; | |
| 912 | + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/CNLiveRefreshFooter"; | |
| 913 | + INFOPLIST_FILE = "Target Support Files/CNLiveRefreshFooter/ResourceBundle-CNLiveRefreshFooter-Info.plist"; | |
| 914 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 915 | + PRODUCT_NAME = CNLiveRefreshFooter; | |
| 916 | + SDKROOT = iphoneos; | |
| 917 | + SKIP_INSTALL = YES; | |
| 918 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 919 | + WRAPPER_EXTENSION = bundle; | |
| 920 | + }; | |
| 921 | + name = Debug; | |
| 922 | + }; | |
| 923 | + 54B9FE5F115293277F45CE58A87D3BDF /* Release */ = { | |
| 924 | + isa = XCBuildConfiguration; | |
| 925 | + baseConfigurationReference = C7CC4BFD7F50D0125AF48708AD97F146 /* CNLiveRefreshFooter.xcconfig */; | |
| 926 | + buildSettings = { | |
| 927 | + CODE_SIGN_IDENTITY = ""; | |
| 928 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | |
| 929 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | |
| 930 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | |
| 931 | + CURRENT_PROJECT_VERSION = 1; | |
| 932 | + DEFINES_MODULE = YES; | |
| 933 | + DYLIB_COMPATIBILITY_VERSION = 1; | |
| 934 | + DYLIB_CURRENT_VERSION = 1; | |
| 935 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | |
| 936 | + GCC_PREFIX_HEADER = "Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter-prefix.pch"; | |
| 937 | + INFOPLIST_FILE = "Target Support Files/CNLiveRefreshFooter/Info.plist"; | |
| 938 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | |
| 939 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 940 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | |
| 941 | + MODULEMAP_FILE = "Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter.modulemap"; | |
| 942 | + PRODUCT_MODULE_NAME = CNLiveRefreshFooter; | |
| 943 | + PRODUCT_NAME = CNLiveRefreshFooter; | |
| 944 | + SDKROOT = iphoneos; | |
| 945 | + SKIP_INSTALL = YES; | |
| 946 | + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; | |
| 947 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 948 | + VALIDATE_PRODUCT = YES; | |
| 949 | + VERSIONING_SYSTEM = "apple-generic"; | |
| 950 | + VERSION_INFO_PREFIX = ""; | |
| 951 | + }; | |
| 952 | + name = Release; | |
| 953 | + }; | |
| 954 | + 5DE19CECB206ACCCACF04D62F93FFDA6 /* Release */ = { | |
| 955 | + isa = XCBuildConfiguration; | |
| 956 | + buildSettings = { | |
| 957 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 958 | + CLANG_ANALYZER_NONNULL = YES; | |
| 959 | + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | |
| 960 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; | |
| 961 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 962 | + CLANG_ENABLE_MODULES = YES; | |
| 963 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 964 | + CLANG_ENABLE_OBJC_WEAK = YES; | |
| 965 | + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | |
| 966 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 967 | + CLANG_WARN_COMMA = YES; | |
| 968 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 969 | + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; | |
| 970 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 971 | + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | |
| 972 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 973 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 974 | + CLANG_WARN_INFINITE_RECURSION = YES; | |
| 975 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 976 | + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | |
| 977 | + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | |
| 978 | + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | |
| 979 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 980 | + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | |
| 981 | + CLANG_WARN_STRICT_PROTOTYPES = YES; | |
| 982 | + CLANG_WARN_SUSPICIOUS_MOVE = YES; | |
| 983 | + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | |
| 984 | + CLANG_WARN_UNREACHABLE_CODE = YES; | |
| 985 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 986 | + CODE_SIGNING_ALLOWED = NO; | |
| 987 | + CODE_SIGNING_REQUIRED = NO; | |
| 988 | + COPY_PHASE_STRIP = NO; | |
| 989 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | |
| 990 | + ENABLE_NS_ASSERTIONS = NO; | |
| 991 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | |
| 992 | + GCC_C_LANGUAGE_STANDARD = gnu11; | |
| 993 | + GCC_NO_COMMON_BLOCKS = YES; | |
| 994 | + GCC_PREPROCESSOR_DEFINITIONS = ( | |
| 995 | + "POD_CONFIGURATION_RELEASE=1", | |
| 996 | + "$(inherited)", | |
| 997 | + ); | |
| 998 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 999 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 1000 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 1001 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 1002 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 1003 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 1004 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 1005 | + MTL_ENABLE_DEBUG_INFO = NO; | |
| 1006 | + MTL_FAST_MATH = YES; | |
| 1007 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 1008 | + STRIP_INSTALLED_PRODUCT = NO; | |
| 1009 | + SWIFT_COMPILATION_MODE = wholemodule; | |
| 1010 | + SWIFT_OPTIMIZATION_LEVEL = "-O"; | |
| 1011 | + SWIFT_VERSION = 4.2; | |
| 1012 | + SYMROOT = "${SRCROOT}/../build"; | |
| 1013 | + }; | |
| 1014 | + name = Release; | |
| 1015 | + }; | |
| 1016 | + 858D01EEFE984249A9581D18DBEA53F1 /* Debug */ = { | |
| 1017 | + isa = XCBuildConfiguration; | |
| 1018 | + buildSettings = { | |
| 1019 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 1020 | + CLANG_ANALYZER_NONNULL = YES; | |
| 1021 | + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | |
| 1022 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; | |
| 1023 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 1024 | + CLANG_ENABLE_MODULES = YES; | |
| 1025 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 1026 | + CLANG_ENABLE_OBJC_WEAK = YES; | |
| 1027 | + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | |
| 1028 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 1029 | + CLANG_WARN_COMMA = YES; | |
| 1030 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 1031 | + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; | |
| 1032 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 1033 | + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | |
| 1034 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 1035 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 1036 | + CLANG_WARN_INFINITE_RECURSION = YES; | |
| 1037 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 1038 | + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | |
| 1039 | + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | |
| 1040 | + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | |
| 1041 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 1042 | + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | |
| 1043 | + CLANG_WARN_STRICT_PROTOTYPES = YES; | |
| 1044 | + CLANG_WARN_SUSPICIOUS_MOVE = YES; | |
| 1045 | + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | |
| 1046 | + CLANG_WARN_UNREACHABLE_CODE = YES; | |
| 1047 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 1048 | + CODE_SIGNING_ALLOWED = NO; | |
| 1049 | + CODE_SIGNING_REQUIRED = NO; | |
| 1050 | + COPY_PHASE_STRIP = NO; | |
| 1051 | + DEBUG_INFORMATION_FORMAT = dwarf; | |
| 1052 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | |
| 1053 | + ENABLE_TESTABILITY = YES; | |
| 1054 | + GCC_C_LANGUAGE_STANDARD = gnu11; | |
| 1055 | + GCC_DYNAMIC_NO_PIC = NO; | |
| 1056 | + GCC_NO_COMMON_BLOCKS = YES; | |
| 1057 | + GCC_OPTIMIZATION_LEVEL = 0; | |
| 1058 | + GCC_PREPROCESSOR_DEFINITIONS = ( | |
| 1059 | + "POD_CONFIGURATION_DEBUG=1", | |
| 1060 | + "DEBUG=1", | |
| 1061 | + "$(inherited)", | |
| 1062 | + ); | |
| 1063 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 1064 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 1065 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 1066 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 1067 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 1068 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 1069 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 1070 | + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; | |
| 1071 | + MTL_FAST_MATH = YES; | |
| 1072 | + ONLY_ACTIVE_ARCH = YES; | |
| 1073 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 1074 | + STRIP_INSTALLED_PRODUCT = NO; | |
| 1075 | + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; | |
| 1076 | + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | |
| 1077 | + SWIFT_VERSION = 4.2; | |
| 1078 | + SYMROOT = "${SRCROOT}/../build"; | |
| 1079 | + }; | |
| 1080 | + name = Debug; | |
| 1081 | + }; | |
| 1082 | + C02FC3E651D417917A0F1EC62833A51A /* Release */ = { | |
| 1083 | + isa = XCBuildConfiguration; | |
| 1084 | + baseConfigurationReference = 86E793DDDE92FA78384D1FDF7C5283C4 /* Pods-CNLiveRefreshFooter_Example.release.xcconfig */; | |
| 1085 | + buildSettings = { | |
| 1086 | + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; | |
| 1087 | + CODE_SIGN_IDENTITY = ""; | |
| 1088 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | |
| 1089 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | |
| 1090 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | |
| 1091 | + CURRENT_PROJECT_VERSION = 1; | |
| 1092 | + DEFINES_MODULE = YES; | |
| 1093 | + DYLIB_COMPATIBILITY_VERSION = 1; | |
| 1094 | + DYLIB_CURRENT_VERSION = 1; | |
| 1095 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | |
| 1096 | + INFOPLIST_FILE = "Target Support Files/Pods-CNLiveRefreshFooter_Example/Info.plist"; | |
| 1097 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | |
| 1098 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 1099 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | |
| 1100 | + MACH_O_TYPE = staticlib; | |
| 1101 | + MODULEMAP_FILE = "Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example.modulemap"; | |
| 1102 | + OTHER_LDFLAGS = ""; | |
| 1103 | + OTHER_LIBTOOLFLAGS = ""; | |
| 1104 | + PODS_ROOT = "$(SRCROOT)"; | |
| 1105 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; | |
| 1106 | + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; | |
| 1107 | + SDKROOT = iphoneos; | |
| 1108 | + SKIP_INSTALL = YES; | |
| 1109 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 1110 | + VALIDATE_PRODUCT = YES; | |
| 1111 | + VERSIONING_SYSTEM = "apple-generic"; | |
| 1112 | + VERSION_INFO_PREFIX = ""; | |
| 1113 | + }; | |
| 1114 | + name = Release; | |
| 1115 | + }; | |
| 1116 | + C2DF5B1D1AAB076D559A03714CC2907D /* Release */ = { | |
| 1117 | + isa = XCBuildConfiguration; | |
| 1118 | + baseConfigurationReference = 240F5B7917D3F1FDFB931146ECB8CD6F /* MJRefresh.xcconfig */; | |
| 1119 | + buildSettings = { | |
| 1120 | + CODE_SIGN_IDENTITY = ""; | |
| 1121 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | |
| 1122 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | |
| 1123 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | |
| 1124 | + CURRENT_PROJECT_VERSION = 1; | |
| 1125 | + DEFINES_MODULE = YES; | |
| 1126 | + DYLIB_COMPATIBILITY_VERSION = 1; | |
| 1127 | + DYLIB_CURRENT_VERSION = 1; | |
| 1128 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | |
| 1129 | + GCC_PREFIX_HEADER = "Target Support Files/MJRefresh/MJRefresh-prefix.pch"; | |
| 1130 | + INFOPLIST_FILE = "Target Support Files/MJRefresh/Info.plist"; | |
| 1131 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | |
| 1132 | + IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |
| 1133 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | |
| 1134 | + MODULEMAP_FILE = "Target Support Files/MJRefresh/MJRefresh.modulemap"; | |
| 1135 | + PRODUCT_MODULE_NAME = MJRefresh; | |
| 1136 | + PRODUCT_NAME = MJRefresh; | |
| 1137 | + SDKROOT = iphoneos; | |
| 1138 | + SKIP_INSTALL = YES; | |
| 1139 | + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; | |
| 1140 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 1141 | + VALIDATE_PRODUCT = YES; | |
| 1142 | + VERSIONING_SYSTEM = "apple-generic"; | |
| 1143 | + VERSION_INFO_PREFIX = ""; | |
| 1144 | + }; | |
| 1145 | + name = Release; | |
| 1146 | + }; | |
| 1147 | + F043C93C98BFB6F5622A6DC66B00FDA0 /* Release */ = { | |
| 1148 | + isa = XCBuildConfiguration; | |
| 1149 | + baseConfigurationReference = E31FE368037DB756AF264BA156F3DBE3 /* Pods-CNLiveRefreshFooter_Tests.release.xcconfig */; | |
| 1150 | + buildSettings = { | |
| 1151 | + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; | |
| 1152 | + CODE_SIGN_IDENTITY = ""; | |
| 1153 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | |
| 1154 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | |
| 1155 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | |
| 1156 | + CURRENT_PROJECT_VERSION = 1; | |
| 1157 | + DEFINES_MODULE = YES; | |
| 1158 | + DYLIB_COMPATIBILITY_VERSION = 1; | |
| 1159 | + DYLIB_CURRENT_VERSION = 1; | |
| 1160 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | |
| 1161 | + INFOPLIST_FILE = "Target Support Files/Pods-CNLiveRefreshFooter_Tests/Info.plist"; | |
| 1162 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | |
| 1163 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 1164 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | |
| 1165 | + MACH_O_TYPE = staticlib; | |
| 1166 | + MODULEMAP_FILE = "Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests.modulemap"; | |
| 1167 | + OTHER_LDFLAGS = ""; | |
| 1168 | + OTHER_LIBTOOLFLAGS = ""; | |
| 1169 | + PODS_ROOT = "$(SRCROOT)"; | |
| 1170 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; | |
| 1171 | + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; | |
| 1172 | + SDKROOT = iphoneos; | |
| 1173 | + SKIP_INSTALL = YES; | |
| 1174 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 1175 | + VALIDATE_PRODUCT = YES; | |
| 1176 | + VERSIONING_SYSTEM = "apple-generic"; | |
| 1177 | + VERSION_INFO_PREFIX = ""; | |
| 1178 | + }; | |
| 1179 | + name = Release; | |
| 1180 | + }; | |
| 1181 | + F7218B66AD034DB85A6B27B5998F44DE /* Debug */ = { | |
| 1182 | + isa = XCBuildConfiguration; | |
| 1183 | + baseConfigurationReference = 24ACDE650527FF57D6A6EBFDAEDFCC3C /* Pods-CNLiveRefreshFooter_Example.debug.xcconfig */; | |
| 1184 | + buildSettings = { | |
| 1185 | + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; | |
| 1186 | + CODE_SIGN_IDENTITY = ""; | |
| 1187 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | |
| 1188 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | |
| 1189 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | |
| 1190 | + CURRENT_PROJECT_VERSION = 1; | |
| 1191 | + DEFINES_MODULE = YES; | |
| 1192 | + DYLIB_COMPATIBILITY_VERSION = 1; | |
| 1193 | + DYLIB_CURRENT_VERSION = 1; | |
| 1194 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | |
| 1195 | + INFOPLIST_FILE = "Target Support Files/Pods-CNLiveRefreshFooter_Example/Info.plist"; | |
| 1196 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | |
| 1197 | + IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |
| 1198 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | |
| 1199 | + MACH_O_TYPE = staticlib; | |
| 1200 | + MODULEMAP_FILE = "Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example.modulemap"; | |
| 1201 | + OTHER_LDFLAGS = ""; | |
| 1202 | + OTHER_LIBTOOLFLAGS = ""; | |
| 1203 | + PODS_ROOT = "$(SRCROOT)"; | |
| 1204 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; | |
| 1205 | + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; | |
| 1206 | + SDKROOT = iphoneos; | |
| 1207 | + SKIP_INSTALL = YES; | |
| 1208 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 1209 | + VERSIONING_SYSTEM = "apple-generic"; | |
| 1210 | + VERSION_INFO_PREFIX = ""; | |
| 1211 | + }; | |
| 1212 | + name = Debug; | |
| 1213 | + }; | |
| 1214 | +/* End XCBuildConfiguration section */ | |
| 1215 | + | |
| 1216 | +/* Begin XCConfigurationList section */ | |
| 1217 | + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { | |
| 1218 | + isa = XCConfigurationList; | |
| 1219 | + buildConfigurations = ( | |
| 1220 | + 858D01EEFE984249A9581D18DBEA53F1 /* Debug */, | |
| 1221 | + 5DE19CECB206ACCCACF04D62F93FFDA6 /* Release */, | |
| 1222 | + ); | |
| 1223 | + defaultConfigurationIsVisible = 0; | |
| 1224 | + defaultConfigurationName = Release; | |
| 1225 | + }; | |
| 1226 | + 31FC733F59A86EECAE54C5BD43A2CF0E /* Build configuration list for PBXNativeTarget "Pods-CNLiveRefreshFooter_Example" */ = { | |
| 1227 | + isa = XCConfigurationList; | |
| 1228 | + buildConfigurations = ( | |
| 1229 | + F7218B66AD034DB85A6B27B5998F44DE /* Debug */, | |
| 1230 | + C02FC3E651D417917A0F1EC62833A51A /* Release */, | |
| 1231 | + ); | |
| 1232 | + defaultConfigurationIsVisible = 0; | |
| 1233 | + defaultConfigurationName = Release; | |
| 1234 | + }; | |
| 1235 | + 889C9D2B9F70A3EEB0D80E2DCC04864D /* Build configuration list for PBXNativeTarget "MJRefresh" */ = { | |
| 1236 | + isa = XCConfigurationList; | |
| 1237 | + buildConfigurations = ( | |
| 1238 | + 2F7E7475AFDC0744BD9E216CB46C433C /* Debug */, | |
| 1239 | + C2DF5B1D1AAB076D559A03714CC2907D /* Release */, | |
| 1240 | + ); | |
| 1241 | + defaultConfigurationIsVisible = 0; | |
| 1242 | + defaultConfigurationName = Release; | |
| 1243 | + }; | |
| 1244 | + 8CBC1C8E1C3AB9FA0E6015D73FEFC530 /* Build configuration list for PBXNativeTarget "CNLiveRefreshFooter-CNLiveRefreshFooter" */ = { | |
| 1245 | + isa = XCConfigurationList; | |
| 1246 | + buildConfigurations = ( | |
| 1247 | + 400134497F4B88BC4BC8C77C53FFCE21 /* Debug */, | |
| 1248 | + 13772838DE2E0CB868EE50661D78449B /* Release */, | |
| 1249 | + ); | |
| 1250 | + defaultConfigurationIsVisible = 0; | |
| 1251 | + defaultConfigurationName = Release; | |
| 1252 | + }; | |
| 1253 | + D97A293FCBE2A6AA6FF6FBFDC114DA36 /* Build configuration list for PBXNativeTarget "CNLiveRefreshFooter" */ = { | |
| 1254 | + isa = XCConfigurationList; | |
| 1255 | + buildConfigurations = ( | |
| 1256 | + 236E6FC0E14B3DD7BD90579DA2961EA7 /* Debug */, | |
| 1257 | + 54B9FE5F115293277F45CE58A87D3BDF /* Release */, | |
| 1258 | + ); | |
| 1259 | + defaultConfigurationIsVisible = 0; | |
| 1260 | + defaultConfigurationName = Release; | |
| 1261 | + }; | |
| 1262 | + E23CBE165A1011058D743D5192953233 /* Build configuration list for PBXNativeTarget "Pods-CNLiveRefreshFooter_Tests" */ = { | |
| 1263 | + isa = XCConfigurationList; | |
| 1264 | + buildConfigurations = ( | |
| 1265 | + 3F317E47BC3F896C3BE2E9C22A1ACACE /* Debug */, | |
| 1266 | + F043C93C98BFB6F5622A6DC66B00FDA0 /* Release */, | |
| 1267 | + ); | |
| 1268 | + defaultConfigurationIsVisible = 0; | |
| 1269 | + defaultConfigurationName = Release; | |
| 1270 | + }; | |
| 1271 | +/* End XCConfigurationList section */ | |
| 1272 | + }; | |
| 1273 | + rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; | |
| 1274 | +} | ... | ... |
Example/Pods/Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter-dummy.m
0 → 100644
Example/Pods/Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter-prefix.pch
0 → 100644
Example/Pods/Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter-umbrella.h
0 → 100644
| 1 | +#ifdef __OBJC__ | |
| 2 | +#import <UIKit/UIKit.h> | |
| 3 | +#else | |
| 4 | +#ifndef FOUNDATION_EXPORT | |
| 5 | +#if defined(__cplusplus) | |
| 6 | +#define FOUNDATION_EXPORT extern "C" | |
| 7 | +#else | |
| 8 | +#define FOUNDATION_EXPORT extern | |
| 9 | +#endif | |
| 10 | +#endif | |
| 11 | +#endif | |
| 12 | + | |
| 13 | +#import "CNLiveRrfreshFooter.h" | |
| 14 | + | |
| 15 | +FOUNDATION_EXPORT double CNLiveRefreshFooterVersionNumber; | |
| 16 | +FOUNDATION_EXPORT const unsigned char CNLiveRefreshFooterVersionString[]; | |
| 17 | + | ... | ... |
Example/Pods/Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter.modulemap
0 → 100644
Example/Pods/Target Support Files/CNLiveRefreshFooter/CNLiveRefreshFooter.xcconfig
0 → 100644
| 1 | +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter | |
| 2 | +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" | |
| 3 | +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 | |
| 4 | +OTHER_LDFLAGS = -framework "Foundation" -framework "UIKit" | |
| 5 | +PODS_BUILD_DIR = ${BUILD_DIR} | |
| 6 | +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) | |
| 7 | +PODS_ROOT = ${SRCROOT} | |
| 8 | +PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. | |
| 9 | +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} | |
| 10 | +SKIP_INSTALL = YES | ... | ... |
Example/Pods/Target Support Files/CNLiveRefreshFooter/Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleExecutable</key> | |
| 8 | + <string>${EXECUTABLE_NAME}</string> | |
| 9 | + <key>CFBundleIdentifier</key> | |
| 10 | + <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> | |
| 11 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 12 | + <string>6.0</string> | |
| 13 | + <key>CFBundleName</key> | |
| 14 | + <string>${PRODUCT_NAME}</string> | |
| 15 | + <key>CFBundlePackageType</key> | |
| 16 | + <string>FMWK</string> | |
| 17 | + <key>CFBundleShortVersionString</key> | |
| 18 | + <string>0.0.1</string> | |
| 19 | + <key>CFBundleSignature</key> | |
| 20 | + <string>????</string> | |
| 21 | + <key>CFBundleVersion</key> | |
| 22 | + <string>${CURRENT_PROJECT_VERSION}</string> | |
| 23 | + <key>NSPrincipalClass</key> | |
| 24 | + <string></string> | |
| 25 | +</dict> | |
| 26 | +</plist> | ... | ... |
Example/Pods/Target Support Files/CNLiveRefreshFooter/ResourceBundle-CNLiveRefreshFooter-Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleIdentifier</key> | |
| 8 | + <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> | |
| 9 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 10 | + <string>6.0</string> | |
| 11 | + <key>CFBundleName</key> | |
| 12 | + <string>${PRODUCT_NAME}</string> | |
| 13 | + <key>CFBundlePackageType</key> | |
| 14 | + <string>BNDL</string> | |
| 15 | + <key>CFBundleShortVersionString</key> | |
| 16 | + <string>0.0.1</string> | |
| 17 | + <key>CFBundleSignature</key> | |
| 18 | + <string>????</string> | |
| 19 | + <key>CFBundleVersion</key> | |
| 20 | + <string>1</string> | |
| 21 | + <key>NSPrincipalClass</key> | |
| 22 | + <string></string> | |
| 23 | +</dict> | |
| 24 | +</plist> | ... | ... |
Example/Pods/Target Support Files/MJRefresh/Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleExecutable</key> | |
| 8 | + <string>${EXECUTABLE_NAME}</string> | |
| 9 | + <key>CFBundleIdentifier</key> | |
| 10 | + <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> | |
| 11 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 12 | + <string>6.0</string> | |
| 13 | + <key>CFBundleName</key> | |
| 14 | + <string>${PRODUCT_NAME}</string> | |
| 15 | + <key>CFBundlePackageType</key> | |
| 16 | + <string>FMWK</string> | |
| 17 | + <key>CFBundleShortVersionString</key> | |
| 18 | + <string>3.1.15</string> | |
| 19 | + <key>CFBundleSignature</key> | |
| 20 | + <string>????</string> | |
| 21 | + <key>CFBundleVersion</key> | |
| 22 | + <string>${CURRENT_PROJECT_VERSION}</string> | |
| 23 | + <key>NSPrincipalClass</key> | |
| 24 | + <string></string> | |
| 25 | +</dict> | |
| 26 | +</plist> | ... | ... |
Example/Pods/Target Support Files/MJRefresh/MJRefresh-dummy.m
0 → 100644
Example/Pods/Target Support Files/MJRefresh/MJRefresh-prefix.pch
0 → 100644
Example/Pods/Target Support Files/MJRefresh/MJRefresh-umbrella.h
0 → 100644
| 1 | +#ifdef __OBJC__ | |
| 2 | +#import <UIKit/UIKit.h> | |
| 3 | +#else | |
| 4 | +#ifndef FOUNDATION_EXPORT | |
| 5 | +#if defined(__cplusplus) | |
| 6 | +#define FOUNDATION_EXPORT extern "C" | |
| 7 | +#else | |
| 8 | +#define FOUNDATION_EXPORT extern | |
| 9 | +#endif | |
| 10 | +#endif | |
| 11 | +#endif | |
| 12 | + | |
| 13 | +#import "MJRefreshAutoFooter.h" | |
| 14 | +#import "MJRefreshBackFooter.h" | |
| 15 | +#import "MJRefreshComponent.h" | |
| 16 | +#import "MJRefreshFooter.h" | |
| 17 | +#import "MJRefreshHeader.h" | |
| 18 | +#import "MJRefreshAutoGifFooter.h" | |
| 19 | +#import "MJRefreshAutoNormalFooter.h" | |
| 20 | +#import "MJRefreshAutoStateFooter.h" | |
| 21 | +#import "MJRefreshBackGifFooter.h" | |
| 22 | +#import "MJRefreshBackNormalFooter.h" | |
| 23 | +#import "MJRefreshBackStateFooter.h" | |
| 24 | +#import "MJRefreshGifHeader.h" | |
| 25 | +#import "MJRefreshNormalHeader.h" | |
| 26 | +#import "MJRefreshStateHeader.h" | |
| 27 | +#import "MJRefresh.h" | |
| 28 | +#import "MJRefreshConst.h" | |
| 29 | +#import "NSBundle+MJRefresh.h" | |
| 30 | +#import "UIScrollView+MJExtension.h" | |
| 31 | +#import "UIScrollView+MJRefresh.h" | |
| 32 | +#import "UIView+MJExtension.h" | |
| 33 | + | |
| 34 | +FOUNDATION_EXPORT double MJRefreshVersionNumber; | |
| 35 | +FOUNDATION_EXPORT const unsigned char MJRefreshVersionString[]; | |
| 36 | + | ... | ... |
Example/Pods/Target Support Files/MJRefresh/MJRefresh.modulemap
0 → 100644
Example/Pods/Target Support Files/MJRefresh/MJRefresh.xcconfig
0 → 100644
| 1 | +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh | |
| 2 | +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 | |
| 3 | +PODS_BUILD_DIR = ${BUILD_DIR} | |
| 4 | +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) | |
| 5 | +PODS_ROOT = ${SRCROOT} | |
| 6 | +PODS_TARGET_SRCROOT = ${PODS_ROOT}/MJRefresh | |
| 7 | +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} | |
| 8 | +SKIP_INSTALL = YES | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleExecutable</key> | |
| 8 | + <string>${EXECUTABLE_NAME}</string> | |
| 9 | + <key>CFBundleIdentifier</key> | |
| 10 | + <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> | |
| 11 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 12 | + <string>6.0</string> | |
| 13 | + <key>CFBundleName</key> | |
| 14 | + <string>${PRODUCT_NAME}</string> | |
| 15 | + <key>CFBundlePackageType</key> | |
| 16 | + <string>FMWK</string> | |
| 17 | + <key>CFBundleShortVersionString</key> | |
| 18 | + <string>1.0.0</string> | |
| 19 | + <key>CFBundleSignature</key> | |
| 20 | + <string>????</string> | |
| 21 | + <key>CFBundleVersion</key> | |
| 22 | + <string>${CURRENT_PROJECT_VERSION}</string> | |
| 23 | + <key>NSPrincipalClass</key> | |
| 24 | + <string></string> | |
| 25 | +</dict> | |
| 26 | +</plist> | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example-acknowledgements.markdown
0 → 100644
| 1 | +# Acknowledgements | |
| 2 | +This application makes use of the following third party libraries: | |
| 3 | + | |
| 4 | +## CNLiveRefreshFooter | |
| 5 | + | |
| 6 | +Copyright (c) 2018 殷巧娟 <1427945373@qq.com> | |
| 7 | + | |
| 8 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 9 | +of this software and associated documentation files (the "Software"), to deal | |
| 10 | +in the Software without restriction, including without limitation the rights | |
| 11 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 12 | +copies of the Software, and to permit persons to whom the Software is | |
| 13 | +furnished to do so, subject to the following conditions: | |
| 14 | + | |
| 15 | +The above copyright notice and this permission notice shall be included in | |
| 16 | +all copies or substantial portions of the Software. | |
| 17 | + | |
| 18 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 19 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 20 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 21 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 22 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 23 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 24 | +THE SOFTWARE. | |
| 25 | + | |
| 26 | + | |
| 27 | +## MJRefresh | |
| 28 | + | |
| 29 | +Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh) | |
| 30 | + | |
| 31 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 32 | +of this software and associated documentation files (the "Software"), to deal | |
| 33 | +in the Software without restriction, including without limitation the rights | |
| 34 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 35 | +copies of the Software, and to permit persons to whom the Software is | |
| 36 | +furnished to do so, subject to the following conditions: | |
| 37 | + | |
| 38 | +The above copyright notice and this permission notice shall be included in | |
| 39 | +all copies or substantial portions of the Software. | |
| 40 | + | |
| 41 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 42 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 43 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 44 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 45 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 46 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 47 | +THE SOFTWARE. | |
| 48 | + | |
| 49 | +Generated by CocoaPods - https://cocoapods.org | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example-acknowledgements.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>PreferenceSpecifiers</key> | |
| 6 | + <array> | |
| 7 | + <dict> | |
| 8 | + <key>FooterText</key> | |
| 9 | + <string>This application makes use of the following third party libraries:</string> | |
| 10 | + <key>Title</key> | |
| 11 | + <string>Acknowledgements</string> | |
| 12 | + <key>Type</key> | |
| 13 | + <string>PSGroupSpecifier</string> | |
| 14 | + </dict> | |
| 15 | + <dict> | |
| 16 | + <key>FooterText</key> | |
| 17 | + <string>Copyright (c) 2018 殷巧娟 <1427945373@qq.com> | |
| 18 | + | |
| 19 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 20 | +of this software and associated documentation files (the "Software"), to deal | |
| 21 | +in the Software without restriction, including without limitation the rights | |
| 22 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 23 | +copies of the Software, and to permit persons to whom the Software is | |
| 24 | +furnished to do so, subject to the following conditions: | |
| 25 | + | |
| 26 | +The above copyright notice and this permission notice shall be included in | |
| 27 | +all copies or substantial portions of the Software. | |
| 28 | + | |
| 29 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 30 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 31 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 32 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 33 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 34 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 35 | +THE SOFTWARE. | |
| 36 | +</string> | |
| 37 | + <key>License</key> | |
| 38 | + <string>MIT</string> | |
| 39 | + <key>Title</key> | |
| 40 | + <string>CNLiveRefreshFooter</string> | |
| 41 | + <key>Type</key> | |
| 42 | + <string>PSGroupSpecifier</string> | |
| 43 | + </dict> | |
| 44 | + <dict> | |
| 45 | + <key>FooterText</key> | |
| 46 | + <string>Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh) | |
| 47 | + | |
| 48 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 49 | +of this software and associated documentation files (the "Software"), to deal | |
| 50 | +in the Software without restriction, including without limitation the rights | |
| 51 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 52 | +copies of the Software, and to permit persons to whom the Software is | |
| 53 | +furnished to do so, subject to the following conditions: | |
| 54 | + | |
| 55 | +The above copyright notice and this permission notice shall be included in | |
| 56 | +all copies or substantial portions of the Software. | |
| 57 | + | |
| 58 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 59 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 60 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 61 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 62 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 63 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 64 | +THE SOFTWARE. | |
| 65 | +</string> | |
| 66 | + <key>License</key> | |
| 67 | + <string>MIT</string> | |
| 68 | + <key>Title</key> | |
| 69 | + <string>MJRefresh</string> | |
| 70 | + <key>Type</key> | |
| 71 | + <string>PSGroupSpecifier</string> | |
| 72 | + </dict> | |
| 73 | + <dict> | |
| 74 | + <key>FooterText</key> | |
| 75 | + <string>Generated by CocoaPods - https://cocoapods.org</string> | |
| 76 | + <key>Title</key> | |
| 77 | + <string></string> | |
| 78 | + <key>Type</key> | |
| 79 | + <string>PSGroupSpecifier</string> | |
| 80 | + </dict> | |
| 81 | + </array> | |
| 82 | + <key>StringsTable</key> | |
| 83 | + <string>Acknowledgements</string> | |
| 84 | + <key>Title</key> | |
| 85 | + <string>Acknowledgements</string> | |
| 86 | +</dict> | |
| 87 | +</plist> | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example-dummy.m
0 → 100644
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example-frameworks.sh
0 → 100755
| 1 | +#!/bin/sh | |
| 2 | +set -e | |
| 3 | +set -u | |
| 4 | +set -o pipefail | |
| 5 | + | |
| 6 | +if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then | |
| 7 | + # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy | |
| 8 | + # frameworks to, so exit 0 (signalling the script phase was successful). | |
| 9 | + exit 0 | |
| 10 | +fi | |
| 11 | + | |
| 12 | +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 13 | +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 14 | + | |
| 15 | +COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" | |
| 16 | +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" | |
| 17 | + | |
| 18 | +# Used as a return value for each invocation of `strip_invalid_archs` function. | |
| 19 | +STRIP_BINARY_RETVAL=0 | |
| 20 | + | |
| 21 | +# This protects against multiple targets copying the same framework dependency at the same time. The solution | |
| 22 | +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html | |
| 23 | +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") | |
| 24 | + | |
| 25 | +# Copies and strips a vendored framework | |
| 26 | +install_framework() | |
| 27 | +{ | |
| 28 | + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then | |
| 29 | + local source="${BUILT_PRODUCTS_DIR}/$1" | |
| 30 | + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then | |
| 31 | + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" | |
| 32 | + elif [ -r "$1" ]; then | |
| 33 | + local source="$1" | |
| 34 | + fi | |
| 35 | + | |
| 36 | + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 37 | + | |
| 38 | + if [ -L "${source}" ]; then | |
| 39 | + echo "Symlinked..." | |
| 40 | + source="$(readlink "${source}")" | |
| 41 | + fi | |
| 42 | + | |
| 43 | + # Use filter instead of exclude so missing patterns don't throw errors. | |
| 44 | + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" | |
| 45 | + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" | |
| 46 | + | |
| 47 | + local basename | |
| 48 | + basename="$(basename -s .framework "$1")" | |
| 49 | + binary="${destination}/${basename}.framework/${basename}" | |
| 50 | + if ! [ -r "$binary" ]; then | |
| 51 | + binary="${destination}/${basename}" | |
| 52 | + fi | |
| 53 | + | |
| 54 | + # Strip invalid architectures so "fat" simulator / device frameworks work on device | |
| 55 | + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then | |
| 56 | + strip_invalid_archs "$binary" | |
| 57 | + fi | |
| 58 | + | |
| 59 | + # Resign the code if required by the build settings to avoid unstable apps | |
| 60 | + code_sign_if_enabled "${destination}/$(basename "$1")" | |
| 61 | + | |
| 62 | + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. | |
| 63 | + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then | |
| 64 | + local swift_runtime_libs | |
| 65 | + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) | |
| 66 | + for lib in $swift_runtime_libs; do | |
| 67 | + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" | |
| 68 | + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" | |
| 69 | + code_sign_if_enabled "${destination}/${lib}" | |
| 70 | + done | |
| 71 | + fi | |
| 72 | +} | |
| 73 | + | |
| 74 | +# Copies and strips a vendored dSYM | |
| 75 | +install_dsym() { | |
| 76 | + local source="$1" | |
| 77 | + if [ -r "$source" ]; then | |
| 78 | + # Copy the dSYM into a the targets temp dir. | |
| 79 | + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" | |
| 80 | + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" | |
| 81 | + | |
| 82 | + local basename | |
| 83 | + basename="$(basename -s .framework.dSYM "$source")" | |
| 84 | + binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" | |
| 85 | + | |
| 86 | + # Strip invalid architectures so "fat" simulator / device frameworks work on device | |
| 87 | + if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then | |
| 88 | + strip_invalid_archs "$binary" | |
| 89 | + fi | |
| 90 | + | |
| 91 | + if [[ $STRIP_BINARY_RETVAL == 1 ]]; then | |
| 92 | + # Move the stripped file into its final destination. | |
| 93 | + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" | |
| 94 | + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" | |
| 95 | + else | |
| 96 | + # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. | |
| 97 | + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" | |
| 98 | + fi | |
| 99 | + fi | |
| 100 | +} | |
| 101 | + | |
| 102 | +# Signs a framework with the provided identity | |
| 103 | +code_sign_if_enabled() { | |
| 104 | + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then | |
| 105 | + # Use the current code_sign_identitiy | |
| 106 | + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" | |
| 107 | + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" | |
| 108 | + | |
| 109 | + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then | |
| 110 | + code_sign_cmd="$code_sign_cmd &" | |
| 111 | + fi | |
| 112 | + echo "$code_sign_cmd" | |
| 113 | + eval "$code_sign_cmd" | |
| 114 | + fi | |
| 115 | +} | |
| 116 | + | |
| 117 | +# Strip invalid architectures | |
| 118 | +strip_invalid_archs() { | |
| 119 | + binary="$1" | |
| 120 | + # Get architectures for current target binary | |
| 121 | + binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" | |
| 122 | + # Intersect them with the architectures we are building for | |
| 123 | + intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" | |
| 124 | + # If there are no archs supported by this binary then warn the user | |
| 125 | + if [[ -z "$intersected_archs" ]]; then | |
| 126 | + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." | |
| 127 | + STRIP_BINARY_RETVAL=0 | |
| 128 | + return | |
| 129 | + fi | |
| 130 | + stripped="" | |
| 131 | + for arch in $binary_archs; do | |
| 132 | + if ! [[ "${ARCHS}" == *"$arch"* ]]; then | |
| 133 | + # Strip non-valid architectures in-place | |
| 134 | + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 | |
| 135 | + stripped="$stripped $arch" | |
| 136 | + fi | |
| 137 | + done | |
| 138 | + if [[ "$stripped" ]]; then | |
| 139 | + echo "Stripped $binary of architectures:$stripped" | |
| 140 | + fi | |
| 141 | + STRIP_BINARY_RETVAL=1 | |
| 142 | +} | |
| 143 | + | |
| 144 | + | |
| 145 | +if [[ "$CONFIGURATION" == "Debug" ]]; then | |
| 146 | + install_framework "${BUILT_PRODUCTS_DIR}/CNLiveRefreshFooter/CNLiveRefreshFooter.framework" | |
| 147 | + install_framework "${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework" | |
| 148 | +fi | |
| 149 | +if [[ "$CONFIGURATION" == "Release" ]]; then | |
| 150 | + install_framework "${BUILT_PRODUCTS_DIR}/CNLiveRefreshFooter/CNLiveRefreshFooter.framework" | |
| 151 | + install_framework "${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework" | |
| 152 | +fi | |
| 153 | +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then | |
| 154 | + wait | |
| 155 | +fi | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example-resources.sh
0 → 100755
| 1 | +#!/bin/sh | |
| 2 | +set -e | |
| 3 | +set -u | |
| 4 | +set -o pipefail | |
| 5 | + | |
| 6 | +if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then | |
| 7 | + # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy | |
| 8 | + # resources to, so exit 0 (signalling the script phase was successful). | |
| 9 | + exit 0 | |
| 10 | +fi | |
| 11 | + | |
| 12 | +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 13 | + | |
| 14 | +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt | |
| 15 | +> "$RESOURCES_TO_COPY" | |
| 16 | + | |
| 17 | +XCASSET_FILES=() | |
| 18 | + | |
| 19 | +# This protects against multiple targets copying the same framework dependency at the same time. The solution | |
| 20 | +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html | |
| 21 | +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") | |
| 22 | + | |
| 23 | +case "${TARGETED_DEVICE_FAMILY:-}" in | |
| 24 | + 1,2) | |
| 25 | + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" | |
| 26 | + ;; | |
| 27 | + 1) | |
| 28 | + TARGET_DEVICE_ARGS="--target-device iphone" | |
| 29 | + ;; | |
| 30 | + 2) | |
| 31 | + TARGET_DEVICE_ARGS="--target-device ipad" | |
| 32 | + ;; | |
| 33 | + 3) | |
| 34 | + TARGET_DEVICE_ARGS="--target-device tv" | |
| 35 | + ;; | |
| 36 | + 4) | |
| 37 | + TARGET_DEVICE_ARGS="--target-device watch" | |
| 38 | + ;; | |
| 39 | + *) | |
| 40 | + TARGET_DEVICE_ARGS="--target-device mac" | |
| 41 | + ;; | |
| 42 | +esac | |
| 43 | + | |
| 44 | +install_resource() | |
| 45 | +{ | |
| 46 | + if [[ "$1" = /* ]] ; then | |
| 47 | + RESOURCE_PATH="$1" | |
| 48 | + else | |
| 49 | + RESOURCE_PATH="${PODS_ROOT}/$1" | |
| 50 | + fi | |
| 51 | + if [[ ! -e "$RESOURCE_PATH" ]] ; then | |
| 52 | + cat << EOM | |
| 53 | +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. | |
| 54 | +EOM | |
| 55 | + exit 1 | |
| 56 | + fi | |
| 57 | + case $RESOURCE_PATH in | |
| 58 | + *.storyboard) | |
| 59 | + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true | |
| 60 | + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} | |
| 61 | + ;; | |
| 62 | + *.xib) | |
| 63 | + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true | |
| 64 | + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} | |
| 65 | + ;; | |
| 66 | + *.framework) | |
| 67 | + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true | |
| 68 | + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 69 | + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true | |
| 70 | + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 71 | + ;; | |
| 72 | + *.xcdatamodel) | |
| 73 | + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true | |
| 74 | + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" | |
| 75 | + ;; | |
| 76 | + *.xcdatamodeld) | |
| 77 | + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true | |
| 78 | + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" | |
| 79 | + ;; | |
| 80 | + *.xcmappingmodel) | |
| 81 | + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true | |
| 82 | + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" | |
| 83 | + ;; | |
| 84 | + *.xcassets) | |
| 85 | + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" | |
| 86 | + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") | |
| 87 | + ;; | |
| 88 | + *) | |
| 89 | + echo "$RESOURCE_PATH" || true | |
| 90 | + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" | |
| 91 | + ;; | |
| 92 | + esac | |
| 93 | +} | |
| 94 | + | |
| 95 | +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 96 | +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 97 | +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then | |
| 98 | + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 99 | + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 100 | +fi | |
| 101 | +rm -f "$RESOURCES_TO_COPY" | |
| 102 | + | |
| 103 | +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] | |
| 104 | +then | |
| 105 | + # Find all other xcassets (this unfortunately includes those of path pods and other targets). | |
| 106 | + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) | |
| 107 | + while read line; do | |
| 108 | + if [[ $line != "${PODS_ROOT}*" ]]; then | |
| 109 | + XCASSET_FILES+=("$line") | |
| 110 | + fi | |
| 111 | + done <<<"$OTHER_XCASSETS" | |
| 112 | + | |
| 113 | + if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then | |
| 114 | + 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}" | |
| 115 | + else | |
| 116 | + 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}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" | |
| 117 | + fi | |
| 118 | +fi | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example-umbrella.h
0 → 100644
| 1 | +#ifdef __OBJC__ | |
| 2 | +#import <UIKit/UIKit.h> | |
| 3 | +#else | |
| 4 | +#ifndef FOUNDATION_EXPORT | |
| 5 | +#if defined(__cplusplus) | |
| 6 | +#define FOUNDATION_EXPORT extern "C" | |
| 7 | +#else | |
| 8 | +#define FOUNDATION_EXPORT extern | |
| 9 | +#endif | |
| 10 | +#endif | |
| 11 | +#endif | |
| 12 | + | |
| 13 | + | |
| 14 | +FOUNDATION_EXPORT double Pods_CNLiveRefreshFooter_ExampleVersionNumber; | |
| 15 | +FOUNDATION_EXPORT const unsigned char Pods_CNLiveRefreshFooter_ExampleVersionString[]; | |
| 16 | + | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example.debug.xcconfig
0 → 100644
| 1 | +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" | |
| 2 | +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 | |
| 3 | +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' | |
| 4 | +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter/CNLiveRefreshFooter.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" | |
| 5 | +OTHER_LDFLAGS = $(inherited) -framework "CNLiveRefreshFooter" -framework "MJRefresh" | |
| 6 | +PODS_BUILD_DIR = ${BUILD_DIR} | |
| 7 | +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) | |
| 8 | +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. | |
| 9 | +PODS_ROOT = ${SRCROOT}/Pods | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example.modulemap
0 → 100644
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Example/Pods-CNLiveRefreshFooter_Example.release.xcconfig
0 → 100644
| 1 | +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" | |
| 2 | +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 | |
| 3 | +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' | |
| 4 | +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter/CNLiveRefreshFooter.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" | |
| 5 | +OTHER_LDFLAGS = $(inherited) -framework "CNLiveRefreshFooter" -framework "MJRefresh" | |
| 6 | +PODS_BUILD_DIR = ${BUILD_DIR} | |
| 7 | +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) | |
| 8 | +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. | |
| 9 | +PODS_ROOT = ${SRCROOT}/Pods | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleExecutable</key> | |
| 8 | + <string>${EXECUTABLE_NAME}</string> | |
| 9 | + <key>CFBundleIdentifier</key> | |
| 10 | + <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> | |
| 11 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 12 | + <string>6.0</string> | |
| 13 | + <key>CFBundleName</key> | |
| 14 | + <string>${PRODUCT_NAME}</string> | |
| 15 | + <key>CFBundlePackageType</key> | |
| 16 | + <string>FMWK</string> | |
| 17 | + <key>CFBundleShortVersionString</key> | |
| 18 | + <string>1.0.0</string> | |
| 19 | + <key>CFBundleSignature</key> | |
| 20 | + <string>????</string> | |
| 21 | + <key>CFBundleVersion</key> | |
| 22 | + <string>${CURRENT_PROJECT_VERSION}</string> | |
| 23 | + <key>NSPrincipalClass</key> | |
| 24 | + <string></string> | |
| 25 | +</dict> | |
| 26 | +</plist> | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests-acknowledgements.markdown
0 → 100644
| 1 | +# Acknowledgements | |
| 2 | +This application makes use of the following third party libraries: | |
| 3 | + | |
| 4 | +## MJRefresh | |
| 5 | + | |
| 6 | +Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh) | |
| 7 | + | |
| 8 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 9 | +of this software and associated documentation files (the "Software"), to deal | |
| 10 | +in the Software without restriction, including without limitation the rights | |
| 11 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 12 | +copies of the Software, and to permit persons to whom the Software is | |
| 13 | +furnished to do so, subject to the following conditions: | |
| 14 | + | |
| 15 | +The above copyright notice and this permission notice shall be included in | |
| 16 | +all copies or substantial portions of the Software. | |
| 17 | + | |
| 18 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 19 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 20 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 21 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 22 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 23 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 24 | +THE SOFTWARE. | |
| 25 | + | |
| 26 | +Generated by CocoaPods - https://cocoapods.org | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests-acknowledgements.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>PreferenceSpecifiers</key> | |
| 6 | + <array> | |
| 7 | + <dict> | |
| 8 | + <key>FooterText</key> | |
| 9 | + <string>This application makes use of the following third party libraries:</string> | |
| 10 | + <key>Title</key> | |
| 11 | + <string>Acknowledgements</string> | |
| 12 | + <key>Type</key> | |
| 13 | + <string>PSGroupSpecifier</string> | |
| 14 | + </dict> | |
| 15 | + <dict> | |
| 16 | + <key>FooterText</key> | |
| 17 | + <string>Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh) | |
| 18 | + | |
| 19 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 20 | +of this software and associated documentation files (the "Software"), to deal | |
| 21 | +in the Software without restriction, including without limitation the rights | |
| 22 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 23 | +copies of the Software, and to permit persons to whom the Software is | |
| 24 | +furnished to do so, subject to the following conditions: | |
| 25 | + | |
| 26 | +The above copyright notice and this permission notice shall be included in | |
| 27 | +all copies or substantial portions of the Software. | |
| 28 | + | |
| 29 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 30 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 31 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 32 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 33 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 34 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 35 | +THE SOFTWARE. | |
| 36 | +</string> | |
| 37 | + <key>License</key> | |
| 38 | + <string>MIT</string> | |
| 39 | + <key>Title</key> | |
| 40 | + <string>MJRefresh</string> | |
| 41 | + <key>Type</key> | |
| 42 | + <string>PSGroupSpecifier</string> | |
| 43 | + </dict> | |
| 44 | + <dict> | |
| 45 | + <key>FooterText</key> | |
| 46 | + <string>Generated by CocoaPods - https://cocoapods.org</string> | |
| 47 | + <key>Title</key> | |
| 48 | + <string></string> | |
| 49 | + <key>Type</key> | |
| 50 | + <string>PSGroupSpecifier</string> | |
| 51 | + </dict> | |
| 52 | + </array> | |
| 53 | + <key>StringsTable</key> | |
| 54 | + <string>Acknowledgements</string> | |
| 55 | + <key>Title</key> | |
| 56 | + <string>Acknowledgements</string> | |
| 57 | +</dict> | |
| 58 | +</plist> | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests-dummy.m
0 → 100644
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests-frameworks.sh
0 → 100755
| 1 | +#!/bin/sh | |
| 2 | +set -e | |
| 3 | +set -u | |
| 4 | +set -o pipefail | |
| 5 | + | |
| 6 | +if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then | |
| 7 | + # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy | |
| 8 | + # frameworks to, so exit 0 (signalling the script phase was successful). | |
| 9 | + exit 0 | |
| 10 | +fi | |
| 11 | + | |
| 12 | +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 13 | +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 14 | + | |
| 15 | +COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" | |
| 16 | +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" | |
| 17 | + | |
| 18 | +# Used as a return value for each invocation of `strip_invalid_archs` function. | |
| 19 | +STRIP_BINARY_RETVAL=0 | |
| 20 | + | |
| 21 | +# This protects against multiple targets copying the same framework dependency at the same time. The solution | |
| 22 | +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html | |
| 23 | +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") | |
| 24 | + | |
| 25 | +# Copies and strips a vendored framework | |
| 26 | +install_framework() | |
| 27 | +{ | |
| 28 | + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then | |
| 29 | + local source="${BUILT_PRODUCTS_DIR}/$1" | |
| 30 | + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then | |
| 31 | + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" | |
| 32 | + elif [ -r "$1" ]; then | |
| 33 | + local source="$1" | |
| 34 | + fi | |
| 35 | + | |
| 36 | + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 37 | + | |
| 38 | + if [ -L "${source}" ]; then | |
| 39 | + echo "Symlinked..." | |
| 40 | + source="$(readlink "${source}")" | |
| 41 | + fi | |
| 42 | + | |
| 43 | + # Use filter instead of exclude so missing patterns don't throw errors. | |
| 44 | + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" | |
| 45 | + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" | |
| 46 | + | |
| 47 | + local basename | |
| 48 | + basename="$(basename -s .framework "$1")" | |
| 49 | + binary="${destination}/${basename}.framework/${basename}" | |
| 50 | + if ! [ -r "$binary" ]; then | |
| 51 | + binary="${destination}/${basename}" | |
| 52 | + fi | |
| 53 | + | |
| 54 | + # Strip invalid architectures so "fat" simulator / device frameworks work on device | |
| 55 | + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then | |
| 56 | + strip_invalid_archs "$binary" | |
| 57 | + fi | |
| 58 | + | |
| 59 | + # Resign the code if required by the build settings to avoid unstable apps | |
| 60 | + code_sign_if_enabled "${destination}/$(basename "$1")" | |
| 61 | + | |
| 62 | + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. | |
| 63 | + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then | |
| 64 | + local swift_runtime_libs | |
| 65 | + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) | |
| 66 | + for lib in $swift_runtime_libs; do | |
| 67 | + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" | |
| 68 | + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" | |
| 69 | + code_sign_if_enabled "${destination}/${lib}" | |
| 70 | + done | |
| 71 | + fi | |
| 72 | +} | |
| 73 | + | |
| 74 | +# Copies and strips a vendored dSYM | |
| 75 | +install_dsym() { | |
| 76 | + local source="$1" | |
| 77 | + if [ -r "$source" ]; then | |
| 78 | + # Copy the dSYM into a the targets temp dir. | |
| 79 | + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" | |
| 80 | + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" | |
| 81 | + | |
| 82 | + local basename | |
| 83 | + basename="$(basename -s .framework.dSYM "$source")" | |
| 84 | + binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" | |
| 85 | + | |
| 86 | + # Strip invalid architectures so "fat" simulator / device frameworks work on device | |
| 87 | + if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then | |
| 88 | + strip_invalid_archs "$binary" | |
| 89 | + fi | |
| 90 | + | |
| 91 | + if [[ $STRIP_BINARY_RETVAL == 1 ]]; then | |
| 92 | + # Move the stripped file into its final destination. | |
| 93 | + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" | |
| 94 | + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" | |
| 95 | + else | |
| 96 | + # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. | |
| 97 | + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" | |
| 98 | + fi | |
| 99 | + fi | |
| 100 | +} | |
| 101 | + | |
| 102 | +# Signs a framework with the provided identity | |
| 103 | +code_sign_if_enabled() { | |
| 104 | + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then | |
| 105 | + # Use the current code_sign_identitiy | |
| 106 | + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" | |
| 107 | + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" | |
| 108 | + | |
| 109 | + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then | |
| 110 | + code_sign_cmd="$code_sign_cmd &" | |
| 111 | + fi | |
| 112 | + echo "$code_sign_cmd" | |
| 113 | + eval "$code_sign_cmd" | |
| 114 | + fi | |
| 115 | +} | |
| 116 | + | |
| 117 | +# Strip invalid architectures | |
| 118 | +strip_invalid_archs() { | |
| 119 | + binary="$1" | |
| 120 | + # Get architectures for current target binary | |
| 121 | + binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" | |
| 122 | + # Intersect them with the architectures we are building for | |
| 123 | + intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" | |
| 124 | + # If there are no archs supported by this binary then warn the user | |
| 125 | + if [[ -z "$intersected_archs" ]]; then | |
| 126 | + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." | |
| 127 | + STRIP_BINARY_RETVAL=0 | |
| 128 | + return | |
| 129 | + fi | |
| 130 | + stripped="" | |
| 131 | + for arch in $binary_archs; do | |
| 132 | + if ! [[ "${ARCHS}" == *"$arch"* ]]; then | |
| 133 | + # Strip non-valid architectures in-place | |
| 134 | + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 | |
| 135 | + stripped="$stripped $arch" | |
| 136 | + fi | |
| 137 | + done | |
| 138 | + if [[ "$stripped" ]]; then | |
| 139 | + echo "Stripped $binary of architectures:$stripped" | |
| 140 | + fi | |
| 141 | + STRIP_BINARY_RETVAL=1 | |
| 142 | +} | |
| 143 | + | |
| 144 | + | |
| 145 | +if [[ "$CONFIGURATION" == "Debug" ]]; then | |
| 146 | + install_framework "${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework" | |
| 147 | +fi | |
| 148 | +if [[ "$CONFIGURATION" == "Release" ]]; then | |
| 149 | + install_framework "${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework" | |
| 150 | +fi | |
| 151 | +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then | |
| 152 | + wait | |
| 153 | +fi | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests-resources.sh
0 → 100755
| 1 | +#!/bin/sh | |
| 2 | +set -e | |
| 3 | +set -u | |
| 4 | +set -o pipefail | |
| 5 | + | |
| 6 | +if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then | |
| 7 | + # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy | |
| 8 | + # resources to, so exit 0 (signalling the script phase was successful). | |
| 9 | + exit 0 | |
| 10 | +fi | |
| 11 | + | |
| 12 | +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 13 | + | |
| 14 | +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt | |
| 15 | +> "$RESOURCES_TO_COPY" | |
| 16 | + | |
| 17 | +XCASSET_FILES=() | |
| 18 | + | |
| 19 | +# This protects against multiple targets copying the same framework dependency at the same time. The solution | |
| 20 | +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html | |
| 21 | +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") | |
| 22 | + | |
| 23 | +case "${TARGETED_DEVICE_FAMILY:-}" in | |
| 24 | + 1,2) | |
| 25 | + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" | |
| 26 | + ;; | |
| 27 | + 1) | |
| 28 | + TARGET_DEVICE_ARGS="--target-device iphone" | |
| 29 | + ;; | |
| 30 | + 2) | |
| 31 | + TARGET_DEVICE_ARGS="--target-device ipad" | |
| 32 | + ;; | |
| 33 | + 3) | |
| 34 | + TARGET_DEVICE_ARGS="--target-device tv" | |
| 35 | + ;; | |
| 36 | + 4) | |
| 37 | + TARGET_DEVICE_ARGS="--target-device watch" | |
| 38 | + ;; | |
| 39 | + *) | |
| 40 | + TARGET_DEVICE_ARGS="--target-device mac" | |
| 41 | + ;; | |
| 42 | +esac | |
| 43 | + | |
| 44 | +install_resource() | |
| 45 | +{ | |
| 46 | + if [[ "$1" = /* ]] ; then | |
| 47 | + RESOURCE_PATH="$1" | |
| 48 | + else | |
| 49 | + RESOURCE_PATH="${PODS_ROOT}/$1" | |
| 50 | + fi | |
| 51 | + if [[ ! -e "$RESOURCE_PATH" ]] ; then | |
| 52 | + cat << EOM | |
| 53 | +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. | |
| 54 | +EOM | |
| 55 | + exit 1 | |
| 56 | + fi | |
| 57 | + case $RESOURCE_PATH in | |
| 58 | + *.storyboard) | |
| 59 | + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true | |
| 60 | + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} | |
| 61 | + ;; | |
| 62 | + *.xib) | |
| 63 | + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true | |
| 64 | + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} | |
| 65 | + ;; | |
| 66 | + *.framework) | |
| 67 | + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true | |
| 68 | + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 69 | + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true | |
| 70 | + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" | |
| 71 | + ;; | |
| 72 | + *.xcdatamodel) | |
| 73 | + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true | |
| 74 | + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" | |
| 75 | + ;; | |
| 76 | + *.xcdatamodeld) | |
| 77 | + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true | |
| 78 | + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" | |
| 79 | + ;; | |
| 80 | + *.xcmappingmodel) | |
| 81 | + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true | |
| 82 | + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" | |
| 83 | + ;; | |
| 84 | + *.xcassets) | |
| 85 | + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" | |
| 86 | + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") | |
| 87 | + ;; | |
| 88 | + *) | |
| 89 | + echo "$RESOURCE_PATH" || true | |
| 90 | + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" | |
| 91 | + ;; | |
| 92 | + esac | |
| 93 | +} | |
| 94 | + | |
| 95 | +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 96 | +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 97 | +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then | |
| 98 | + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 99 | + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
| 100 | +fi | |
| 101 | +rm -f "$RESOURCES_TO_COPY" | |
| 102 | + | |
| 103 | +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] | |
| 104 | +then | |
| 105 | + # Find all other xcassets (this unfortunately includes those of path pods and other targets). | |
| 106 | + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) | |
| 107 | + while read line; do | |
| 108 | + if [[ $line != "${PODS_ROOT}*" ]]; then | |
| 109 | + XCASSET_FILES+=("$line") | |
| 110 | + fi | |
| 111 | + done <<<"$OTHER_XCASSETS" | |
| 112 | + | |
| 113 | + if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then | |
| 114 | + 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}" | |
| 115 | + else | |
| 116 | + 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}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" | |
| 117 | + fi | |
| 118 | +fi | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests-umbrella.h
0 → 100644
| 1 | +#ifdef __OBJC__ | |
| 2 | +#import <UIKit/UIKit.h> | |
| 3 | +#else | |
| 4 | +#ifndef FOUNDATION_EXPORT | |
| 5 | +#if defined(__cplusplus) | |
| 6 | +#define FOUNDATION_EXPORT extern "C" | |
| 7 | +#else | |
| 8 | +#define FOUNDATION_EXPORT extern | |
| 9 | +#endif | |
| 10 | +#endif | |
| 11 | +#endif | |
| 12 | + | |
| 13 | + | |
| 14 | +FOUNDATION_EXPORT double Pods_CNLiveRefreshFooter_TestsVersionNumber; | |
| 15 | +FOUNDATION_EXPORT const unsigned char Pods_CNLiveRefreshFooter_TestsVersionString[]; | |
| 16 | + | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests.debug.xcconfig
0 → 100644
| 1 | +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" | |
| 2 | +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 | |
| 3 | +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' | |
| 4 | +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter/CNLiveRefreshFooter.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" | |
| 5 | +OTHER_LDFLAGS = $(inherited) -framework "MJRefresh" | |
| 6 | +PODS_BUILD_DIR = ${BUILD_DIR} | |
| 7 | +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) | |
| 8 | +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. | |
| 9 | +PODS_ROOT = ${SRCROOT}/Pods | ... | ... |
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests.modulemap
0 → 100644
Example/Pods/Target Support Files/Pods-CNLiveRefreshFooter_Tests/Pods-CNLiveRefreshFooter_Tests.release.xcconfig
0 → 100644
| 1 | +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" | |
| 2 | +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 | |
| 3 | +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' | |
| 4 | +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveRefreshFooter/CNLiveRefreshFooter.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" | |
| 5 | +OTHER_LDFLAGS = $(inherited) -framework "MJRefresh" | |
| 6 | +PODS_BUILD_DIR = ${BUILD_DIR} | |
| 7 | +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) | |
| 8 | +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. | |
| 9 | +PODS_ROOT = ${SRCROOT}/Pods | ... | ... |
Example/Tests/Tests-Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleExecutable</key> | |
| 8 | + <string>${EXECUTABLE_NAME}</string> | |
| 9 | + <key>CFBundleIdentifier</key> | |
| 10 | + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | |
| 11 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 12 | + <string>6.0</string> | |
| 13 | + <key>CFBundlePackageType</key> | |
| 14 | + <string>BNDL</string> | |
| 15 | + <key>CFBundleShortVersionString</key> | |
| 16 | + <string>1.0</string> | |
| 17 | + <key>CFBundleSignature</key> | |
| 18 | + <string>????</string> | |
| 19 | + <key>CFBundleVersion</key> | |
| 20 | + <string>1</string> | |
| 21 | +</dict> | |
| 22 | +</plist> | ... | ... |
Example/Tests/Tests-Prefix.pch
0 → 100644
Example/Tests/Tests.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveRefreshFooterTests.m | |
| 3 | +// CNLiveRefreshFooterTests | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 12/21/2018. | |
| 6 | +// Copyright (c) 2018 殷巧娟. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +@import XCTest; | |
| 10 | + | |
| 11 | +@interface Tests : XCTestCase | |
| 12 | + | |
| 13 | +@end | |
| 14 | + | |
| 15 | +@implementation Tests | |
| 16 | + | |
| 17 | +- (void)setUp | |
| 18 | +{ | |
| 19 | + [super setUp]; | |
| 20 | + // Put setup code here. This method is called before the invocation of each test method in the class. | |
| 21 | +} | |
| 22 | + | |
| 23 | +- (void)tearDown | |
| 24 | +{ | |
| 25 | + // Put teardown code here. This method is called after the invocation of each test method in the class. | |
| 26 | + [super tearDown]; | |
| 27 | +} | |
| 28 | + | |
| 29 | +- (void)testExample | |
| 30 | +{ | |
| 31 | + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); | |
| 32 | +} | |
| 33 | + | |
| 34 | +@end | |
| 35 | + | ... | ... |
Example/Tests/en.lproj/InfoPlist.strings
0 → 100644
LICENSE
0 → 100644
| 1 | +Copyright (c) 2018 殷巧娟 <1427945373@qq.com> | |
| 2 | + | |
| 3 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 4 | +of this software and associated documentation files (the "Software"), to deal | |
| 5 | +in the Software without restriction, including without limitation the rights | |
| 6 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 7 | +copies of the Software, and to permit persons to whom the Software is | |
| 8 | +furnished to do so, subject to the following conditions: | |
| 9 | + | |
| 10 | +The above copyright notice and this permission notice shall be included in | |
| 11 | +all copies or substantial portions of the Software. | |
| 12 | + | |
| 13 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 14 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 15 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 16 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 17 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 18 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 19 | +THE SOFTWARE. | ... | ... |
README.md
| 1 | -尾部刷新 | |
| 2 | 1 | \ No newline at end of file |
| 2 | +# CNLiveRefreshFooter | |
| 3 | + | |
| 4 | +[](https://travis-ci.org/殷巧娟/CNLiveRefreshFooter) | |
| 5 | +[](https://cocoapods.org/pods/CNLiveRefreshFooter) | |
| 6 | +[](https://cocoapods.org/pods/CNLiveRefreshFooter) | |
| 7 | +[](https://cocoapods.org/pods/CNLiveRefreshFooter) | |
| 8 | + | |
| 9 | +## Example | |
| 10 | + | |
| 11 | +To run the example project, clone the repo, and run `pod install` from the Example directory first. | |
| 12 | + | |
| 13 | +## Requirements | |
| 14 | + | |
| 15 | +## Installation | |
| 16 | + | |
| 17 | +CNLiveRefreshFooter is available through [CocoaPods](https://cocoapods.org). To install | |
| 18 | +it, simply add the following line to your Podfile: | |
| 19 | + | |
| 20 | +```ruby | |
| 21 | +pod 'CNLiveRefreshFooter' | |
| 22 | +``` | |
| 23 | + | |
| 24 | +## Author | |
| 25 | + | |
| 26 | +殷巧娟, 1427945373@qq.com | |
| 27 | + | |
| 28 | +## License | |
| 29 | + | |
| 30 | +CNLiveRefreshFooter is available under the MIT license. See the LICENSE file for more info. | ... | ... |
_Pods.xcodeproj
0 → 120000