Custom fonts iOS

deni2s, 05.11.2011., 01:48

 UIFont *myFont = [UIFont fontWithName:@"Helvetica-BoldOblique" size:[UIFont systemFontSize]];


To get a list of everything available on the iPhone, put this little snippet in your applicationDidFinishLaunching: delegate method and look at the log output:

 

for (NSString *family in [UIFont familyNames]) {
NSLog(@"%@", [UIFont fontNamesForFamilyName:family]);
}

 

 

 

if ([[[UIDevice currentDevice] systemVersion] floatValue] > 3.13)
{
UILabel *nameLabel = (UILabel *)[self.settingsView viewWithTag:100];
nameLabel.font = [UIFont fontWithName:@"NeutraDisp-Titling" size: 13.0];
}


0 komentāri Komentēšana pieejama visiem.
Komentāra pievienošana

Ar * atzīmētie lauciņi ir jāaizpilda obligāti.





atpakaļ uz ziņu sarakstu

Par web.hc.lv

web.hc.lv ir vortāls, kurā tiek aplūkoti mājaslapu veidošanas un mārketinga aspekti, no idejas līdz gandarījumam.

Reklāma
ienāktreģistrēties