tags:

views:

98

answers:

2

i have to set the font size and font family of a dynamically created textView,sothat it gives same appearance as the one generated using Interface builder.Please help me....

A: 

There is a property font in UITextView.

@property(nonatomic, retain) UIFont *font

You can do like this yourTextView.font = builderTextView.font

vodkhang
it does not work this way
Ajayvictor007
It doesn't work? Can you try to print out the builderTextView.font?
vodkhang
A: 

UITextView *textView

...

[textView setFont:[UIFont fontWithName:@"ArialMT" size:16]]

John

iOSDeveloperTips.com

John
thanks.That really worked..
Ajayvictor007