我想调整和重新定位模态视图。调整大小效果很好。重新定位不起作用。有阴影的错误。请看截图二。是否可以降低阴影?
-(IBAction) onModal:(id)sender
{
UINavigationController *nav = [[UINavigationController alloc] init];
nav.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:nav animated:YES completion:nil];
nav.view.superview.bounds = CGRectMake(0, 0, 200, 200);
}
nav.view.superview.bounds = CGRectMake(0, -200, 200, 200);