ios5 - 带故事板的模态视图控制器的大小 [英] ios5 - size of modal view controller with storyboard

查看:93
本文介绍了ios5 - 带故事板的模态视图控制器的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 有没有办法调整使用故事板segue以模态方式呈现的视图控制器?

  1. is there any way to resize a View Controller that has been presented modally using a storyboard segue?

如何通过翻转过渡从这个模态视图控制器呈现另一个视图控制器?

how do I present another View Controller from this modal view controller with a flip transition?

如果我将其定义为样式=模态,演示=默认,过渡=水平翻转它看起来很奇怪(背景为白色)。

If I define it as Style=Modal, Presentation=Default, Transition=Flip Horizontal it just looks weird (background is white).

Thx!

推荐答案

是的。在界面构建器中选择视图控制器,并在属性检查器中将大小设置为自由形式(来自推断)。然后选择视图并将其测量值设置为您需要的任何值。需要注意的一点是取消选中视图控制器中从NIB调整大小视图,否则视图将再次全屏显示。

Yes. In interface builder select the view controller and in the attribute inspector set Size to freeform (from inferred). Then select the view and set its measurements to whatever you require. An important point to note is uncheck Resize View From NIB in the view controller otherwise the view becomes full screen again.

如果背景是唯一的,则不确定第二个问题问题你不能只设置颜色吗?

Not sure about the second question if the background is the only problem can't you just set the colour?

希望这会有所帮助。

这篇关于ios5 - 带故事板的模态视图控制器的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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