See a new interface, to carefully divide the area, should be how to design reasonable.
1. If there are several lines in a cell, each line is two labels, the rule is the same, it is good to do, but the data returned by the interface may be dynamic, sometimes 5 lines are sometimes 7 lines, how to do so, so that a few lines in this cell split into multiple cells, each row is a cell, Create a separate cell, in Cellforrow, instead of loading the original cell, load different cells and pass in different data sources.
2. The requirement is this, two next to the label, in the Aotolayout label is not fixed width, the left label needs to dynamically fill in the data, the right label and always distance to the left label20 width, so how to do? First, the left label can not set a fixed width, this is set to fixed, and then edit the width of >= a small value (a), so that you can compile, after the dynamic fill in the data, the label will automatically stretch the width, The label on the right is set to 20 from the left.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Development experience summary-drip accumulation