Question

  1. Consider that we have a formula: buttona texta buttonb textb buttonc textc buttond text. Fixed number of buttons (each of which has different length of course) and possibly dynamic number of text labels.
  2. What is the most easiest way to get a UIView with liquid buttons as well as text labels based on that? Please, see an example.
  3. Of course we can find a correlation with html displaying. Perhaps we have existing components to do that?

enter image description here

Was it helpful?

Solution

You may achieve this using NSAttributedString class. Check this link for examples.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top