iPad custom size of modal view controller

前端 未结 13 1997
挽巷
挽巷 2020-12-07 08:11

I have a couple of modal view controllers of certain size. I\'m trying to avoid the use of custom views (creating full screen black translucent overlay over current view, ad

13条回答
  •  醉酒成梦
    2020-12-07 08:59

    You can use MZFormSheetController like this:

    MZFormSheetController *formSheet = [[MZFormSheetController alloc] initWithSize:customSize viewController:presentedViewController];
    [presentingViewController mz_presentFormSheetController:formSheet animated:YES completionHandler:nil];
    

提交回复
热议问题