UIViewController自由形式大小问题 [英] UIViewController Freeform size issue

查看:1029
本文介绍了UIViewController自由形式大小问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用这个惊人的PopupViewController( https://github.com/martinjuhasz/MJPopupViewController )控件。我的应用程序使用故事板。
我根据开发者指令创建了一个自定义Segue( https://github.com/ martinjuhasz / MJPopupViewController / issues / 8 )并将UIViewController size属性更改为Freeform,并将其大小调整为小于全屏。但是当它打电话时,它会显示全屏。
自定义Segue的代码低于
#importPopupSegue.h

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

我做错了什么?还有没有更好的开源PopupViewController与故事板支持?

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

推荐答案

我需要取消选中从NIB调整视图选项查看控制器的属性检查器

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

这篇关于UIViewController自由形式大小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆