0
我想調整大小和重新定位模態視圖。調整大小運作良好。重新定位不起作用。有影子的bug。請參閱第二張截圖。是否有可能降低陰影?當我調整模態視圖控制器時,我有一個影子錯誤
-(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);
您可能需要更改視圖的框架,而不是超級視圖的界限。 – fishinear