Is there a simple way to set a default font for the whole app?

前端 未结 1 479
醉话见心
醉话见心 2021-01-16 01:58

I\'m developping an app with monotouch and I must provide a way to change the font for the whole application.

I know I could just set every of my controls font indiv

相关标签:
1条回答
  • 2021-01-16 02:57

    There isn't a notion of configurable default fonts and styles in an iPhone app, which is unfortunate as it would be really handy.

    One way to make up for the lack of this is to have a StyleManager class which gets passed various UI items after they've been instantiated and sets fonts, colours etc.

    The iPhone settings app (i.e. the place for settings outside your app proper) only has a limited range of UI controls possible, so you're going to have limited luck allowing choosing of arbitrary colours there. For in-app settings you can implement what you like in terms of settings.

    0 讨论(0)
提交回复
热议问题