Execute a method after the completion of a block method
问题 I am using RNFrostedSidebar for leftmenu. While dismissing the sidebar, below block of code is executing - (void)handleTap:(UIPanGestureRecognizer *)recognizer { [self dismissAnimated:YES completion:nil]; } - (void)dismissAnimated:(BOOL)animated completion:(void (^)(BOOL finished))completion { void (^completionBlock)(BOOL) = ^(BOOL finished){ [self rn_removeFromParentViewControllerCallingAppearanceMethods:YES]; rn_frostedMenu = nil; if (completion) { completion(finished); } }; if (animated) {