iOS7动态调整文字大小
2013-09-23 17:15
330 查看
iOS7添加了动态调整文字的大小,app可以通过接受通知的方式进行设置
iOS 7 introduces Dynamic Type, which makes it easy to display great-looking text in your app.A message at the smallest size
A message at the largest non Accessibility size
When you adopt Dynamic Type, you get:
Automatic adjustments to letter spacing and line height for every font size.
The ability to specify different text styles for semantically distinct blocks of text, such as
Body,
Footnote, or
Headline.
Text that responds appropriately when users change their preferred text size in Settings.
To take advantage of these features, be prepared to respond to the notifications that get sent when users change the text size setting. Then, use the
UIFontmethod
preferredFontForTextStyleto get the new font to use in your UI. iOS 7 optimizes fonts that are specified by this method for maximum legibility at every size. To learn more about text styles and using fonts in your app, see “Text Styles” in Text Programming Guide for iOS.
相关文章推荐
- ios7:实现类似于人人、safari的可动态调整大小的导航条以及类似于雅虎天气的全透明导航条
- 输入框动态调整大小
- 调整编辑框插入符的大小和输入文字的大小
- 动态载FLASH图片,并可适应调整大小
- Android编程实现自动调整TextView字体大小以适应文字长度的方法
- 动态调整textarea中字体的大小代码
- easysize_动态调整对话框控件位置和大小
- 根据webform页面大小的变化动态调整控件的大小
- windows mobile 6.0系统中自己制作的今日插件,通过“开始-设置-系统-屏幕-文字大小”调整文字大小后,插件上的文字大小不改变!
- Android动态Java代码调整window大小
- iOS7新特性之TextKit(一)可以调整字体大小的FontResizeDemo
- easysize_动态调整对话框控件位置和大小
- iOS开发--根据文字动态调整按钮(UI…
- 下压栈——能够动态调整数组大小的实现
- ios8中的self sizing cell和ios7动态变化字体大小
- 通过窗口大小适时调整以及子窗口的动态布局来解决窗口在不同DPI设置下的显示问题
- 多个iframe同时加载并动态调整大小
- android动态调整图片大小
- 动态调整linux分区大小——lvm
- 动态修改ListView文字大小