ios - 多行文本对齐效果最适当的实现方式
ringa_lee
ringa_lee 2017-04-18 09:22:56
0
2
880

文本实现如下的对齐方式,怎样实现最合适呢?
如较少的控件,前提要保证格式
北纬和行驶方向等要对齐
如果用UITextView 如何方便的排版

ringa_lee
ringa_lee

ringa_lee

reply all(2)
大家讲道理

An idea: Because the data items are all fixed, you can use UILabel to do it. UILabel is used more often, but this way, it is easier to align and read the data.

巴扎黑

You can use UICollectionView, put UILabel in the cell, align odd numbers to the left, and even numbers to the right. For the class content of each line, the plist file can be read.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template