UIViewController Freeform size issue

邮差的信 提交于 2019-12-04 05:06:49

问题


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:


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



来源:https://stackoverflow.com/questions/20046981/uiviewcontroller-freeform-size-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!