Commit a565fdb0335d56c5a602f438604133dddca21ed9

Authored by zhangxiaowen
1 parent d36e88c9

no message

CNLiveServices.podspec
@@ -31,11 +31,6 @@ TODO: Add long description of the pod here. @@ -31,11 +31,6 @@ TODO: Add long description of the pod here.
31 s.ios.deployment_target = '9.0' 31 s.ios.deployment_target = '9.0'
32 32
33 s.source_files = 'CNLiveServices/Classes/CNLiveServices.h' 33 s.source_files = 'CNLiveServices/Classes/CNLiveServices.h'
34 -  
35 - # 跟控制器  
36 - s.subspec 'Manager' do |ss|  
37 - ss.source_files = 'CNLiveServices/Classes/Manager/*.{h,m}'  
38 - end  
39 34
40 # 首页 35 # 首页
41 s.subspec 'NetHome' do |ss| 36 s.subspec 'NetHome' do |ss|
CNLiveServices/Classes/CNLiveServices.h
@@ -11,9 +11,6 @@ @@ -11,9 +11,6 @@
11 11
12 #import "CNLiveBeeHive.h" 12 #import "CNLiveBeeHive.h"
13 13
14 -// 页面跳转  
15 -#import "CNLivePageJumpManager.h"  
16 -  
17 // 首页 14 // 首页
18 #import "CNLiveNetHomeServiceProtocol.h" 15 #import "CNLiveNetHomeServiceProtocol.h"
19 16
CNLiveServices/Classes/Manager/CNLivePageJumpManager.h deleted 100644 → 0
1 -//  
2 -// CNLivePageJumpManager.h  
3 -// CNLiveServices  
4 -//  
5 -// Created by 153993236@qq.com on 07/22/2019.  
6 -// Copyright (c) 2019 153993236@qq.com. All rights reserved.  
7 -//  
8 -  
9 -#import <Foundation/Foundation.h>  
10 -#import <UIKit/UIKit.h>  
11 -  
12 -NS_ASSUME_NONNULL_BEGIN  
13 -  
14 -@interface CNLivePageJumpManager : NSObject  
15 -// 获取跟控制器  
16 -+ (UIViewController *)getRootController;  
17 -  
18 -// 获取导航控制器  
19 -+ (UINavigationController *)getNavigationController;  
20 -  
21 -// jump  
22 -+ (void)jumpViewController:(UIViewController *)controller;  
23 -+ (void)jumpViewController:(UIViewController *)controller animated:(BOOL)animated;  
24 -  
25 -// back  
26 -+ (void)backViewController;  
27 -+ (void)backViewController:(BOOL)animated;  
28 -  
29 -// push  
30 -+ (void)pushViewController:(UIViewController *)controller;  
31 -+ (void)pushViewController:(UIViewController *)controller animated:(BOOL)animated;  
32 -  
33 -// pop  
34 -+ (void)popViewController;  
35 -+ (void)popViewControllerAnimated:(BOOL)animated;  
36 -+ (void)popToViewController:(UIViewController *)viewController animated:(BOOL)animated;  
37 -+ (void)popToRootViewControllerAnimated:(BOOL)animated;  
38 -  
39 -// present  
40 -+ (void)presentViewController:(UIViewController *)controller;  
41 -+ (void)presentViewController:(UIViewController *)controller animated:(BOOL)animated;  
42 -+ (void)presentViewController:(UIViewController *)controller animated:(BOOL)animated completion:(nullable void(^)(void))completion;  
43 -  
44 -// dismiss  
45 -+ (void)dismissViewController;  
46 -+ (void)dismissViewControllerAnimated:(BOOL)animated completion:(nullable void(^)(void))completion;  
47 -  
48 -@end  
49 -  
50 -NS_ASSUME_NONNULL_END  
CNLiveServices/Classes/Manager/CNLivePageJumpManager.m deleted 100644 → 0
1 -//  
2 -// CNLivePageJumpManager.h  
3 -// CNLiveServices  
4 -//  
5 -// Created by 153993236@qq.com on 07/22/2019.  
6 -// Copyright (c) 2019 153993236@qq.com. All rights reserved.  
7 -//  
8 -  
9 -#import "CNLivePageJumpManager.h"  
10 -  
11 -@interface CNLivePageJumpManager ()  
12 -  
13 -@end  
14 -  
15 -@implementation CNLivePageJumpManager  
16 -#pragma mark - 获取跟控制器  
17 -+ (UIViewController *)getRootController{  
18 - UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController;  
19 - return vc;  
20 -}  
21 -  
22 -#pragma mark - 获取导航控制器  
23 -+ (UINavigationController *)getNavigationController{  
24 - UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController;  
25 - if ([vc isKindOfClass:[UINavigationController class]]){  
26 - return (UINavigationController *)vc;  
27 - }  
28 - else if ([vc isKindOfClass:[UITabBarController class]]){  
29 - UIViewController *select = [((UITabBarController *)vc) selectedViewController];  
30 - if ([select isKindOfClass:[UINavigationController class]]){  
31 - return (UINavigationController *)select;  
32 - }  
33 - }  
34 - return nil;  
35 -}  
36 -  
37 -#pragma mark - jump  
38 -+ (void)jumpViewController:(UIViewController *)controller{  
39 - [self jumpViewController:controller animated:YES];  
40 -}  
41 -+ (void)jumpViewController:(UIViewController *)controller animated:(BOOL)animated{  
42 - UINavigationController *nav = [self getNavigationController];  
43 - if(nav){  
44 - [nav pushViewController:controller animated:animated];  
45 - }  
46 - else{  
47 - UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController;  
48 - [vc presentViewController:controller animated:animated completion:nil];  
49 - }  
50 -}  
51 -  
52 -#pragma mark - back  
53 -+ (void)backViewController{  
54 - [self backViewController:YES];  
55 -}  
56 -+ (void)backViewController:(BOOL)animated{  
57 - UINavigationController *nav = [self getNavigationController];  
58 - if(nav){  
59 - [nav popViewControllerAnimated:animated];  
60 - }  
61 - else{  
62 - UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController;  
63 - [vc dismissViewControllerAnimated:animated completion:nil];  
64 - }  
65 -}  
66 -  
67 -#pragma mark - Push  
68 -+ (void)pushViewController:(UIViewController *)controller{  
69 - [self pushViewController:controller animated:YES];  
70 -}  
71 -+ (void)pushViewController:(UIViewController *)controller animated:(BOOL)animated{  
72 - [[self getNavigationController] pushViewController:controller animated:animated];  
73 -}  
74 -  
75 -#pragma mark - Pop  
76 -+ (void)popViewController{  
77 - [self popViewControllerAnimated:YES];  
78 -}  
79 -+ (void)popViewControllerAnimated:(BOOL)animated{  
80 - [[self getNavigationController] popViewControllerAnimated:animated];  
81 -}  
82 -+ (void)popToViewController:(UIViewController *)viewController animated:(BOOL)animated{  
83 - [[self getNavigationController] popToViewController:viewController animated:animated];  
84 -}  
85 -+ (void)popToRootViewControllerAnimated:(BOOL)animated{  
86 - [[self getNavigationController] popToRootViewControllerAnimated:animated];  
87 -}  
88 -  
89 -#pragma mark - Present  
90 -+ (void)presentViewController:(UIViewController *)controller{  
91 - [self presentViewController:controller animated:YES];  
92 -}  
93 -+ (void)presentViewController:(UIViewController *)controller animated:(BOOL)animated{  
94 - [self presentViewController:controller animated:animated completion:nil];  
95 -}  
96 -+ (void)presentViewController:(UIViewController *)controller animated:(BOOL)animated completion:(nullable void(^)(void))completion{  
97 - [[self getNavigationController] presentViewController:controller animated:animated completion:completion];  
98 -}  
99 -  
100 -#pragma mark - Dismiss  
101 -+ (void)dismissViewController{  
102 - [self dismissViewControllerAnimated:YES completion:nil];  
103 -}  
104 -+ (void)dismissViewControllerAnimated:(BOOL)animated completion:(nullable void(^)(void))completion{  
105 - [[self getNavigationController] dismissViewControllerAnimated:animated completion:completion];  
106 -  
107 -}  
108 -  
109 -@end  
Example/CNLiveServices.xcodeproj/project.pbxproj
@@ -365,12 +365,10 @@ @@ -365,12 +365,10 @@
365 inputPaths = ( 365 inputPaths = (
366 "${PODS_ROOT}/Target Support Files/Pods-CNLiveServices_Example/Pods-CNLiveServices_Example-frameworks.sh", 366 "${PODS_ROOT}/Target Support Files/Pods-CNLiveServices_Example/Pods-CNLiveServices_Example-frameworks.sh",
367 "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework", 367 "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework",
368 - "${BUILT_PRODUCTS_DIR}/CNLiveServices/CNLiveServices.framework",  
369 ); 368 );
370 name = "[CP] Embed Pods Frameworks"; 369 name = "[CP] Embed Pods Frameworks";
371 outputPaths = ( 370 outputPaths = (
372 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework", 371 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework",
373 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveServices.framework",  
374 ); 372 );
375 runOnlyForDeploymentPostprocessing = 0; 373 runOnlyForDeploymentPostprocessing = 0;
376 shellPath = /bin/sh; 374 shellPath = /bin/sh;