I am trying to set a custom font as globally as possible, and the first things I tried were:
Teacup::Stylesheet.new(:main) do
style UILabel,
font: UIFont.systemFontOfSize(10)
end
and also (with Teacup::Appearance.apply in my app delegate):
Teacup::Appearance.new do
style UILabel,
font: "Helvetica".uifont(10)
end
whereas these work:
style UIView,
backgroundColor: UIColor.blackColor
style :label,
font: "Helvetica".uifont(10)
I am on iOS 7, and all my UILabels are inside TableViews. I have included the Teacup::TableViewDelegate.
Am I missing something or misunderstanding how styling classes is supposed to work? Thanks.
I am trying to set a custom font as globally as possible, and the first things I tried were:
and also (with Teacup::Appearance.apply in my app delegate):
whereas these work:
I am on iOS 7, and all my UILabels are inside TableViews. I have included the Teacup::TableViewDelegate.
Am I missing something or misunderstanding how styling classes is supposed to work? Thanks.