FontLabel for iOS

7:39 AM
[caption id="attachment_639" align="alignleft" width="200" caption="FontLabel"]FontLabel[/caption]

This is a subclass of UILabel that draws text using a ZFont instead of a UIFont. It uses FontLabelStringDrawing internally to do the heavy lifting. Wrapping, tail truncation, and `-sizeToFit` work, as do the standard `textAlignment`/`textColor` properties. A new `zAttributedText` property has been added that allows for attributed string rendering.

View Source


https://github.com/zynga/FontLabel

Artikel Terkait

Next Article
« Prev Post
Previous Article
Next Post »
Penulisan markup di komentar
  • Untuk menulis huruf bold gunakan <strong></strong> atau <b></b>.
  • Untuk menulis huruf italic gunakan <em></em> atau <i></i>.
  • Untuk menulis huruf underline gunakan <u></u>.
  • Untuk menulis huruf strikethrought gunakan <strike></strike>.
  • Untuk menulis kode HTML gunakan <code></code> atau <pre></pre> atau <pre><code></code></pre>, dan silakan parse kode pada kotak parser di bawah ini.

Disqus
Tambahkan komentar Anda

No comments