Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SNLoginKit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
盛金龙
SNLoginKit
Commits
94259dc0
Commit
94259dc0
authored
Mar 26, 2019
by
soooner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
48fc672e
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
201 additions
and
7 deletions
+201
-7
Podfile.lock
Example/Podfile.lock
+3
-3
Manifest.lock
Example/Pods/Manifest.lock
+3
-3
project.pbxproj
Example/Pods/Pods.xcodeproj/project.pbxproj
+0
-0
BaseNavigationController.h
...it/SNBaseControllerKit/Classes/BaseNavigationController.h
+13
-0
BaseNavigationController.m
...it/SNBaseControllerKit/Classes/BaseNavigationController.m
+97
-0
BaseViewController.h
...ollerKit/SNBaseControllerKit/Classes/BaseViewController.h
+12
-0
BaseViewController.m
...ollerKit/SNBaseControllerKit/Classes/BaseViewController.m
+70
-0
ReplaceMe.m
...BaseControllerKit/SNBaseControllerKit/Classes/ReplaceMe.m
+0
-0
Info.plist
.../Pods/Target Support Files/SNBaseControllerKit/Info.plist
+1
-1
SNBaseControllerKit-umbrella.h
... Files/SNBaseControllerKit/SNBaseControllerKit-umbrella.h
+2
-0
No files found.
Example/Podfile.lock
View file @
94259dc0
...
@@ -22,7 +22,7 @@ PODS:
...
@@ -22,7 +22,7 @@ PODS:
- SDWebImage/Core (5.0.0-beta6)
- SDWebImage/Core (5.0.0-beta6)
- SNAFNetWorkKit (0.1.1):
- SNAFNetWorkKit (0.1.1):
- AFNetworking (~> 3.2.1)
- AFNetworking (~> 3.2.1)
- SNBaseControllerKit (0.1.
0
)
- SNBaseControllerKit (0.1.
1
)
- SNCategoryKit (0.1.0)
- SNCategoryKit (0.1.0)
- SNCommonViewKit (0.1.0):
- SNCommonViewKit (0.1.0):
- MBProgressHUD (~> 1.1.0)
- MBProgressHUD (~> 1.1.0)
...
@@ -73,11 +73,11 @@ SPEC CHECKSUMS:
...
@@ -73,11 +73,11 @@ SPEC CHECKSUMS:
MJExtension: 19bc33ce2eee2d319760f5622562cf581a6ff756
MJExtension: 19bc33ce2eee2d319760f5622562cf581a6ff756
SDWebImage: 2840a50a41156efccf460df67218b32029177897
SDWebImage: 2840a50a41156efccf460df67218b32029177897
SNAFNetWorkKit: 85ee650d31fbd67715808e16f13f07384578ba72
SNAFNetWorkKit: 85ee650d31fbd67715808e16f13f07384578ba72
SNBaseControllerKit:
453dc50528a871b3bd0c4773d58b8f5c33fa4dd5
SNBaseControllerKit:
8e6e8a7d320856a2bc2b036f61dd9a75e3e61e78
SNCategoryKit: ecf4e87aefe7e2cf8334e93894d754f205a2399b
SNCategoryKit: ecf4e87aefe7e2cf8334e93894d754f205a2399b
SNCommonViewKit: 3718fdf3fc016f5661ff2444c131a79478e23039
SNCommonViewKit: 3718fdf3fc016f5661ff2444c131a79478e23039
SNConfigKit: 93ae8873aab4cb118750da4992aa07a1682c2d80
SNConfigKit: 93ae8873aab4cb118750da4992aa07a1682c2d80
SNLoginKit:
2b5e9445bc3350fe6408f4965b8bd77221560f86
SNLoginKit:
b2906324e5775a6ef80524c616f8135e5d7c39e4
SNModelKit: 409aaf4a61fba2ba4c0488d4c96a586a0ea164b4
SNModelKit: 409aaf4a61fba2ba4c0488d4c96a586a0ea164b4
SNToolKit: 5a9ca387355994e196db56f8add899b70375004b
SNToolKit: 5a9ca387355994e196db56f8add899b70375004b
...
...
Example/Pods/Manifest.lock
View file @
94259dc0
...
@@ -22,7 +22,7 @@ PODS:
...
@@ -22,7 +22,7 @@ PODS:
- SDWebImage/Core (5.0.0-beta6)
- SDWebImage/Core (5.0.0-beta6)
- SNAFNetWorkKit (0.1.1):
- SNAFNetWorkKit (0.1.1):
- AFNetworking (~> 3.2.1)
- AFNetworking (~> 3.2.1)
- SNBaseControllerKit (0.1.
0
)
- SNBaseControllerKit (0.1.
1
)
- SNCategoryKit (0.1.0)
- SNCategoryKit (0.1.0)
- SNCommonViewKit (0.1.0):
- SNCommonViewKit (0.1.0):
- MBProgressHUD (~> 1.1.0)
- MBProgressHUD (~> 1.1.0)
...
@@ -73,11 +73,11 @@ SPEC CHECKSUMS:
...
@@ -73,11 +73,11 @@ SPEC CHECKSUMS:
MJExtension: 19bc33ce2eee2d319760f5622562cf581a6ff756
MJExtension: 19bc33ce2eee2d319760f5622562cf581a6ff756
SDWebImage: 2840a50a41156efccf460df67218b32029177897
SDWebImage: 2840a50a41156efccf460df67218b32029177897
SNAFNetWorkKit: 85ee650d31fbd67715808e16f13f07384578ba72
SNAFNetWorkKit: 85ee650d31fbd67715808e16f13f07384578ba72
SNBaseControllerKit:
453dc50528a871b3bd0c4773d58b8f5c33fa4dd5
SNBaseControllerKit:
8e6e8a7d320856a2bc2b036f61dd9a75e3e61e78
SNCategoryKit: ecf4e87aefe7e2cf8334e93894d754f205a2399b
SNCategoryKit: ecf4e87aefe7e2cf8334e93894d754f205a2399b
SNCommonViewKit: 3718fdf3fc016f5661ff2444c131a79478e23039
SNCommonViewKit: 3718fdf3fc016f5661ff2444c131a79478e23039
SNConfigKit: 93ae8873aab4cb118750da4992aa07a1682c2d80
SNConfigKit: 93ae8873aab4cb118750da4992aa07a1682c2d80
SNLoginKit:
2b5e9445bc3350fe6408f4965b8bd77221560f86
SNLoginKit:
b2906324e5775a6ef80524c616f8135e5d7c39e4
SNModelKit: 409aaf4a61fba2ba4c0488d4c96a586a0ea164b4
SNModelKit: 409aaf4a61fba2ba4c0488d4c96a586a0ea164b4
SNToolKit: 5a9ca387355994e196db56f8add899b70375004b
SNToolKit: 5a9ca387355994e196db56f8add899b70375004b
...
...
Example/Pods/Pods.xcodeproj/project.pbxproj
View file @
94259dc0
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Example/Pods/SNBaseControllerKit/SNBaseControllerKit/Classes/BaseNavigationController.h
0 → 100644
View file @
94259dc0
//
// BaseNavigationController.h
// SDGS
//
// Created by 陈雷 on 2016/11/24.
// Copyright © 2016年 CL. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface
BaseNavigationController
:
UINavigationController
@property
(
nonatomic
,
strong
)
id
popDelegate
;
@end
Example/Pods/SNBaseControllerKit/SNBaseControllerKit/Classes/BaseNavigationController.m
0 → 100644
View file @
94259dc0
//
// BaseNavigationController.m
// SDGS
//
// Created by 陈雷 on 2016/11/24.
// Copyright © 2016年 CL. All rights reserved.
//
#import "BaseNavigationController.h"
//#import "SNAudioManager.h"
@interface
BaseNavigationController
()
@end
@implementation
BaseNavigationController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
self
.
popDelegate
=
self
.
interactivePopGestureRecognizer
.
delegate
;
[
self
.
view
setTintColor
:[
UIColor
whiteColor
]];
[[
UIApplication
sharedApplication
]
beginReceivingRemoteControlEvents
];
[
self
becomeFirstResponder
];
}
//4. 加上控制逻辑的监听
-
(
void
)
remoteControlReceivedWithEvent
:
(
UIEvent
*
)
event
{
//if it is a remote control event handle it correctly
if
(
event
.
type
==
UIEventTypeRemoteControl
)
{
switch
(
event
.
subtype
)
{
case
UIEventSubtypeRemoteControlTogglePlayPause
:
{
NSLog
(
@"UIEventSubtypeRemoteControlTogglePlayPause..."
);
break
;
}
case
UIEventSubtypeRemoteControlPlay
:
{
NSLog
(
@"UIEventSubtypeRemoteControlPlay..."
);
// [[SNAudioManager sharedManager] playWithUrl:[SNAudioManager sharedManager].fmodel.FMAudioUrl];
// [[SNAudioManager sharedManager] play];
break
;
}
case
UIEventSubtypeRemoteControlPause
:
{
NSLog
(
@"UIEventSubtypeRemoteControlPause..."
);
// [[SNAudioManager sharedManager] pause];
// [SNAudioManager sharedManager].audioPlayer.state = STKAudioPlayerStatePaused;
break
;
}
case
UIEventSubtypeRemoteControlStop
:
{
NSLog
(
@"UIEventSubtypeRemoteControlStop..."
);
break
;
}
case
UIEventSubtypeRemoteControlNextTrack
:
{
NSLog
(
@"UIEventSubtypeRemoteControlNextTrack..."
);
break
;
}
case
UIEventSubtypeRemoteControlPreviousTrack
:
{
NSLog
(
@"UIEventSubtypeRemoteControlPreviousTrack..."
);
break
;
}
default
:
break
;
}
}
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
}
// 默认带返回按钮
-
(
void
)
pushViewController
:
(
UIViewController
*
)
viewController
animated
:
(
BOOL
)
animated
{
//
//[super pushViewController:viewController animated:animated];
if
(
self
.
viewControllers
.
count
>
0
)
{
viewController
.
hidesBottomBarWhenPushed
=
YES
;
}
if
([
self
.
topViewController
isMemberOfClass
:[
viewController
class
]])
{
return
;
}
[
super
pushViewController
:
viewController
animated
:
animated
];
}
-
(
void
)
backAction
{
[
self
popViewControllerAnimated
:
YES
];
}
@end
Example/Pods/SNBaseControllerKit/SNBaseControllerKit/Classes/BaseViewController.h
0 → 100644
View file @
94259dc0
//
// BaseViewController.h
// Rebuild_JLZX
//
// Created by chenlei on 16/9/14.
// Copyright © 2016年 chenlei. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface
BaseViewController
:
UIViewController
@end
Example/Pods/SNBaseControllerKit/SNBaseControllerKit/Classes/BaseViewController.m
0 → 100644
View file @
94259dc0
//
// BaseViewController.m
// Rebuild_JLZX
//
// Created by chenlei on 16/9/14.
// Copyright © 2016年 chenlei. All rights reserved.
//
#import "BaseViewController.h"
@interface
BaseViewController
()
<
UIGestureRecognizerDelegate
>
@end
@implementation
BaseViewController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
id
target
=
self
.
navigationController
.
interactivePopGestureRecognizer
.
delegate
;
UIPanGestureRecognizer
*
pan
=
[[
UIPanGestureRecognizer
alloc
]
initWithTarget
:
target
action
:
@selector
(
handleNavigationTransition
:
)];
pan
.
delegate
=
self
;
[
self
.
view
addGestureRecognizer
:
pan
];
self
.
navigationController
.
interactivePopGestureRecognizer
.
enabled
=
NO
;
//导航栏按钮
UIButton
*
leftButton
=
[[
UIButton
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
30
,
30
)];
leftButton
.
imageView
.
contentMode
=
UIViewContentModeScaleAspectFill
;
[
leftButton
setImage
:[
UIImage
imageNamed
:
@"Normal_naviBack_b"
]
forState
:
UIControlStateNormal
];
[
leftButton
addTarget
:
self
action
:
@selector
(
backAction
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
UIBarButtonItem
*
leftItem
=
[[
UIBarButtonItem
alloc
]
initWithCustomView
:
leftButton
];
self
.
navigationItem
.
leftBarButtonItem
=
leftItem
;
}
#pragma private method
-
(
IBAction
)
backAction
:
(
id
)
sender
{
[
self
.
navigationController
popViewControllerAnimated
:
YES
];
}
-
(
BOOL
)
gestureRecognizerShouldBegin
:
(
UIGestureRecognizer
*
)
gestureRecognizer
{
if
(
self
.
childViewControllers
.
count
==
1
)
{
// 表示用户在根控制器界面,就不需要触发滑动手势
return
NO
;
}
return
YES
;
}
-
(
void
)
handleNavigationTransition
:
(
UIPanGestureRecognizer
*
)
sender
{
[
self
.
navigationController
popViewControllerAnimated
:
YES
];
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
Example/Pods/SNBaseControllerKit/SNBaseControllerKit/Classes/ReplaceMe.m
deleted
100644 → 0
View file @
48fc672e
Example/Pods/Target Support Files/SNBaseControllerKit/Info.plist
View file @
94259dc0
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
0.1.
0
<
/string
>
<
string
>
0.1.
1
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
...
...
Example/Pods/Target Support Files/SNBaseControllerKit/SNBaseControllerKit-umbrella.h
View file @
94259dc0
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
#endif
#endif
#endif
#endif
#import "BaseNavigationController.h"
#import "BaseViewController.h"
FOUNDATION_EXPORT
double
SNBaseControllerKitVersionNumber
;
FOUNDATION_EXPORT
double
SNBaseControllerKitVersionNumber
;
FOUNDATION_EXPORT
const
unsigned
char
SNBaseControllerKitVersionString
[];
FOUNDATION_EXPORT
const
unsigned
char
SNBaseControllerKitVersionString
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment