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

MJPopupViewController with Storyborad #8

Closed
bhushanb02 opened this issue Aug 27, 2012 · 5 comments
Closed

MJPopupViewController with Storyborad #8

bhushanb02 opened this issue Aug 27, 2012 · 5 comments

Comments

@bhushanb02
Copy link

Hi,
Could anyone plz tell me, how should i use MJPopupViewController with storyboard application.
Thanks in advance.

@nbransby
Copy link

nbransby commented Sep 4, 2012

you could create a custom segue such as this:

#import "UIViewController+MJPopupViewController.h"

@implementation MJPopupSegue

- (void)perform {
    [self.sourceViewController presentPopupViewController:self.destinationViewController animationType:MJPopupViewAnimationFade];
}

@end

Then you can use that segue in your storyboard - remember to set the view controller you want to popup to freeform sizing and make it smaller than fullscreen

@bhushanb02
Copy link
Author

Hearty Thanks for ur reply.

@dimodu
Copy link

dimodu commented Oct 30, 2012

Great, it's work fine! but if I want dismiss MJPopupViewController, how can I do?
I have create an IBAction in MJPopupViewController like this:

- (IBAction)cancel:(id)sender
{
    [self dismissPopupViewControllerWithanimationType:MJPopupViewAnimationSlideRightLeft];
}

now..the popup is closed with animation, but the background button not.
Can you help me? Thanks

@jaiversin
Copy link

What do you mean with "the background button"? I think you're referring to the black overlay behind the View, am I right? If it's that, i have the same problem on dismissing the VC with dismissPopupViewControllerWithanimationType on iPad and iPhone.

@Minene
Copy link

Minene commented Dec 12, 2013

I'm not sure you already solved the problem, but for other people, you need to remove the self.mj_popupBackgroundView from its superview.

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

6 participants