UIActivityViewController - 如何更改取消按钮文本 [英] UIActivityViewController - how to change the cancel button text
问题描述
有人知道如何更改UIActivityViewController的标准取消按钮文本值吗?
默认情况下,它是取消。但我想改变它,例如用不同的语言。
Does anybody know how to change the standard cancel button text value of UIActivityViewController? By default it's "Cancel". But I want to change it e.g. to be in different language.
怎么做?谢谢!
推荐答案
你做不到。但是,取消按钮默认是本地化的。
顺便提一下,如果这是你想要的,你可以创建自己的控制器。你可以用 UIActivity
对象填充它。请注意,当您查看该类时,当文档讨论 activityController
时,它是任何 UIViewController
。
You can't. However, the Cancel button is localized by default.
Incidentally, you can create your own controller if that's what you want. And you can fill it with UIActivity
objects. Note that when you look at that class, when the docs talk about an activityController
, it's any UIViewController
.
这篇关于UIActivityViewController - 如何更改取消按钮文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!