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

Popular posts from this blog

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -

github - Git errors while pushing -

java - Generating a pre-signed PUT url for Amazon S3 with a maximum content-length -