我在主视图控制器的顶部添加了另一个视图控制器(自由视图控制器),但不知何故,它没有显示全尺寸。请查看下面的代码和屏幕截图。
- (void)viewDidLoad
{
[super viewDidLoad];
firstSurveyViewController = [[FirstSurveyViewController alloc] initWithNibName:@"FirstSurveyViewController" bundle:[NSBundle mainBundle]];
CGRect rect = [firstSurveyViewController.view frame];
rect.origin.x = 10;
rect.origin.y = 20;
[firstSurveyViewController.view setFrame:rect];
[self.view addSubview:firstSurveyViewController.view];
}