ios - 如何使 UIToolbar 出现在 Storyboard 中以进行可视化编辑

标签 ios xcode ios5 xcode4

我正在尝试让我手动插入到 View Controller 底部的 UIToolbar(如下所示)出现在 Storyboard 可视化编辑器中。

toolbar is the right-most icon

我仍然可以使用文档大纲在其中添加拖动对象,方法是单击左下角的三角形并将对象拖动到那里,但我想看看它,这样我就会知道它看起来是正确的,就像这样:

toolbar that can be visually edited

最佳答案

从您的图片来看,您似乎将 UIToolbar 拖放到 Storyboard 中场景下方的黑色矩形中。

试试这个:添加 UIToolbar 的方法是转到属性检查器 (CMD+OPTION+4) 并将底部栏设置为工具栏:

enter image description here

然后您将在场景中看到 UIToolbar 并可以从那里对其进行自定义!

关于ios - 如何使 UIToolbar 出现在 Storyboard 中以进行可视化编辑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9743508/

相关文章:

ios - 使用 AVAssetExportPresetHighestQuality 时无法合成视频

ios - 在 AVPlayerViewController, Swift 中将 AVPlayer 设为全屏 View

ios - 使用 libxlsxwriter 在 iOS 中导出到 Excel 失败

objective-c - iOS5:CLHeading 读数的低更新率 -> 切换到 CoreMotion 是有问题的

objective-c - MKPolyline 不会显示

iOS 根据设备屏幕尺寸从 Assets 中获取图像的实际尺寸

iphone - 编译 iPhone XCode 项目以在 Android 上运行

ios - 无法删除 arm64 架构 Xcode

ios - NSString floatValue,不适用于大数字

xcode - 使弹出窗口在 iOS 5.0 和 iOS 5.1 中看起来相同