سؤال

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 !

هل كانت مفيدة؟

المحلول

UITextView *textView = ...;
textView.font = [textView.font fontWithSize:newSize]
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top