开发者

How to change font size in a textview?

开发者 https://www.devze.com 2023-04-12 03:33 出处:网络
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 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

精彩评论

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

关注公众号