Search code examples
iosuiactivityviewcontroller

UIActivityViewController - how to change the cancel button text


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.

How to do it? Thanks!


Solution

  • 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.