ios - 如何在 iOS 中更改导航栏的高度
问题描述
我想设置将从网络服务接收到的导航栏的高度
解决方案
我在顶部添加了自定义视图而不是导航栏并隐藏了默认导航栏。然后设置该视图的高度并采取height
约束措施。
@IBOutlet weak var const_customNavBar_height : NSLayoutConstraint!
更改如下:
self.const_customNavBar_height.constant = 105
替换105
为 Web 服务中收到的高度。
推荐阅读
- r - rugarch - 使用循环获取 R 中的 servaral 模型的 AIC
- javascript - 数组的 JavaScript 不区分大小写的通用排序
- c++ - std::pair 字符串作为 std 中定义的 unordered_map 的自定义键失败并出现模板错误
- google-maps - 在 Cytoscape 中集成地图
- node.js - 无法解析“样式加载器”webpack 4
- alarm - AWS Cloudwatch 警报状态
- git - Git diff 通过忽略 .git 文件来复制输出
- python - 如何在 python 中取消托管在 Web URL 中的文件
- python - 将 numpy 数组转换为 pandas 数据框
- c# - C#:Type.GetType 在动态加载程序集的类上为空