我正在尝试进行转场,但是当转场执行时,模态视图未居中,我无法与之交互。有任何想法吗?我尝试在 viewWillLayoutSubviews 上设置超级视图位置和诸如此类的东西,但这并没有改变任何东西。
- (void)viewWillLayoutSubviews{
[super viewWillLayoutSubviews];
self.view.superview.bounds = CGRectMake(0, 0, 550, 650);
self.view.superview.center = self.view.center;
}
if ([segue.identifier isEqualToString:@"PresentJobDetailViewController"]) {
[self save:nil];
UINavigationController *nav = (UINavigationController *)segue.destinationViewController;
ViewController *viewController = (ViewController *)[nav.viewControllers objectAtIndex:0]; viewController.obj = _obj;
}