Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: webrtc/examples/objc/AppRTCMobile/ios/ARDMainView.m

Issue 2455363002: Add UINavigationController to AppRTCMobile. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/objc/AppRTCMobile/ios/ARDMainView.m
diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainView.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainView.m
index 9ebee5c0996849706bee77941e2c6f33a5b5d40e..20340366c5cf7f003fd145385fc5f4fe0166866a 100644
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainView.m
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainView.m
@@ -114,7 +114,6 @@ static CGFloat const kCallControlMargin = 8;
@end
@implementation ARDMainView {
- UILabel *_appLabel;
ARDRoomTextField *_roomText;
UILabel *_callOptionsLabel;
UISwitch *_audioOnlySwitch;
@@ -136,13 +135,6 @@ static CGFloat const kCallControlMargin = 8;
- (instancetype)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
- _appLabel = [[UILabel alloc] initWithFrame:CGRectZero];
- _appLabel.text = @"AppRTCMobile";
- _appLabel.font = [UIFont fontWithName:@"Roboto" size:34];
- _appLabel.textColor = [UIColor colorWithWhite:0 alpha:.2];
- [_appLabel sizeToFit];
- [self addSubview:_appLabel];
-
_roomText = [[ARDRoomTextField alloc] initWithFrame:CGRectZero];
[self addSubview:_roomText];
@@ -263,11 +255,8 @@ static CGFloat const kCallControlMargin = 8;
CGRect bounds = self.bounds;
CGFloat roomTextWidth = bounds.size.width - 2 * kRoomTextFieldMargin;
CGFloat roomTextHeight = [_roomText sizeThatFits:bounds.size].height;
- _roomText.frame = CGRectMake(kRoomTextFieldMargin,
- kStatusBarHeight + kRoomTextFieldMargin,
- roomTextWidth,
- roomTextHeight);
- _appLabel.center = CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds));
+ _roomText.frame =
+ CGRectMake(kRoomTextFieldMargin, kRoomTextFieldMargin, roomTextWidth, roomTextHeight);
CGFloat callOptionsLabelTop =
CGRectGetMaxY(_roomText.frame) + kCallControlMargin * 4;
« no previous file with comments | « webrtc/examples/objc/AppRTCMobile/ios/ARDAppDelegate.m ('k') | webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698