ios - Adaptive Layout - calculate second row of views based on view width -


i programmatically adding dynamic number of uibutton labeled hashtags compact view using adaptive layout. there way adaptive layout automatically calculate when width of view met , new line needed, or need calculate myself, manually anchor next row of buttons under previous , on?

my current source gives me following image, second row needed. appreciate direction on this.

enter image description here

auto layout cannot this, if want use individual buttons, you'll have calculate yourself. alternative use collection view automatically layout buttons (cells).


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -