美文网首页iOS Developer
isBeingDismissed is not work

isBeingDismissed is not work

作者: wuzhx | 来源:发表于2016-07-01 10:20 被阅读363次
            viewController.isBeingPresented == NO;
            [rootVC presentViewController:viewController animated:NO completion:^{
                viewController.isBeingPresented == NO;
                viewController.isBeingDismissed == NO;
                [viewController dismissViewControllerAnimated:NO completion:^{
                    viewController.isBeingDismissed == NO;
                }];
                viewController.isBeingDismissed == NO;    // is not work
            }];
            viewController.isBeingPresented == YES;     // is work
            
            
            
            viewController.isBeingPresented == NO;
            [rootVC presentViewController:viewController animated:NO completion:^{
                viewController.isBeingPresented == NO;
                dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                    viewController.isBeingDismissed == NO;
                    [viewController dismissViewControllerAnimated:NO completion:^{
                        viewController.isBeingDismissed == NO;
                    }];
                    viewController.isBeingDismissed == YES;    // is work
                });
            }];
            viewController.isBeingPresented == YES;     // is work

    相关文章

      网友评论

        本文标题:isBeingDismissed is not work

        本文链接:https://www.haomeiwen.com/subject/kwmfjttx.html