Custom size for Modal View loaded with Form Sheet presentation

前端 未结 10 869
予麋鹿
予麋鹿 2021-02-01 12:44

I\'m trying to load a UIViewController in iPad with Form Sheet presentation. The problem is the size of this new view, i put the size values in the IBuilder but the modal view t

10条回答
  •  感情败类
    2021-02-01 13:14

    I also had this issue, You should resize superview's frame after presenting it.

    HelpViewController *viewController = segue.destinationViewController;
    viewController.modalPresentationStyle = UIModalPresentationPageSheet;
    [self presentViewController:viewController animated:YES completion:nil];
    viewController.view.superview.frame = CGRectMake(0, 0, 200, 200);
    

提交回复
热议问题