我有以下代码:
PNRProfileViewController *vc = [[PNRProfileViewController alloc] initWithNibName:@"PNRProfileViewController" bundle:nil];
vc.delegate = self;
self.profileVC_ = vc;
UINavigationController *controller = [[UINavigationController alloc] initWithRootViewController:self.profileVC_];
AHLog(@"FRAME IS %@", NSStringFromCGRect(self.profileVC_.view.frame));
controller.view.frame = self.profileVC_.view.frame;
controller.view.autoresizingMask = self.profileVC_.view.autoresizingMask;
self.currentViewController_ = controller;
当我运行这段代码时,我得到的帧高度每次都会改变..它在 416 和 460 之间交替。我不知道为什么会这样。有什么线索吗?