swift - 使用 StoryBoards 设置 UIToolBar 垂直设置

标签 swift ios8 uistoryboard uitoolbar

我目前有一个带有方形 UIView 的应用程序,将在其中绘制图像。在纵向 View 中,UIToolBar 位于 UIViewController 的底部。

看起来像这样:

enter image description here

但是,当更改为横向模式时,我希望 View 在左侧保持正方形,工具栏在右侧垂直对齐,图标垂直堆叠。有没有办法用 Storyboard 来做到这一点?

最佳答案

在 Storyboard 中无法执行此操作,因为标准 UIToolBar 不支持垂直布局。您将需要开发自己的组件或寻找第三方组件。

关于swift - 使用 StoryBoards 设置 UIToolBar 垂直设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31057449/

相关文章:

swift - 具有继承的泛型类

arrays - 更新旧代码,什么是 Array(_unsafeUninitializedCapacity : 1024,initializingWith: 0)

ios - 为 iOS 8 动态设置 cameraViewTransform

ios - subview 变为 nil - UIStoryboard

swift - UICollectionViewFlowLayout 的行为未定义,因为

Swift 3 - UIPageViewController - 不鼓励在分离的 View Controller 上呈现 View Controller

swift - 在字典中检查 nil

ios - UITableViewCell 背景图像在 iOS 8 中未缩放

iOS 8 文本字段色调颜色

ios - 如何获取默认的系统填充值?