is there any way to changing/auto resizing the font size according to the different iPhone screen as when i change the font size, the font size applied to other phone size as well which is too big.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
I faced this issue few months ago. There is no way to do it on storyboard for now.
You can do it by code by detect screen size or device type and set font size for each device. You can use this lib to do that
https://github.com/sebyffffd/SDVersion
I ran in to a similar issue. I suggest to use this library: https://github.com/hamiz-ahmed/SizeOptimizedLabel
Specify the initial screen and font size. The font gets optimized automatically according to different screen sizes.
Please use size classes to support different font size for different screens. Here is good tutorial about using size classes. adaptive-layout-tutorial