增加换肤功能
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#import <AlipaySDK/AlipaySDK.h>
|
||||
#import <TIMPush/TIMPushManager.h>
|
||||
#import <SDWebImageWebPCoder/SDWebImageWebPCoder.h>
|
||||
#import "QXAppStartViewController.h"
|
||||
#if DEBUG
|
||||
#import <LLDebugTool.h>
|
||||
#endif
|
||||
@@ -29,15 +30,8 @@
|
||||
[QXConfig defaultConfig];
|
||||
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||
self.window.backgroundColor = [UIColor whiteColor];
|
||||
if ([QXGlobal shareGlobal].isLogin && [[QXGlobal shareGlobal].loginModel.sex isEqualToString:@"0"]) {
|
||||
QXFillUserInfoViewController *vc = [[QXFillUserInfoViewController alloc] init];
|
||||
self.window.rootViewController = vc;
|
||||
}else{
|
||||
self.tabbarVC = [[QXTabbarController alloc] init];
|
||||
QXBaseNavigationController *na = [[QXBaseNavigationController alloc] initWithRootViewController:self.tabbarVC];
|
||||
na.navigationBarHidden = YES;
|
||||
self.window.rootViewController = na;
|
||||
}
|
||||
QXAppStartViewController *startVC = [[QXAppStartViewController alloc] init];
|
||||
self.window.rootViewController = startVC;
|
||||
[Bugly startWithAppId:@"38d154fc5f"];
|
||||
SDImageWebPCoder *webPCoder = [SDImageWebPCoder sharedCoder];
|
||||
[[SDImageCodersManager sharedManager] addCoder:webPCoder];
|
||||
@@ -61,10 +55,15 @@
|
||||
[AvoidCrash becomeEffective];
|
||||
}
|
||||
-(void)changeRootViewControllerIsTabbar{
|
||||
self.tabbarVC = [[QXTabbarController alloc] init];
|
||||
QXBaseNavigationController *na = [[QXBaseNavigationController alloc] initWithRootViewController:self.tabbarVC];
|
||||
na.navigationBarHidden = YES;
|
||||
self.window.rootViewController = na;
|
||||
if ([QXGlobal shareGlobal].isLogin && [[QXGlobal shareGlobal].loginModel.sex isEqualToString:@"0"]) {
|
||||
QXFillUserInfoViewController *vc = [[QXFillUserInfoViewController alloc] init];
|
||||
self.window.rootViewController = vc;
|
||||
}else{
|
||||
self.tabbarVC = [[QXTabbarController alloc] init];
|
||||
QXBaseNavigationController *na = [[QXBaseNavigationController alloc] initWithRootViewController:self.tabbarVC];
|
||||
na.navigationBarHidden = YES;
|
||||
self.window.rootViewController = na;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="启动页" translatesAutoresizingMaskIntoConstraints="NO" id="ydi-6i-HE8">
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="启动页" translatesAutoresizingMaskIntoConstraints="NO" id="ydi-6i-HE8">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
|
||||
@@ -27,6 +27,10 @@ static NSInteger const AddressOfMQTTPort = 1883;
|
||||
static NSInteger const AppPushId = 46164;
|
||||
|
||||
static NSString *const AgoraAuthId = @"05b406b4541e413887d8d2bf9be8642c";
|
||||
|
||||
//一键登录AuthSDKInfo
|
||||
static NSString *const AuthSDKKey = @"Q8xhyn+MAyHw8FQLjKOWU8ZrZMXsuflPGSxDvwKu8ULvm8eZBPNLfezCsyuKzISPIGbMK5oR6fX/TyIdFwBjfL2lUteddxG+fu8aBuyScR066oDRhj66x97xM+9n6lnog9MOdMvGryx6PkZa1/un0IoX46SfrjpitnzYZvfFlavVDOq50iO4piAU/idOWnyY+1bQAnBQsfr8ZKHTAbpR2aUn4C6R37MvtXHnmD+o3Qjx0SbCxpsvs9h91/VBQ2+XEIynDIPDM+0=";
|
||||
|
||||
#else
|
||||
|
||||
static NSString *const WechatAppId = @"wxc7681513be9f926b";
|
||||
@@ -47,7 +51,11 @@ static NSInteger const AddressOfMQTTPort = 1883;
|
||||
|
||||
static NSInteger const AppPushId = 46163;
|
||||
|
||||
///声网
|
||||
static NSString *const AgoraAuthId = @"4a521d6f1c6343998b1c8fd425dea02a";
|
||||
|
||||
//一键登录AuthSDKInfo
|
||||
static NSString *const AuthSDKKey = @"hKYFcoI6vIdz9/yOCs3XJ/fUQ0u3DHGa5UPONdSJfSccjVtn3sHBRecwepn5iNIgOYWq8xgUc4LtWqSjpveHIYzJx0YcQm/j5IXdVKe74RI+4vT00UwP8oQSZ2w0a18Sbbd8uKgFys8CUyQZWfMZXHIVuHmNBHRHZ1xoX2sCCCl56U3vQ11ZSpJdeZW4wvQ8qeQ56Q4wyW5hyo/yFU1sxohn1ApS6FbbXXwroWV57aK1R9+zaBOqn41NCKlvKsSD";
|
||||
#endif
|
||||
|
||||
/// 声网
|
||||
@@ -74,8 +82,7 @@ static NSString *const CHAT_IMG_FILE_BASE_PATH = @"emchat/image/ios/";
|
||||
static NSString *const CHAT_VIDEO_FILE_BASE_PATH = @"emchat/videos/ios";
|
||||
static NSString *const CHAT_AUDIO_FILE_BASE_PATH = @"emchat/audio/ios/";
|
||||
|
||||
//一键登录AuthSDKInfo
|
||||
static NSString *const AuthSDKKey = @"hKYFcoI6vIdz9/yOCs3XJ/fUQ0u3DHGa5UPONdSJfSccjVtn3sHBRecwepn5iNIgOYWq8xgUc4LtWqSjpveHIYzJx0YcQm/j5IXdVKe74RI+4vT00UwP8oQSZ2w0a18Sbbd8uKgFys8CUyQZWfMZXHIVuHmNBHRHZ1xoX2sCCCl56U3vQ11ZSpJdeZW4wvQ8qeQ56Q4wyW5hyo/yFU1sxohn1ApS6FbbXXwroWV57aK1R9+zaBOqn41NCKlvKsSD";
|
||||
|
||||
|
||||
|
||||
/// 本地存储
|
||||
|
||||
@@ -21,6 +21,8 @@ static NSString * QXGuidePage = @"api/banner/get_banner_qidonglist";
|
||||
static NSString * QXAppVersion = @"api/Version/get_app_version";
|
||||
/// 协议
|
||||
static NSString * QXAppProtocol = @"api/Page/page_show";
|
||||
/// 获取主题配置
|
||||
static NSString * QXAppTheme = @"api/Theme/get_theme_data";
|
||||
|
||||
#pragma mark - 登录
|
||||
/// 验证码登录获取账号列表
|
||||
|
||||
Reference in New Issue
Block a user