Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Setting font for UIButton #31

Closed
mattsson opened this issue Jan 23, 2014 · 2 comments
Closed

Setting font for UIButton #31

mattsson opened this issue Jan 23, 2014 · 2 comments

Comments

@mattsson
Copy link

I apologize if I missed this in the documentation, but how would I set the font family or size of the UIFont property titleLabel on a UIButton?

@cloudkite
Copy link
Contributor

@mattsson you can use the following snippet, @{ tells the parser you want to set an embedded property as opposed to creating a nested selector

UIButton {
  titleLabel: @{
     font: Avenir-Heavy 14
  }
}

@mattsson
Copy link
Author

Hm, I thought I had tried that. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants