开发者

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开发者_如何学Python setText:[self text] withSize:[sender floatValue]];        
}

so please suggest me some tutorial?


You try with setFont method...

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

//add Your font type

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜