Alex Rivera | Logout

How can I set the font size of UITextView?

Asked 2010-06-16T15:13:46.083
9

I have to set the font size and font family of a dynamically created textView, so that it gives same appearance as the one generated using Interface builder. Any idea how to do this?

Edit
Report

1 Answer

9

There is a property called font in UITextView,

@property(nonatomic, retain) UIFont *font

You can do like this:

 yourTextView.font = builderTextView.font
answered 2010-06-16T15:23:17.533

Your Answer