From 5504efdce86a2d826acb2a44eddfe640d365d486 Mon Sep 17 00:00:00 2001 From: zher52 Date: Mon, 18 Apr 2022 22:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=8E=E7=89=88=E6=9C=ACio?= =?UTF-8?q?s=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.xml | 1 + src/ios/VideoCallingViewController.m | 18 ++++++ src/ios/VideoCallingViewController.xib | 75 +++++++++---------------- src/ios/iconfont.ttf | Bin 0 -> 3800 bytes 4 files changed, 44 insertions(+), 50 deletions(-) create mode 100644 src/ios/iconfont.ttf diff --git a/plugin.xml b/plugin.xml index 27d405f..5c7f87d 100644 --- a/plugin.xml +++ b/plugin.xml @@ -61,6 +61,7 @@ + diff --git a/src/ios/VideoCallingViewController.m b/src/ios/VideoCallingViewController.m index d4541af..a616d8a 100755 --- a/src/ios/VideoCallingViewController.m +++ b/src/ios/VideoCallingViewController.m @@ -42,6 +42,9 @@ static const NSInteger maxRemoteUserNum = 7; @interface VideoCallingViewController () @property (weak, nonatomic) IBOutlet UIButton *backButton; +@property (weak, nonatomic) IBOutlet UIButton *micButton; +@property (weak, nonatomic) IBOutlet UIButton *spakeButton; +@property (weak, nonatomic) IBOutlet UIButton *camareButton; @property (weak, nonatomic) IBOutlet UIButton *subVisibleButton; @property (weak, nonatomic) IBOutlet UIButton *viewRotateButton; @property (strong, nonatomic) IBOutletCollection(UIView) NSArray *remoteViewArr; @@ -133,6 +136,21 @@ static const NSInteger maxRemoteUserNum = 7; - (void)setupDefaultUIConfig { NSLog(@"TRTC - setupDefaultUIConfig:::::"); +// UIFont*font = [UIFont size:24]; + +// NSMutableAttributedString *attributedStr = [[NSMutableAttributedString alloc] initWithString:@"\U0000e679" attributes: @{NSFontAttributeName:font}]; +// [_backButton setFont:(API_DEPRECATED("Specify an attributed title with a custom font", ios(2.0, 3.0)) UIFont *)] +// [_backButton setAttributedTitle:attributedStr forState:UIControlStateNormal]; +// self.backButton.titleLabel.font = ; + [_backButton setTitle:@"\U0000e679" forState:UIControlStateNormal]; + [_micButton setTitle:@"\U0000e67a" forState:UIControlStateNormal]; + [_micButton setTitle:@"\U0000e658" forState:UIControlStateSelected]; + [_spakeButton setTitle:@"\U0000e664" forState:UIControlStateNormal]; + [_spakeButton setTitle:@"\U0000e775" forState:UIControlStateSelected]; + [_camareButton setTitle:@"\U0000e824" forState:UIControlStateNormal]; + [_subVisibleButton setTitle:@"\U0000e695" forState:UIControlStateNormal]; + [_subVisibleButton setTitle:@"\U0000e81a" forState:UIControlStateSelected]; + [_viewRotateButton setTitle:@"\U0000e657" forState:UIControlStateNormal]; _displayLabel.text = @"我"; _displayLabel.hidden = NO; _rotation = 0; diff --git a/src/ios/VideoCallingViewController.xib b/src/ios/VideoCallingViewController.xib index 60fbb93..df42f81 100755 --- a/src/ios/VideoCallingViewController.xib +++ b/src/ios/VideoCallingViewController.xib @@ -7,10 +7,19 @@ + + + iconfont + + + + + + @@ -204,16 +213,16 @@ - - + -