SomeViewController *someVC = [[SomeViewController alloc] initWithNibName:@"SomeViewController" bundle:nil];
self.someViewController = someVC;
[someVC release];
NSLog(@"height before added as subview: %f", self.someViewController.view.frame.size.height);
[self.containerView addSubview:self.someViewController.view];
NSLog(@"height AFTER added as subview: %f", self.someViewController.view.frame.size.height);
// height before added as subview: 480.000000
// height AFTER added as subview: 540.000000
가능한 설명은 무엇입니까? someViewController의 뷰에는 자동 크기 조정 속성 세트가 없으며 containerView는 서브 뷰의 자동 크기 조정을 수행하지 않습니다. 프레임을 하위보기로 추가하여 프레임이 변경 될 수 있습니까?보기 컨트롤러보기를 하위보기로 추가하면 프레임이 변경됩니까?
이에 또 신비 someViewController의 뷰 높이> = 480
미스터리 ... 프레임을 경계로 바꾸면 어떻게됩니까? – jakev