Skip to content

Can't style UILabel class #136

@emptyarray

Description

@emptyarray

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions