UIViewController Freeform size issue

2019-03-03 15:39发布

I am using this amazing PopupViewController (https://github.com/martinjuhasz/MJPopupViewController) control. My app uses storyboards. I have created a custom Segue as per developers instruction(https://github.com/martinjuhasz/MJPopupViewController/issues/8) and changed the UIViewController size property to Freeform and re sized it smaller than full screen. But when it called, it shows full screen. Code for custom Segue is below #import "PopupSegue.h"

#import "UIViewController+MJPopupViewController.h"

@implementation PopupSegue

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

@end

What I am doing wrong? Also is there any better open source PopupViewController with storyboard support?

1条回答
不美不萌又怎样
2楼-- · 2019-03-03 16:12

I need to uncheck option "Resize View From NIB" in your View Controller's Attributes Inspector

查看更多
登录 后发表回答