kcandr / IQLabelView

IQLabelView is used to add text overlay and resize and rotate it with single finger.
MIT License
112 stars 32 forks source link

How to change font size or colour to selected label? #3

Closed zeropt7 closed 9 years ago

zeropt7 commented 9 years ago

Hi, thank you for your code, good work!

I would like to know how to change the font size and colour to selected label, can you please provide me with source code?

Thank you.

kcandr commented 9 years ago

@zeropt7 Hi! 1) For change font size you can use setFontSize method of selected label [selectedLabel setFontSize:pointSize]; or standard setFont method of selected labels textView selectedLabel.textView.font = [UIFont fontWithName:fontName size:fontSize];

2) For change color you can use standard setTextColor of selected labels textView selectedLabel.textView.textColor = [UIColor redColor];

I think I will add the option to change colors and make textView property private today. So it will be correctly. Thank you for your question.

zeropt7 commented 9 years ago

Thank you so much. I'll wait for your update today.

kcandr commented 9 years ago

@zeropt7 try it now ;)

zeropt7 commented 9 years ago

@kcandr Thank you so much! It's working now ;)