Custom buttons with multiple UILabel and images

I was wondering if anyone has an idea on how to create a UIButton with two or more labels (or basically two lines with a different style) and one or more images. The closest example of what I'm trying to do is create an iPhone Evernote screen where each button has an icon and one or more UILabels (the Twitter app for iPhone uses a similar button style). Here is a screenshot: enter image description here

My question basically is whether this is best for a subclass of UIButton or for adding individual labels and images as UIButton subzones.

Thanks for the help...

+3
source share
2 answers

I would go with a subclassification for two reasons:

  • .
  • , ..

- ? UIButton, , . , UIButton, UIControl? UIControl .

+3

, , - UIButton UILabels UIImageViews.

0

All Articles