gpt4 book ai didi

iphone - 如何使工具栏字体与 UINavigationController 匹配?

转载 作者:行者123 更新时间:2023-12-03 19:06:33 25 4
gpt4 key购买 nike

使用the following post ,我能够将 UILabel 添加到 UIToolbar,但是,它看起来很糟糕。有人知道如何让文本大小/颜色/阴影与 UINavigationController 的标题相匹配吗?

导航 Controller

alt text http://www.codingwithoutcomments.com/uploads/Picture1.png

带有 UILabel 的 UIToolbar

alt text http://www.codingwithoutcomments.com/uploads/Picture2.png

我需要采取哪些步骤才能使它们匹配?

最佳答案

您可能还想添加阴影?

itemLabel.shadowColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];
itemLabel.shadowOffset = CGSizeMake(0, -1.0);

关于iphone - 如何使工具栏字体与 UINavigationController 匹配?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/768729/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com