Search code examples
iosuibuttonuitextfielduifontuitextfielddelegate

Change the size of uitextview's text dynamically


I am trying to change the font size of a UITextView field's text by clicking on '+' and '-' buttons. I am unable to access the font size of the textfield. Please help !


Solution

  • UITextView *textView = ...;
    textView.font = [textView.font fontWithSize:newSize]