Nilesh
Nilesh

Reputation: 71

How to change font size in a textview?

I am making an application were user can read a detail or text and user can also be able to change the font size as per there requirement?

i hd tried using the following code but it's not working

-(IBAction)textSizeAction:(id)sender
{
    [self setText:[self text] withSize:[sender floatValue]];        
}

so please suggest me some tutorial?

Upvotes: 1

Views: 152

Answers (1)

EXC_BAD_ACCESS
EXC_BAD_ACCESS

Reputation: 2707

You try with setFont method...

[urTextView setFont:[UIFont fontWithName:@"urFont/Helvetica" size:[sender floatValue]]];

//add Your font type

Upvotes: 1

Related Questions