Skip to content

Commit f8790cc

Browse files
author
annidyfeng
committed
iOS demo
1 parent 5975847 commit f8790cc

File tree

112 files changed

+14574
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+14574
-0
lines changed

iOS/SDK/请将TXLiteAVSDK_TRTC.framework放在这里

Whitespace-only changes.

iOS/TRTCDemo.xcodeproj/project.pbxproj

Lines changed: 640 additions & 0 deletions
Large diffs are not rendered by default.

iOS/TRTCDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

iOS/TRTCDemo/AppDelegate.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// AppDelegate.h
3+
// TRTCDemo
4+
//
5+
// Created by rushanting on 2018/12/21.
6+
// Copyright © 2018 rushanting. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
12+
13+
@property (strong, nonatomic) UIWindow *window;
14+
15+
16+
@end
17+

iOS/TRTCDemo/AppDelegate.m

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
//
2+
// AppDelegate.m
3+
// TRTCDemo
4+
//
5+
// Created by rushanting on 2018/12/21.
6+
// Copyright © 2018 rushanting. All rights reserved.
7+
//
8+
9+
#import "AppDelegate.h"
10+
#import "TRTCNewViewController.h"
11+
12+
@interface AppDelegate ()
13+
14+
@end
15+
16+
@implementation AppDelegate
17+
18+
19+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
20+
// Override point for customization after application launch.
21+
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
22+
TRTCNewViewController *entrance = [[TRTCNewViewController alloc] init];
23+
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:entrance];
24+
nav.navigationBar.translucent = YES;
25+
UIGraphicsBeginImageContextWithOptions(CGSizeMake(1, 1), NO, 1);
26+
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
27+
UIGraphicsEndImageContext();
28+
[[UINavigationBar appearance] setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
29+
[[UINavigationBar appearance] setShadowImage:[UIImage new]];
30+
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
31+
[[UINavigationBar appearance] setBarTintColor:UIColor.blackColor];
32+
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
33+
self.window.rootViewController = nav;
34+
[self.window makeKeyAndVisible];
35+
return YES;
36+
return YES;
37+
}
38+
39+
40+
- (void)applicationWillResignActive:(UIApplication *)application {
41+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
42+
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
43+
}
44+
45+
46+
- (void)applicationDidEnterBackground:(UIApplication *)application {
47+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
48+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
49+
}
50+
51+
52+
- (void)applicationWillEnterForeground:(UIApplication *)application {
53+
// 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.
54+
}
55+
56+
57+
- (void)applicationDidBecomeActive:(UIApplication *)application {
58+
// 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.
59+
}
60+
61+
62+
- (void)applicationWillTerminate:(UIApplication *)application {
63+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
64+
}
65+
66+
67+
@end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"size" : "29x29",
16+
"scale" : "2x"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"size" : "29x29",
21+
"scale" : "3x"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"size" : "40x40",
26+
"scale" : "2x"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"size" : "40x40",
31+
"scale" : "3x"
32+
},
33+
{
34+
"size" : "60x60",
35+
"idiom" : "iphone",
36+
"filename" : "AppIcon120x120.png",
37+
"scale" : "2x"
38+
},
39+
{
40+
"idiom" : "iphone",
41+
"size" : "60x60",
42+
"scale" : "3x"
43+
},
44+
{
45+
"size" : "1024x1024",
46+
"idiom" : "ios-marketing",
47+
"filename" : "AppIcon1024x1024.png",
48+
"scale" : "1x"
49+
}
50+
],
51+
"info" : {
52+
"version" : 1,
53+
"author" : "xcode"
54+
}
55+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

0 commit comments

Comments
 (0)