You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
I have TableView in UIViewController with custom cell. And in custom cell I have 1 A view with UITapGestureRecognizer when tap it I call viewController as popup as below:
in AView.m
I have TableView in UIViewController with custom cell. And in custom cell I have 1 A view with UITapGestureRecognizer when tap it I call viewController as popup as below:
in AView.m
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; PreviewImageController *vc = [storyboard instantiateViewControllerWithIdentifier:STORYBOARD_ID_PREVIEW_IMAGE]; vc.sUrlImage = self.sUrl; vc.view.frame = CGRectMake(200, 200, 250, 250); vc.tapToBack = ^{ [[self parentVController] dismissPopupViewControllerWithanimationType:MJPopupViewAnimationFade]; }; [[self parentVController] presentPopupViewController:vc animationType:MJPopupViewAnimationFade];
with [self parentVController] is category from UIView:
-(UIViewController *)parentVController{ id object = [self nextResponder]; while (![object isKindOfClass:[UIViewController class]] && object != nil) { object = [object nextResponder]; } return object; }
When I check parentController, it still get exactly UIViewcontroller include tableview. But popup no show. Have any idea for solution?
The text was updated successfully, but these errors were encountered: