KETAN
KETAN

Reputation: 481

increase font size in setting in my application

in my application i have to make settings button in tabbar .so using this setting i want to increase or decreases size of my text view or label so how i can do that.please help me

Upvotes: 0

Views: 379

Answers (2)

ChandreshKanetiya
ChandreshKanetiya

Reputation: 2414

first you can use NSUserDefaults for save your settings (font size) see this link:

http://iphone.zcentric.com/2008/08/20/using_nsuserdefaults/

and then use

[myControl setFont:[UIFont fontwithName:@"fontname" size:fontSize]];

where fontsize is fetch from the NSUSerDefaults

Upvotes: 2

Bogatyr
Bogatyr

Reputation: 19323

You can specify the font of just about any text control (UILabel, UITextView, UITextField) this way:

[myControl setFont:[UIFont fontwithName:@"fontname" size:fontSize]];

Upvotes: 1

Related Questions