ios - using didDismissCompletionHandler in MZFormSheetController -
i'm using mzformsheetcontroller present modals in app. there situation want present second sheet controller right after dismiss first one. in order that, there completion block, can't figure out how use it.
the code looks this:
[self mz_presentformsheetcontroller:formsheet animated:yes completionhandler:^(mzformsheetcontroller *formsheetcontroller) { formsheetcontroller.diddismisscompletionhandler; }];
in completion handler, supposed notified of sheet dismissal can call second sheet?
this pretty simple, not totally intuitive if haven't spent time in type of environment.
[self mz_presentformsheetcontroller:formsheet animated:yes completionhandler:^(mzformsheetcontroller *formsheetcontroller) { formsheetcontroller.diddismisscompletionhandler = ^(uiviewcontroller *presentedviewcontroller){ [self presentothercontroller]; }; }];
Comments
Post a Comment