For example, I would like to display something like this:
It is myboldtext label.
But It is my‘s length cannot be expected, because, it may become
Oh! It is my bold text label.
So, I can’t use 3 labels to do so. Any recommends? Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UILabel cannot do this out of the box.
I recommend using OHAttributedLabel, which is available on github.