/ Published in: Objective C

Reference: http://iosfonts.com/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
- (void)viewDidLoad { [super viewDidLoad]; CGRect labelFrame = CGRectMake(10,10,200,44); UILabel *myLabel = [[UILabel alloc] initWithFrame:labelFrame]; myLabel.backgroundColor = [UIColor clearColor]; myLabel.textColor = [UIColor redColor]; myLabel.font = [UIFont fontWithName:@"Verdana" size:18.0]; myLabel.numberOfLines = 2; myLabel.text = @"Hello World\nSecond line"; myLabel.shadowColor = [UIColor darkGrayColor]; myLabel.shadowOffset = CGSizeMake(1.0,1.0); [self.view addSubview:myLabel]; [myLabel release]; }
Comments
