Commit 1f19e36e by zhangyunjie

初始化项目

parent 13255f64
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
A9661B5024EA64F20024EB54 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A9661B4F24EA64F20024EB54 /* Assets.xcassets */; };
A9661B5324EA64F20024EB54 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A9661B5124EA64F20024EB54 /* LaunchScreen.storyboard */; };
A9661B5624EA64F20024EB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A9661B5524EA64F20024EB54 /* main.m */; };
A9661B6024EA72900024EB54 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A9661B5E24EA72900024EB54 /* AppDelegate.m */; };
A9661B6124EA72900024EB54 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9661B5F24EA72900024EB54 /* ViewController.m */; };
A9661B6424EA729A0024EB54 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A9661B6224EA729A0024EB54 /* Main.storyboard */; };
B94FCB1053F8932068A11CC9 /* libPods-OffcnIMSDKiOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 49CE5E230A14D9B821170F61 /* libPods-OffcnIMSDKiOS.a */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
3F07C2EC97AF605DC6BD528E /* Pods-OffcnIMSDKiOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OffcnIMSDKiOS.debug.xcconfig"; path = "Target Support Files/Pods-OffcnIMSDKiOS/Pods-OffcnIMSDKiOS.debug.xcconfig"; sourceTree = "<group>"; };
49CE5E230A14D9B821170F61 /* libPods-OffcnIMSDKiOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-OffcnIMSDKiOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
A9661B4024EA64EE0024EB54 /* OffcnIMSDKiOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OffcnIMSDKiOS.app; sourceTree = BUILT_PRODUCTS_DIR; };
A9661B4F24EA64F20024EB54 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
A9661B5224EA64F20024EB54 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
A9661B5424EA64F20024EB54 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
A9661B5524EA64F20024EB54 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
A9661B5C24EA72900024EB54 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
A9661B5D24EA72900024EB54 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
A9661B5E24EA72900024EB54 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
A9661B5F24EA72900024EB54 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
A9661B6324EA729A0024EB54 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
D7DCDED1DEE7F99F223D5C73 /* Pods-OffcnIMSDKiOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OffcnIMSDKiOS.release.xcconfig"; path = "Target Support Files/Pods-OffcnIMSDKiOS/Pods-OffcnIMSDKiOS.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
A9661B3D24EA64ED0024EB54 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B94FCB1053F8932068A11CC9 /* libPods-OffcnIMSDKiOS.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
3A504C287D97669E4A91ACBF /* Pods */ = {
isa = PBXGroup;
children = (
3F07C2EC97AF605DC6BD528E /* Pods-OffcnIMSDKiOS.debug.xcconfig */,
D7DCDED1DEE7F99F223D5C73 /* Pods-OffcnIMSDKiOS.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
A9661B3724EA64ED0024EB54 = {
isa = PBXGroup;
children = (
A9661B4224EA64EE0024EB54 /* OffcnIMSDKiOS */,
A9661B4124EA64EE0024EB54 /* Products */,
3A504C287D97669E4A91ACBF /* Pods */,
CC1958D307ED3EA5F9EA7118 /* Frameworks */,
);
sourceTree = "<group>";
};
A9661B4124EA64EE0024EB54 /* Products */ = {
isa = PBXGroup;
children = (
A9661B4024EA64EE0024EB54 /* OffcnIMSDKiOS.app */,
);
name = Products;
sourceTree = "<group>";
};
A9661B4224EA64EE0024EB54 /* OffcnIMSDKiOS */ = {
isa = PBXGroup;
children = (
A9661B5C24EA72900024EB54 /* AppDelegate.h */,
A9661B5E24EA72900024EB54 /* AppDelegate.m */,
A9661B5D24EA72900024EB54 /* ViewController.h */,
A9661B5F24EA72900024EB54 /* ViewController.m */,
A9661B6224EA729A0024EB54 /* Main.storyboard */,
A9661B4F24EA64F20024EB54 /* Assets.xcassets */,
A9661B5124EA64F20024EB54 /* LaunchScreen.storyboard */,
A9661B5424EA64F20024EB54 /* Info.plist */,
A9661B5524EA64F20024EB54 /* main.m */,
);
path = OffcnIMSDKiOS;
sourceTree = "<group>";
};
CC1958D307ED3EA5F9EA7118 /* Frameworks */ = {
isa = PBXGroup;
children = (
49CE5E230A14D9B821170F61 /* libPods-OffcnIMSDKiOS.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
A9661B3F24EA64ED0024EB54 /* OffcnIMSDKiOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = A9661B5924EA64F20024EB54 /* Build configuration list for PBXNativeTarget "OffcnIMSDKiOS" */;
buildPhases = (
10BE1EC00E2920B1A07C211F /* [CP] Check Pods Manifest.lock */,
A9661B3C24EA64ED0024EB54 /* Sources */,
A9661B3D24EA64ED0024EB54 /* Frameworks */,
A9661B3E24EA64ED0024EB54 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = OffcnIMSDKiOS;
productName = OffcnIMSDKiOS;
productReference = A9661B4024EA64EE0024EB54 /* OffcnIMSDKiOS.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
A9661B3824EA64ED0024EB54 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1120;
ORGANIZATIONNAME = offcn;
TargetAttributes = {
A9661B3F24EA64ED0024EB54 = {
CreatedOnToolsVersion = 11.2.1;
};
};
};
buildConfigurationList = A9661B3B24EA64ED0024EB54 /* Build configuration list for PBXProject "OffcnIMSDKiOS" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = A9661B3724EA64ED0024EB54;
productRefGroup = A9661B4124EA64EE0024EB54 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
A9661B3F24EA64ED0024EB54 /* OffcnIMSDKiOS */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
A9661B3E24EA64ED0024EB54 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A9661B6424EA729A0024EB54 /* Main.storyboard in Resources */,
A9661B5324EA64F20024EB54 /* LaunchScreen.storyboard in Resources */,
A9661B5024EA64F20024EB54 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
10BE1EC00E2920B1A07C211F /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-OffcnIMSDKiOS-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
A9661B3C24EA64ED0024EB54 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A9661B6124EA72900024EB54 /* ViewController.m in Sources */,
A9661B6024EA72900024EB54 /* AppDelegate.m in Sources */,
A9661B5624EA64F20024EB54 /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
A9661B5124EA64F20024EB54 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
A9661B5224EA64F20024EB54 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
A9661B6224EA729A0024EB54 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
A9661B6324EA729A0024EB54 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
A9661B5724EA64F20024EB54 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
};
A9661B5824EA64F20024EB54 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
A9661B5A24EA64F20024EB54 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 3F07C2EC97AF605DC6BD528E /* Pods-OffcnIMSDKiOS.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = LA78A3696S;
INFOPLIST_FILE = OffcnIMSDKiOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.eoffcn.classonline;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ClassonlineDev;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
A9661B5B24EA64F20024EB54 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D7DCDED1DEE7F99F223D5C73 /* Pods-OffcnIMSDKiOS.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = LA78A3696S;
INFOPLIST_FILE = OffcnIMSDKiOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.eoffcn.classonline;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ClassonlineDev;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
A9661B3B24EA64ED0024EB54 /* Build configuration list for PBXProject "OffcnIMSDKiOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A9661B5724EA64F20024EB54 /* Debug */,
A9661B5824EA64F20024EB54 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A9661B5924EA64F20024EB54 /* Build configuration list for PBXNativeTarget "OffcnIMSDKiOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A9661B5A24EA64F20024EB54 /* Debug */,
A9661B5B24EA64F20024EB54 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = A9661B3824EA64ED0024EB54 /* Project object */;
}
//
// AppDelegate.h
// OffcnLiveSDK
//
// Created by vockey on 2018/7/25.
// Copyright © 2018年 中公教育. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
//
// AppDelegate.m
// OffcnLiveSDK
//
// Created by vockey on 2018/7/25.
// Copyright © 2018年 中公教育. All rights reserved.
//
#import "AppDelegate.h"
#import "ViewController.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
UINavigationController *mainVC = [[UINavigationController alloc] initWithRootViewController:[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateInitialViewController]];
mainVC.navigationBar.translucent = NO;
self.window.rootViewController = mainVC;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
//中公直播使用测试环境设置为YES,正式环境设置为NO或者去掉这个配置
// NSNumber *changeEnvironment = [[NSUserDefaults standardUserDefaults] valueForKey:kOffcnLiveSDK_changeEnvironment];
// NSLog(@"changeEnvironment---%@",changeEnvironment);
// [OffcnLiveSDK defaultService].isTest = [changeEnvironment boolValue];
//获取网络状态和内部初始化处理
// [[OffcnLiveSDK defaultService] startNotifierUseRealReachability];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// 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.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
- (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)(void))completionHandler{
}
@end
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15510"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Seh-6S-vx3"/>
<viewControllerLayoutGuide type="bottom" id="BW3-NG-9nf"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="a21-3W-10n"/>
<viewControllerLayoutGuide type="bottom" id="ItS-Q1-ANW"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="请输入小班课房间口令" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="BUe-hm-JG9">
<rect key="frame" x="15" y="145" width="345" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="请输入昵称" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="GT0-B9-RQ5">
<rect key="frame" x="15" y="75" width="345" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="5ga-Si-2Sb"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="请输入uuid" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="60L-bR-OE1">
<rect key="frame" x="15" y="110" width="345" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RZ3-2O-Iin">
<rect key="frame" x="15" y="180" width="80" height="30"/>
<color key="backgroundColor" red="0.44563790509203638" green="1" blue="0.34767431509271307" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="KHm-fD-Sh8"/>
<constraint firstAttribute="width" constant="80" id="XeW-gF-t7R"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" title="小班直播"/>
<connections>
<action selector="enterRoomAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="7lH-rN-Dqe"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pjv-b2-iPq">
<rect key="frame" x="105" y="180" width="80" height="30"/>
<color key="backgroundColor" red="0.0" green="0.99143940210000003" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" title="小班回放"/>
<connections>
<action selector="playBackAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="lxo-uP-zHJ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CmS-a0-5Ps">
<rect key="frame" x="195" y="180" width="80" height="30"/>
<color key="backgroundColor" red="0.95065469941089453" green="1" blue="0.23935494223729314" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" title="小班下载"/>
<connections>
<action selector="downloadAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="RY2-R8-ttG"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AiL-Tl-7G9">
<rect key="frame" x="15" y="396" width="345" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="muO-oT-o7X"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HDM-va-7kG">
<rect key="frame" x="0.0" y="20" width="375" height="50"/>
<color key="backgroundColor" red="1" green="0.21225945169999999" blue="0.26982277180000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="hEt-Jn-qfb"/>
</constraints>
<state key="normal" title="点我退出键盘"/>
<connections>
<action selector="clickExitKeyboardAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="gS2-qL-GWP"/>
</connections>
</button>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="请输入大班课房间口令" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="yKv-m4-w6H">
<rect key="frame" x="15" y="220" width="345" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="请输入大班课房间口令" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="ji1-iU-ZLA">
<rect key="frame" x="15" y="295" width="345" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="A6O-U4-UGr">
<rect key="frame" x="15" y="255" width="80" height="30"/>
<color key="backgroundColor" red="0.44563790510000001" green="1" blue="0.34767431510000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="大班直播"/>
<connections>
<action selector="enterRoomAction2:" destination="BYZ-38-t0r" eventType="touchUpInside" id="nEf-AE-IjQ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="27e-O9-DsT">
<rect key="frame" x="195" y="255" width="80" height="30"/>
<color key="backgroundColor" red="0.96235413439999995" green="1" blue="0.30322128329999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="大班下载"/>
<connections>
<action selector="downloadAction2:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Qko-cv-Ri3"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hum-Mo-zFX">
<rect key="frame" x="105" y="255" width="80" height="30"/>
<color key="backgroundColor" red="0.0" green="0.99143940210000003" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="大班回放"/>
<connections>
<action selector="playBackAction2:" destination="BYZ-38-t0r" eventType="touchUpInside" id="AQt-h0-Gv2"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Ryi-dE-cYg">
<rect key="frame" x="15" y="330" width="80" height="30"/>
<color key="backgroundColor" red="0.44563790510000001" green="1" blue="0.34767431510000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="大班直播"/>
<connections>
<action selector="enterRoomAction3:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Va6-Dp-FWo"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="LAX-tH-pF3">
<rect key="frame" x="195" y="330" width="80" height="30"/>
<color key="backgroundColor" red="0.95065469940000003" green="1" blue="0.2393549422" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="大班下载"/>
<connections>
<action selector="downloadAction3:" destination="BYZ-38-t0r" eventType="touchUpInside" id="w7G-rl-s6r"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dUU-kM-qiM">
<rect key="frame" x="105" y="330" width="80" height="30"/>
<color key="backgroundColor" red="0.0" green="0.99143940210000003" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="大班回放"/>
<connections>
<action selector="playBackAction3:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Vmi-lj-S7k"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="so4-rI-aRi">
<rect key="frame" x="15" y="365" width="345" height="30"/>
<color key="backgroundColor" red="0.63529411759999999" green="0.51764705879999995" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="FlU-ab-1sz"/>
</constraints>
<color key="tintColor" red="0.63529411759999999" green="0.51764705879999995" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="当前为正式环境,点击切换为测试环境">
<color key="titleColor" red="1" green="0.1764705882" blue="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<state key="selected" title="当前为测试环境,点击切换为正式环境"/>
<connections>
<action selector="clickChangeEnvironmentBtnAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="3bs-lx-zXl"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="pjv-b2-iPq" firstAttribute="height" secondItem="RZ3-2O-Iin" secondAttribute="height" id="4lJ-mJ-psu"/>
<constraint firstItem="60L-bR-OE1" firstAttribute="top" secondItem="GT0-B9-RQ5" secondAttribute="bottom" constant="5" id="5jF-p1-60w"/>
<constraint firstItem="CmS-a0-5Ps" firstAttribute="width" secondItem="RZ3-2O-Iin" secondAttribute="width" id="718-9y-FsA"/>
<constraint firstItem="GT0-B9-RQ5" firstAttribute="top" secondItem="HDM-va-7kG" secondAttribute="bottom" constant="5" id="7ee-h4-Js5"/>
<constraint firstAttribute="trailing" secondItem="so4-rI-aRi" secondAttribute="trailing" constant="15" id="83W-xz-1xP"/>
<constraint firstItem="pjv-b2-iPq" firstAttribute="top" secondItem="RZ3-2O-Iin" secondAttribute="top" id="8Ts-hq-Aez"/>
<constraint firstItem="CmS-a0-5Ps" firstAttribute="leading" secondItem="pjv-b2-iPq" secondAttribute="trailing" constant="10" id="9S4-B3-rM7"/>
<constraint firstItem="dUU-kM-qiM" firstAttribute="height" secondItem="Ryi-dE-cYg" secondAttribute="height" id="9og-Ad-UKy"/>
<constraint firstItem="ji1-iU-ZLA" firstAttribute="top" secondItem="27e-O9-DsT" secondAttribute="bottom" constant="10" id="AI6-tq-bz1"/>
<constraint firstItem="so4-rI-aRi" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" constant="15" id="Acv-YJ-6xY"/>
<constraint firstItem="ji1-iU-ZLA" firstAttribute="leading" secondItem="yKv-m4-w6H" secondAttribute="leading" id="CLE-xZ-ENb"/>
<constraint firstItem="27e-O9-DsT" firstAttribute="width" secondItem="hum-Mo-zFX" secondAttribute="width" id="DLw-3V-a1E"/>
<constraint firstItem="BUe-hm-JG9" firstAttribute="top" secondItem="60L-bR-OE1" secondAttribute="bottom" constant="5" id="F9c-fh-EuF"/>
<constraint firstItem="Ryi-dE-cYg" firstAttribute="width" secondItem="A6O-U4-UGr" secondAttribute="width" id="FDS-QF-HYd"/>
<constraint firstItem="pjv-b2-iPq" firstAttribute="width" secondItem="RZ3-2O-Iin" secondAttribute="width" id="FZz-Fu-Yux"/>
<constraint firstItem="RZ3-2O-Iin" firstAttribute="top" secondItem="BUe-hm-JG9" secondAttribute="bottom" constant="5" id="IdV-xo-JpZ"/>
<constraint firstItem="dUU-kM-qiM" firstAttribute="width" secondItem="Ryi-dE-cYg" secondAttribute="width" id="IqZ-Ha-ahL"/>
<constraint firstItem="ji1-iU-ZLA" firstAttribute="trailing" secondItem="yKv-m4-w6H" secondAttribute="trailing" id="Jbl-Df-zM4"/>
<constraint firstItem="RZ3-2O-Iin" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" constant="15" id="L4u-z9-skq"/>
<constraint firstItem="27e-O9-DsT" firstAttribute="top" secondItem="hum-Mo-zFX" secondAttribute="top" id="LPQ-yc-xXF"/>
<constraint firstItem="HDM-va-7kG" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="LVQ-dP-gyt"/>
<constraint firstItem="CmS-a0-5Ps" firstAttribute="top" secondItem="RZ3-2O-Iin" secondAttribute="top" id="Lzh-n3-u5h"/>
<constraint firstItem="Ryi-dE-cYg" firstAttribute="leading" secondItem="A6O-U4-UGr" secondAttribute="leading" id="M83-BA-iNB"/>
<constraint firstItem="A6O-U4-UGr" firstAttribute="height" secondItem="RZ3-2O-Iin" secondAttribute="height" id="MaH-jb-mkY"/>
<constraint firstItem="yKv-m4-w6H" firstAttribute="trailing" secondItem="BUe-hm-JG9" secondAttribute="trailing" id="MuI-sX-Bm6"/>
<constraint firstItem="Ryi-dE-cYg" firstAttribute="top" secondItem="ji1-iU-ZLA" secondAttribute="bottom" constant="5" id="NTc-om-xbo"/>
<constraint firstItem="dUU-kM-qiM" firstAttribute="top" secondItem="Ryi-dE-cYg" secondAttribute="top" id="Odp-4E-dNt"/>
<constraint firstItem="hum-Mo-zFX" firstAttribute="width" secondItem="A6O-U4-UGr" secondAttribute="width" id="On2-ns-dgL"/>
<constraint firstItem="yKv-m4-w6H" firstAttribute="top" secondItem="pjv-b2-iPq" secondAttribute="bottom" constant="10" id="Pha-fy-ofS"/>
<constraint firstItem="A6O-U4-UGr" firstAttribute="width" secondItem="RZ3-2O-Iin" secondAttribute="width" id="S25-OH-w3v"/>
<constraint firstItem="yKv-m4-w6H" firstAttribute="leading" secondItem="BUe-hm-JG9" secondAttribute="leading" id="TCE-SN-9dP"/>
<constraint firstAttribute="trailing" secondItem="AiL-Tl-7G9" secondAttribute="trailing" constant="15" id="VNd-9Q-Xs8"/>
<constraint firstItem="GT0-B9-RQ5" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" constant="15" id="Vdm-B9-tfL"/>
<constraint firstItem="LAX-tH-pF3" firstAttribute="leading" secondItem="dUU-kM-qiM" secondAttribute="trailing" constant="10" id="Vgz-ap-sss"/>
<constraint firstItem="BUe-hm-JG9" firstAttribute="trailing" secondItem="GT0-B9-RQ5" secondAttribute="trailing" id="Vu9-io-1kc"/>
<constraint firstItem="hum-Mo-zFX" firstAttribute="height" secondItem="A6O-U4-UGr" secondAttribute="height" id="Vy6-cE-d3g"/>
<constraint firstItem="hum-Mo-zFX" firstAttribute="top" secondItem="A6O-U4-UGr" secondAttribute="top" id="XGo-vJ-qNq"/>
<constraint firstAttribute="trailing" secondItem="HDM-va-7kG" secondAttribute="trailing" id="YX6-FQ-G4J"/>
<constraint firstItem="60L-bR-OE1" firstAttribute="leading" secondItem="GT0-B9-RQ5" secondAttribute="leading" id="YzX-Yt-FHF"/>
<constraint firstItem="60L-bR-OE1" firstAttribute="trailing" secondItem="GT0-B9-RQ5" secondAttribute="trailing" id="Z5I-sc-C6O"/>
<constraint firstItem="CmS-a0-5Ps" firstAttribute="height" secondItem="RZ3-2O-Iin" secondAttribute="height" id="ZoL-fa-jho"/>
<constraint firstItem="A6O-U4-UGr" firstAttribute="top" secondItem="yKv-m4-w6H" secondAttribute="bottom" constant="5" id="a5l-Ei-bbK"/>
<constraint firstItem="yKv-m4-w6H" firstAttribute="height" secondItem="BUe-hm-JG9" secondAttribute="height" id="cHE-fe-Au1"/>
<constraint firstAttribute="trailing" secondItem="GT0-B9-RQ5" secondAttribute="trailing" constant="15" id="dgb-T9-FSc"/>
<constraint firstItem="ji1-iU-ZLA" firstAttribute="height" secondItem="yKv-m4-w6H" secondAttribute="height" id="ecd-7D-fOM"/>
<constraint firstItem="BUe-hm-JG9" firstAttribute="leading" secondItem="GT0-B9-RQ5" secondAttribute="leading" id="g69-Lr-ETg"/>
<constraint firstItem="A6O-U4-UGr" firstAttribute="leading" secondItem="RZ3-2O-Iin" secondAttribute="leading" id="g9t-sF-u8K"/>
<constraint firstItem="so4-rI-aRi" firstAttribute="top" secondItem="LAX-tH-pF3" secondAttribute="bottom" constant="5" id="gbP-4A-nvp"/>
<constraint firstItem="LAX-tH-pF3" firstAttribute="top" secondItem="dUU-kM-qiM" secondAttribute="top" id="gsS-c4-5Jl"/>
<constraint firstItem="27e-O9-DsT" firstAttribute="leading" secondItem="hum-Mo-zFX" secondAttribute="trailing" constant="10" id="gyD-D2-fza"/>
<constraint firstItem="pjv-b2-iPq" firstAttribute="leading" secondItem="RZ3-2O-Iin" secondAttribute="trailing" constant="10" id="jl9-N9-Ryw"/>
<constraint firstItem="hum-Mo-zFX" firstAttribute="leading" secondItem="A6O-U4-UGr" secondAttribute="trailing" constant="10" id="jp2-Ks-94v"/>
<constraint firstItem="Ryi-dE-cYg" firstAttribute="height" secondItem="A6O-U4-UGr" secondAttribute="height" id="jpu-Tc-TLw"/>
<constraint firstItem="HDM-va-7kG" firstAttribute="top" secondItem="a21-3W-10n" secondAttribute="bottom" id="lS8-hA-rmu"/>
<constraint firstItem="AiL-Tl-7G9" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" constant="15" id="mY8-Cu-Dx5"/>
<constraint firstItem="LAX-tH-pF3" firstAttribute="width" secondItem="dUU-kM-qiM" secondAttribute="width" id="n6u-cZ-xDD"/>
<constraint firstItem="LAX-tH-pF3" firstAttribute="height" secondItem="dUU-kM-qiM" secondAttribute="height" id="oOC-eq-7wJ"/>
<constraint firstItem="AiL-Tl-7G9" firstAttribute="top" secondItem="so4-rI-aRi" secondAttribute="bottom" constant="1" id="s88-7x-SBb"/>
<constraint firstItem="dUU-kM-qiM" firstAttribute="leading" secondItem="Ryi-dE-cYg" secondAttribute="trailing" constant="10" id="xo8-nd-nWt"/>
<constraint firstItem="27e-O9-DsT" firstAttribute="height" secondItem="hum-Mo-zFX" secondAttribute="height" id="zZa-aw-otV"/>
</constraints>
</view>
<connections>
<outlet property="changeEnvironmentBtn" destination="so4-rI-aRi" id="ong-vG-zJ6"/>
<outlet property="downLoadBtn" destination="CmS-a0-5Ps" id="WnG-U6-5Us"/>
<outlet property="downLoadBtn2" destination="27e-O9-DsT" id="3aL-Hw-CdZ"/>
<outlet property="downLoadBtn3" destination="LAX-tH-pF3" id="oCw-OI-RiL"/>
<outlet property="enterRoomBtn" destination="RZ3-2O-Iin" id="rS3-Zw-S9B"/>
<outlet property="enterRoomBtn2" destination="A6O-U4-UGr" id="hty-a8-Odf"/>
<outlet property="enterRoomBtn3" destination="Ryi-dE-cYg" id="orB-TO-QsR"/>
<outlet property="koulingTextField" destination="BUe-hm-JG9" id="Dq2-2W-R41"/>
<outlet property="koulingTextField2" destination="yKv-m4-w6H" id="ZGW-k1-789"/>
<outlet property="koulingTextField3" destination="ji1-iU-ZLA" id="5SE-lf-e8p"/>
<outlet property="nameTextField" destination="GT0-B9-RQ5" id="RnI-Yg-hb5"/>
<outlet property="playBackBtn" destination="pjv-b2-iPq" id="3Gn-xw-QpA"/>
<outlet property="playBackBtn2" destination="hum-Mo-zFX" id="fWA-nJ-C8x"/>
<outlet property="playBackBtn3" destination="dUU-kM-qiM" id="iOd-Q4-nxu"/>
<outlet property="uuidTextField" destination="60L-bR-OE1" id="bHN-Ij-ANe"/>
<outlet property="versionLab" destination="AiL-Tl-7G9" id="UBb-Js-N2V"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="132" y="133.5832083958021"/>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIStatusBarHidden</key>
<true/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
//
// ViewController.h
// OffcnLiveSDK
//
// Created by vockey on 2018/7/25.
// Copyright © 2018年 中公教育. All rights reserved.
//
#import <UIKit/UIKit.h>
#define kOffcnLiveSDK_changeEnvironment @"kOffcnLiveSDK_changeEnvironment"
@interface ViewController : UIViewController
@end
//
// ViewController.m
// OffcnLiveSDK
//
// Created by vockey on 2018/7/25.
// Copyright © 2018年 中公教育. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()<UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UITextField *nameTextField;
@property (weak, nonatomic) IBOutlet UITextField *uuidTextField;
@property (weak, nonatomic) IBOutlet UITextField *koulingTextField;
@property (weak, nonatomic) IBOutlet UIButton *enterRoomBtn;
@property (weak, nonatomic) IBOutlet UIButton *playBackBtn;
@property (weak, nonatomic) IBOutlet UIButton *downLoadBtn;
@property (weak, nonatomic) IBOutlet UILabel *versionLab;
@property (weak, nonatomic) IBOutlet UITextField *koulingTextField2;
@property (weak, nonatomic) IBOutlet UIButton *enterRoomBtn2;
@property (weak, nonatomic) IBOutlet UIButton *playBackBtn2;
@property (weak, nonatomic) IBOutlet UIButton *downLoadBtn2;
@property (weak, nonatomic) IBOutlet UITextField *koulingTextField3;
@property (weak, nonatomic) IBOutlet UIButton *enterRoomBtn3;
@property (weak, nonatomic) IBOutlet UIButton *playBackBtn3;
@property (weak, nonatomic) IBOutlet UIButton *downLoadBtn3;
@property (weak, nonatomic) IBOutlet UIButton *changeEnvironmentBtn;
@end
@implementation ViewController
#pragma mark - 测试专用:本地文件内容查看插件
- (IBAction)logBtnAction:(UIButton *)sender {
// [[FLEXManager sharedManager] showExplorer];
}
#pragma mark - 切换环境
- (IBAction)clickChangeEnvironmentBtnAction:(UIButton *)sender {
sender.selected = !sender.isSelected;
//中公直播使用测试环境设置为YES,正式环境设置为NO或者去掉这个配置
// [OffcnLiveSDK defaultService].isTest = sender.isSelected;
//
// [[NSUserDefaults standardUserDefaults] setValue:[NSNumber numberWithBool:[OffcnLiveSDK defaultService].isTest] forKey:kOffcnLiveSDK_changeEnvironment];
// [[NSUserDefaults standardUserDefaults] synchronize];
}
#pragma mark - 点我退出键盘
- (IBAction)clickExitKeyboardAction:(UIButton *)sender {
[self.view endEditing:YES];
}
#pragma mark - 直播事件
- (IBAction)enterRoomAction:(UIButton *)sender {
[self enterSmallClassWithNickname:self.nameTextField.text password:self.koulingTextField.text uuid:self.uuidTextField.text];
}
-(void)enterSmallClassWithNickname:(NSString *)nickname password:(NSString *)password uuid:(NSString *)uuid{
[self.view endEditing:YES];
}
- (IBAction)enterRoomAction2:(UIButton *)sender {
[self enterRoomPublicMethodWithNickname:self.nameTextField.text password:self.koulingTextField2.text uuid:self.uuidTextField.text];
}
- (IBAction)enterRoomAction3:(UIButton *)sender {
[self enterRoomPublicMethodWithNickname:self.nameTextField.text password:self.koulingTextField3.text uuid:self.uuidTextField.text];
}
-(void)enterRoomPublicMethodWithNickname:(NSString *)nickname password:(NSString *)password uuid:(NSString *)uuid{
[self.view endEditing:YES];
}
#pragma mark - 回放视频事件
- (IBAction)playBackAction:(UIButton *)sender {
}
- (IBAction)playBackAction2:(UIButton *)sender {
[self playBackPublicMethodWithNickname:self.nameTextField.text password:self.koulingTextField2.text uuid:self.uuidTextField.text];
}
- (IBAction)playBackAction3:(UIButton *)sender {
[self playBackPublicMethodWithNickname:self.nameTextField.text password:self.koulingTextField3.text uuid:self.uuidTextField.text];
}
-(void)playBackPublicMethodWithNickname:(NSString *)nickname password:(NSString *)password uuid:(NSString *)uuid{
[self.view endEditing:YES];
}
#pragma mark - 下载视频事件
- (IBAction)downloadAction:(UIButton *)sender {
[self downloadPublicMethod];
}
- (IBAction)downloadAction2:(UIButton *)sender {
[self downloadPublicMethod];
}
- (IBAction)downloadAction3:(UIButton *)sender {
[self downloadPublicMethod];
}
-(void)downloadPublicMethod{
}
//测试环境小班课录制z84pkgl743il-大班课录制11pvxwnxp3ce//疫情开会z4mndpdmuq-ev0gm7xqsq
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"demo";
// self.changeEnvironmentBtn.selected = [OffcnLiveSDK defaultService].isTest;
NSString *dateStr = [self getAllCurrentTimes];
self.versionLab.text = [NSString stringWithFormat:@"版本号-打包日期:\n%@(%@)",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"],dateStr];
self.nameTextField.text = @"张";
// self.uuidTextField.text = @"12310";
self.uuidTextField.text = [NSString stringWithFormat:@"%d",arc4random_uniform(1000000)];
self.koulingTextField.text = @"";
self.koulingTextField2.text = @"";
self.koulingTextField3.text = @"";
self.nameTextField.delegate = self;
self.uuidTextField.delegate = self;
[self.nameTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
[self.uuidTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
self.koulingTextField.delegate = self;
[self.koulingTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
self.koulingTextField2.delegate = self;
[self.koulingTextField2 addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
self.koulingTextField3.delegate = self;
[self.koulingTextField3 addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
if (self.nameTextField.text.length && self.koulingTextField.text.length && self.uuidTextField.text.length) {
self.enterRoomBtn.enabled = YES;
self.playBackBtn.enabled = YES;
self.downLoadBtn.enabled = YES;
}else{
self.enterRoomBtn.enabled = NO;
self.playBackBtn.enabled = NO;
self.downLoadBtn.enabled = NO;
}
if (self.nameTextField.text.length && self.koulingTextField2.text.length && self.uuidTextField.text.length) {
self.enterRoomBtn2.enabled = YES;
self.playBackBtn2.enabled = YES;
self.downLoadBtn2.enabled = YES;
}else{
self.enterRoomBtn2.enabled = NO;
self.playBackBtn2.enabled = NO;
self.downLoadBtn2.enabled = NO;
}
if (self.nameTextField.text.length && self.koulingTextField3.text.length && self.uuidTextField.text.length) {
self.enterRoomBtn3.enabled = YES;
self.playBackBtn3.enabled = YES;
self.downLoadBtn3.enabled = YES;
}else{
self.enterRoomBtn3.enabled = NO;
self.playBackBtn3.enabled = NO;
self.downLoadBtn3.enabled = NO;
}
}
-(NSString*)getAllCurrentTimes{
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSDate *datenow = [NSDate date];
NSString *currentTimeString = [formatter stringFromDate:datenow];
return currentTimeString;
}
#pragma mark - UITextField代理
-(void)textFieldDidChange:(UITextField *)textField{
if (self.nameTextField.text.length && self.koulingTextField.text.length && self.uuidTextField.text.length) {
self.enterRoomBtn.enabled = YES;
self.playBackBtn.enabled = YES;
self.downLoadBtn.enabled = YES;
}else{
self.enterRoomBtn.enabled = NO;
self.playBackBtn.enabled = NO;
self.downLoadBtn.enabled = NO;
}
if (self.nameTextField.text.length && self.koulingTextField2.text.length && self.uuidTextField.text.length) {
self.enterRoomBtn2.enabled = YES;
self.playBackBtn2.enabled = YES;
self.downLoadBtn2.enabled = YES;
}else{
self.enterRoomBtn2.enabled = NO;
self.playBackBtn2.enabled = NO;
self.downLoadBtn2.enabled = NO;
}
if (self.nameTextField.text.length && self.koulingTextField3.text.length && self.uuidTextField.text.length) {
self.enterRoomBtn3.enabled = YES;
self.playBackBtn3.enabled = YES;
self.downLoadBtn3.enabled = YES;
}else{
self.enterRoomBtn3.enabled = NO;
self.playBackBtn3.enabled = NO;
self.downLoadBtn3.enabled = NO;
}
}
- (BOOL)textFieldShouldClear:(UITextField *)textField{
if (textField == self.koulingTextField) {
self.enterRoomBtn.enabled = NO;
self.playBackBtn.enabled = NO;
self.downLoadBtn.enabled = NO;
}else if (textField == self.koulingTextField2){
self.enterRoomBtn2.enabled = NO;
self.playBackBtn2.enabled = NO;
self.downLoadBtn2.enabled = NO;
}else if (textField == self.koulingTextField3){
self.enterRoomBtn3.enabled = NO;
self.playBackBtn3.enabled = NO;
self.downLoadBtn3.enabled = NO;
}else{
self.enterRoomBtn.enabled = NO;
self.playBackBtn.enabled = NO;
self.downLoadBtn.enabled = NO;
self.enterRoomBtn2.enabled = NO;
self.playBackBtn2.enabled = NO;
self.downLoadBtn2.enabled = NO;
self.enterRoomBtn3.enabled = NO;
self.playBackBtn3.enabled = NO;
self.downLoadBtn3.enabled = NO;
}
return YES;
}
- (NSString *)documentPath{
NSString *docDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
docDir = [docDir stringByAppendingPathComponent:@"test"];
return docDir;
}
//可旋转屏幕
- (BOOL)shouldAutorotate {
return NO;
}
/** 返回直接支持的方向 */
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
[self.view endEditing:YES];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
//
// main.m
// OffcnIMSDKiOS
//
// Created by vockey on 2020/8/17.
// Copyright © 2020 offcn. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
NSString * appDelegateClassName;
@autoreleasepool {
// Setup code that might create autoreleased objects goes here.
appDelegateClassName = NSStringFromClass([AppDelegate class]);
}
return UIApplicationMain(argc, argv, nil, appDelegateClassName);
}
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target 'OffcnIMSDKiOS' do
# use_frameworks!
#pod 'AFNetworking', '~> 3.1.0'
#pod 'MJExtension', '~> 3.0.13'
#pod 'MBProgressHUD', '~> 1.0.0'
#pod 'Masonry', '1.1.0'
#pod 'RealReachability', '~> 1.1.9'
#pod 'SDWebImage', '~> 4.0.0'
#pod 'MJRefresh', '~> 3.1.12'
#pod 'MLeaksFinder'
#pod 'AliyunOSSiOS'
#pod 'UMCCommon'
#pod 'UMCSecurityPlugins'
#pod 'UMCAnalytics'
#pod 'UMCCommonLog'
#pod 'UMCErrorCatch'
#pod 'Sentry'
#pod 'FLEX', :configurations => ['Debug']
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment