The idea is that this dialog window, in fact, is also a viewcontroller, assuming that the Modalviewcontroller
code is as follows
Judgment System version #define  IOSVERSIONGREATERTHANOREQUALTO (v) ([[[uidevice currentdevice] systemversion] compare:v options:nsnumericsearch] != nsorderedascending) // button triggers event- (void) buttonpressed: (ID) Sender
modalviewcontroller *modalvc = [[modalviewcontroller alloc] init];
modalVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; if ( iosversiongreaterthanorequalto (@ "8.0") ) {
modalVC.providesPresentationContextTransitionStyle = YES;
modalVC.definesPresentationContext = YES; modalVC.modalPresentationStyle =
Uimodalpresentationovercurrentcontext; &nbSp
[self presentviewcontroller:modalvc animated:yes completion:nil]; } else {
self.view.window.rootviewcontroller.modalpresentationstyle = uimodalpresentationcurrentcontext; [self presentviewcontroller:modalvc animated:no
completion:nil]; self.view.window.rootviewcontroller.modalpresentationstyle
= UIModalPresentationFullScreen;    &NBSP}}