如何更改 Apple Watch 界面控制器标题大小/文本? [英] How to change apple watch interface controller title size/text?

查看:26
本文介绍了如何更改 Apple Watch 界面控制器标题大小/文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改 Apple Watch interface controller 标题大小/文本?我们可以提供自定义字体吗?尝试使用 NSAttributedText 以编程方式设置标题,但没有成功.有什么想法吗?

How to change apple watch interface controller title size/text ? Can we provide custom fonts ? Tries with setting title programmatically using NSAttributedText but no success. Any ideas ?

推荐答案

您可以通过调用:
更改界面控制器的标题swift : func setTitle(_ title: String?)
对象:-(void)setTitle:(NSString *)title

目前我们无法更改标题文本大小或为标题使用自定义字体.

You can change the interface controller's title by calling:
swift : func setTitle(_ title: String?)
objc: - (void)setTitle:(NSString *)title

For now we can't change the title text size or use a custom font for the title.

这篇关于如何更改 Apple Watch 界面控制器标题大小/文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆