# HG changeset patch # User antonc27 # Date 1439595861 -7200 # Node ID f4e3bf03cc3554ebf42085512ffb7d9a1a6d7a74 # Parent bd58a851eb8d21adbb19f6f8de80f0e14b697c7d - Small fix for debug view frame Note: Still need to handle autorotation here diff -r bd58a851eb8d -r f4e3bf03cc35 project_files/HedgewarsMobile/Classes/MainMenuViewController.m --- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m Sat Aug 15 01:40:06 2015 +0200 +++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m Sat Aug 15 01:44:21 2015 +0200 @@ -127,7 +127,7 @@ debugStr = [[NSString alloc] initWithContentsOfFile:DEBUG_FILE()]; else debugStr = [[NSString alloc] initWithString:@"Here be log"]; - UITextView *scroll = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height, self.view.frame.size.width)]; + UITextView *scroll = [[UITextView alloc] initWithFrame:self.view.frame]; scroll.text = debugStr; [debugStr release]; scroll.editable = NO; @@ -136,7 +136,7 @@ UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; [btn addTarget:scroll action:@selector(removeFromSuperview) forControlEvents:UIControlEventTouchUpInside]; [btn addTarget:btn action:@selector(removeFromSuperview) forControlEvents:UIControlEventTouchUpInside]; - btn.frame = CGRectMake(self.view.frame.size.height-58, -6, 64, 64); + btn.frame = CGRectMake(self.view.frame.size.width-58, -6, 64, 64); btn.backgroundColor = [UIColor blackColor]; btn.titleLabel.textColor = [UIColor whiteColor]; btn.titleLabel.textAlignment = UITextAlignmentCenter;