Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Can't show MJPopup on iOS 7 #81

Open
dleviathan opened this issue Jun 13, 2016 · 0 comments
Open

Can't show MJPopup on iOS 7 #81

dleviathan opened this issue Jun 13, 2016 · 0 comments

Comments

@dleviathan
Copy link

dleviathan commented Jun 13, 2016

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?

@dleviathan dleviathan changed the title Can't show MJPopup Can't show MJPopup on iOS 7 Jun 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant