前回書いた「iOS 7から追加されたDynamic Typeを使ってみた」の続編です。 新しくわかったこと 前回は「UIFontDescriptor を使う必要がある」と書きましたが、その後の調査で + (UIFont *)preferredFontForTextStyle:(NSString *)style メソッドを使えば Dynamic Type に対応できることがわかりました。 このメソッドではフォントのサイズではなく、スタイルを定義します。*1スタイルには次の値を指定できます。 UIFontTextStyleHeadline UIFontTextStyleBody UIFontTextStyleSubheadline UIFontTextStyleFootnote UIFontTextStyleCaption1 UIFontTextStyleCaption2 各スタイルがどのよう
![iOS 7: Dynamic Typeに対応したUITableViewを作ってみた - koogawa blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/a2700cf4abd70f929a4c81e5acf25a911f845f0d/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fk%2Fkoogawa%2F20130923%2F20130923005612.png)