문제

  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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top