腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(121)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
3
回答
如何在iOS 13中使用
UINavigationBarAppearance
UINavigationBarAppearance
*appearance = [
UINavigationBarAppearance
new]; appearance.titleTextAttributeshttps://developer.apple.com/documentation/uikit/
uinavigationbarappearance
?language=objc
浏览 21
提问于2019-09-25
得票数 2
回答已采纳
1
回答
无法解析引用'UIKit.
UINavigationBarAppearance
‘
MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT2101: Can't resolve the reference 'UIKit.
UINavigationBarAppearance
浏览 13
提问于2020-03-03
得票数 1
1
回答
视图控制器出现后的
UINavigationBarAppearance
更新
在使用新的
UINavigationBarAppearance
apis时,似乎没有--或者至少没有明显的--方法来更新视图控制器上的导航样式。var styles: [
UINavigationBarAppearance
] = { style1.foregroundColor: UIColor.black style1.buttonAppearance = buttonAppearance let style2 =
浏览 39
提问于2019-10-10
得票数 0
回答已采纳
2
回答
如何在
UINavigationBarAppearance
中设置阴影半径?
代码本身: struct ContentView: View { init() { let coloredAppearance =
UINavigationBarAppearance
浏览 13
提问于2021-04-09
得票数 2
回答已采纳
1
回答
如何调整
UINavigationBarAppearance
背景图像的大小
我正在尝试使用
UINavigationBarAppearance
将背景图像添加到我的导航栏。但是,imageView大小大于导航栏内容视图。我该如何解决这个问题?
浏览 62
提问于2020-07-16
得票数 0
回答已采纳
2
回答
iOS15
UINavigationBarAppearance
隐藏电池/时间图标(UIStatusBarStyle)
"#000000") UINavigationBar.appearance().barStyle = UIBarStyle.black 我已经通过修改修复了这个问题 let appearance =
UINavigationBarAppearance
浏览 42
提问于2021-08-13
得票数 1
回答已采纳
1
回答
为什么
UINavigationBarAppearance
有一个初始化(惯用法:)初始化器?
如果我像这样创建一个
UINavigationBarAppearance
... let app =
UINavigationBarAppearance
(idiom: .pad) ...and将其配置为背景颜色
浏览 18
提问于2019-09-30
得票数 0
1
回答
使用新的
UINavigationBarAppearance
() API在单个ViewController上设置navigationBar颜色?
navigationBar.setNavBarColor(color: .clear) let appearance:
UINavigationBarAppearance
=
UINavigationBarAppearance
() appearance.backgroundColor
浏览 5
修改于2022-09-22
得票数 1
3
回答
iOS 13: NavigationBar BarStyle在使用
UINavigationBarAppearance
时被忽略
虽然我能够将NavigationBar的文本和背景颜色恢复到我需要的
UINavigationBarAppearance
(),但它会将我的状态栏颜色恢复为黑色。navigationBar.standardAppearance =
UINavigationBarAppearance
() // <--- This is the line that reverts
浏览 5
修改于2019-10-20
得票数 10
回答已采纳
0
回答
使用
UINavigationBarAppearance
()时,NavigationBar颜色更改不会传递到其他视图
它在下面显示的旧代码中工作得很好,但在使用
UINavigationBarAppearance
()的Xcode13中就不行了。class SetNarbar static func setNavbarAttributes() let theAppearance =
UINavigationBarAppearance
setNeedsStatusBarAppearanceUpdate() SetNarbar.setNavbarAttributes() let
浏览 53
修改于2021-10-04
得票数 0
3
回答
UINavigationBarAppearance
不适用于基于图像的栏按钮项
我使用以下代码来做到这一点: let appearance =
UINavigationBarAppearance
() let attributes: [NSAttributedString.Key :
浏览 56
提问于2019-08-24
得票数 6
2
回答
iOS:在使用
UINavigationBarAppearance
时指定状态栏文本颜色,忽略bar样式
作为迁移到iOS15的一部分,我更新了我正在开发的一个应用程序,使用
UINavigationBarAppearance
方法进行导航栏的样式设计。navigationBar.barStyle = .black let navBarAppearance =
UINavigationBarAppeara
浏览 10
提问于2021-10-01
得票数 11
1
回答
为什么不透明和透明的
UINavigationBarAppearance
的view.safeAreaInset是一样的?
let appearance =
UINavigationBarAppearance
() appearance.backgroundColor以及如何使用新的
UINavigationBarAppearance
接口获取inset.top为0。
浏览 40
修改于2021-10-05
得票数 0
1
回答
如何使用
UINavigationBarAppearance
设置自定义后箭头图像的颜色?
我有一个iOS应用程序,它使用自定义的后退雪佛龙在导航栏的后退按钮与自定义背景色和阴影等。我想把背景色的颜色设置为除了默认的蓝色以外的颜色。如何使用新的 API实现这一点? 在titleTextAttributes的所有变体上设置backButtonAppearance,指定NSForegroundColorAttributeName和NSBackgroundCo
浏览 0
提问于2019-10-07
得票数 0
回答已采纳
1
回答
SwiftUI: NavigationBar标题displayMode和iOS 15中的外观
我还使用
UINavigationBarAppearance
并设置背景颜色。 但是iOS 15 navigationBar太奇怪了。我在AppDelegate中设置了
UINavigationBarAppearance
配置。let appearance =
UINavigationBarAppearance
()appearance.backgroundColorlet appearance =
UINavigationBarAppearance</e
浏览 36
修改于2021-10-22
得票数 0
1
回答
iOS:自定义回退按钮图像太小了
animated) base.ViewWillAppear(animated); // configure common
UINavigationBarAppearance
propertiesvar img = UIImage.Fr
浏览 7
提问于2022-04-25
得票数 0
回答已采纳
1
回答
应用程序在更高版本的iOS 13等上运行良好,但是在iOS 12上崩溃,下面是崩溃
由于“NSInvalidUnarchiveOperationException”异常导致终止应用程序,原因是:“无法实例化名为
UINavigationBarAppearance
的类,因为没有找到名为
UINavigationBarAppearance
浏览 4
修改于2022-01-24
得票数 0
1
回答
如何更改navigationBarItem颜色
viewDidAppear(_ animated: Bool) { let scrollEdgeAppearance =
UINavigationBarAppearance
= UIColor(r
浏览 16
提问于2020-05-12
得票数 0
回答已采纳
2
回答
在ios 13中设置back按钮箭头色调的正确方法是什么
在iOS13中,苹果引入了新的
UINavigationBarAppearance
代理对象来设置导航栏的外观。我几乎可以设置我需要的所有东西,除了一个小东西。我使用的是旧的[[UINavigationBar appearance] setTintColor:]方法,但我认为必须有某种方法来使用
UINavigationBarAppearance
对象API来完成这项工作
浏览 81
提问于2019-09-30
得票数 12
回答已采纳
1
回答
从iOS 15上的非透明导航栏导航到具有透明导航条的视图控制器
这就是我如何设置视图控制器的方法:let appearance =
UINavigationBarAppearance
()firstVCappearance.configureWithTransparentBackgroundnavigationBar.standardAppearance secondV
浏览 3
提问于2021-09-29
得票数 6
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
点击加载更多
领券