我试图将 modalviewcontroller 的动画设置为 false 并且帧调整不起作用,但是当我尝试打开动画时它会正常工作。有解决办法吗?以下是我的代码的上下文:
MyModal *modal = [[MyModal alloc] initWithNibName:@"MyModal" bundle:nil];
modal.modalPresentationStyle = UIModalPresentationFormSheet;
modal.view.superview.frame = CGRectMake(0, 0, 458, 230);
modal.view.superview.center = self.view.center;
[self.navigationController presentModalViewController:modal animated:NO];