Search code examples
iphoneobjective-cxcode4

Xcode: How to change all fonts at once in an app?


I was wondering if it was possible to change the fonts on about 100 different viewcontrollers all at once? It would be a lot eisier than going through one by one and changing them. Any ideas? Thank you!


Solution

  • The user interface files (*.xib) are plain text and you can load them into an editor.

    In Xcode4 on the left pane you can right-click > open as > source.

    This will give you the XML source any you can find/replace there.

    Warning: doing something wrong may render the whole file useless, so unless you have source control anyway, make copies of the XIB before attempting changes.