I have an NSString abc for example, and there is a UILabel labtxt - to which I want to tie the color and size.

[UIColor redColor]//цвет font//Размер 

just how to fasten it all I do not know. I would like to ask a few more related questions: 1. Can't the string itself have a color? just need to set the component with the desired color? 2. How to make text bold?

    1 answer 1

      self.labtxt.textColor = [UIColor redColor]; self.labtxt.font = [UIFont boldSystemFontOfSize:14]; self.labtxt.text = abc; 

    Something like this)