forked from CoderMJLee/MJRefresh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
17 changed files
with
137 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,39 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "MJRefresh" | ||
s.version = "2.4.7" | ||
s.summary = "The easiest way to use pull-to-refresh" | ||
s.homepage = "https://github.com/CoderMJLee/MJRefresh" | ||
s.license = "MIT" | ||
s.authors = { 'MJ Lee' => '[email protected]'} | ||
s.platform = :ios, "6.0" | ||
s.source = { :git => "https://github.com/CoderMJLee/MJRefresh.git", :tag => s.version } | ||
s.source_files = "MJRefresh/**/*.{h,m}" | ||
s.resource = "MJRefresh/MJRefresh.bundle" | ||
s.requires_arc = true | ||
s.name = "MJRefresh" | ||
s.version = "2.4.8" | ||
s.summary = "The easiest way to use pull-to-refresh" | ||
s.homepage = "https://github.com/CoderMJLee/MJRefresh" | ||
s.license = "MIT" | ||
s.authors = { 'MJ Lee' => '[email protected]'} | ||
s.platform = :ios, "6.0" | ||
s.source = { :git => "https://github.com/CoderMJLee/MJRefresh.git", :tag => s.version } | ||
s.source_files = "MJRefresh/*.{h,m}" | ||
s.resource = "MJRefresh/MJRefresh.bundle" | ||
s.requires_arc = true | ||
|
||
s.subspec 'Base' do |Base| | ||
Base.source_files = 'MJRefresh/Base/*.{h,m}' | ||
end | ||
|
||
s.subspec 'Custom' do |Custom| | ||
Custom.subspec 'Footer' do |Footer| | ||
Footer.subspec 'Auto' do |Auto| | ||
Auto.source_files = "MJRefresh/Custom/Footer/Auto/*.{h,m}" | ||
end | ||
|
||
Footer.subspec 'Back' do |Back| | ||
Back.source_files = "MJRefresh/Custom/Footer/Back/*.{h,m}" | ||
end | ||
end | ||
|
||
Custom.subspec 'Header' do |Header| | ||
Header.subspec 'Auto' do |Auto| | ||
Auto.source_files = "MJRefresh/Custom/Header/Auto/*.{h,m}" | ||
end | ||
|
||
Header.subspec 'Back' do |Back| | ||
Back.source_files = "MJRefresh/Custom/Header/Back/*.{h,m}" | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.13 KB
(100%)
...le.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
MJRefreshExample/MJRefreshExample/Classes/MJExampleWindow.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// MJExampleWindow.h | ||
// MJRefreshExample | ||
// | ||
// Created by MJ Lee on 15/8/17. | ||
// Copyright (c) 2015年 小码哥. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface MJExampleWindow : UIWindow | ||
+ (void)show; | ||
@end |
37 changes: 37 additions & 0 deletions
37
MJRefreshExample/MJRefreshExample/Classes/MJExampleWindow.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// MJExampleWindow.m | ||
// MJRefreshExample | ||
// | ||
// Created by MJ Lee on 15/8/17. | ||
// Copyright (c) 2015年 小码哥. All rights reserved. | ||
// | ||
|
||
#import "MJExampleWindow.h" | ||
|
||
@implementation MJExampleWindow | ||
|
||
static UIWindow *window_; | ||
+ (void)show | ||
{ | ||
window_ = [[UIWindow alloc] init]; | ||
CGFloat width = 150; | ||
CGFloat x = [UIScreen mainScreen].bounds.size.width - width - 10; | ||
window_.frame = CGRectMake(x, 0, width, 25); | ||
window_.windowLevel = UIWindowLevelAlert; | ||
window_.hidden = NO; | ||
window_.alpha = 0.5; | ||
|
||
UISegmentedControl *control = [[UISegmentedControl alloc] initWithItems:@[@"示例1", @"示例2", @"示例3"]]; | ||
control.tintColor = [UIColor orangeColor]; | ||
control.frame = window_.bounds; | ||
control.selectedSegmentIndex = 0; | ||
[control addTarget:self action:@selector(contorlSelect:) forControlEvents:UIControlEventValueChanged]; | ||
[window_ addSubview:control]; | ||
} | ||
|
||
+ (void)contorlSelect:(UISegmentedControl *)control | ||
{ | ||
UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; | ||
keyWindow.rootViewController = [keyWindow.rootViewController.storyboard instantiateViewControllerWithIdentifier:[NSString stringWithFormat:@"%zd", control.selectedSegmentIndex]]; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters