如何在ViewController Swift上修复PageMenu

Zhanserik

我使用PageMenu我需要受高度限制的修复菜单。这该怎么做?我知道如何固定菜单的高度,无需对此进行解答。AutoLayout受约束的问题。我需要在ViewController上修复PageMenu。应用必须在不同的设备上运行。我尝试更改Y值。但无法满足我的需求。

pageMenu = CAPSPageMenu(viewControllers: controllerArray, frame: CGRectMake(0.0, 240.0, self.view.frame.width, self.view.frame.height), pageMenuOptions: parameters)
Zhanserik

我通过固定等于250的顶视图高度来固定它,并通过约束固定所有元素。

当我编写此代码时,底部视图固定了我的需要。

pageMenu = CAPSPageMenu(viewControllers: controllerArray, frame: CGRectMake(0.0, 250.0, self.view.frame.width, self.view.frame.height), pageMenuOptions: parameters)

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在Storyboard中将ViewController.swift连接到ViewController?

如何在Swift中关闭ViewController?

如何在Swift中从AppDelegate更改ViewController中的文本标签?

如何在Swift中获取父级ViewController的类名?

如何在Swift中获取对先前viewController的引用?

如何在Swift中的ViewController之间管理状态?

如何在 Swift 中从其 ViewController 获取 UIView 子类实例

如何在swift中登录viewController后设置swrevealController

如何在Swift 4中设置新的Root viewController?

如何在Swift中的多个ViewController之间共享数据

Swift:如何在实例化 viewController 之前加载 Firebase 数据?

如何在PopViewController上更改ViewController的动画方向

如何在Notification Click上重定向到特定的ViewController?

如何在同一UINavigationController上呈现ViewController

如何在Swift中使多个ViewController上的多个“菜单”按钮导航到同一VC?

Swift - 如何在 ViewController 上“viewWillDisappear”的同时操纵笔尖中的插座?

如何在Swift 3.0中使用按钮将值从ViewController传递到另一个ViewController

如何修复 PhoneGap Build 上的 SWIFT_VERSION 错误

如何在4英寸屏幕上的iOS6上设置ViewController背景图像

如何在 Swift 中呈现 VC 并设置为新的 Root viewController?

如何在Swift中从第一个ViewController隐藏导航栏?

如何在Swift中从其他ViewController重新加载TableView中的数据

如何在Swift中结合NavigationController的两个ViewController之间切换

如何在Swift中从viewController类中分离dataSource和委托?

如何在Swift 5中将数据从UITableViewCell发送到ViewController

如何在 ViewController2.swift 类的 overCurrentContext 视图中显示图像?

如何在Swift中使用TabBarController在两个ViewController之间传递数据

如何在 AppDelegate.swift 中按常规顺序调用 ViewController

如何在iOS swift中将数据传递给以前的viewController?