This is a discussion on How To Make UILabel Programmatically (by coding) within the Code Snippets forums, part of the iPhone/iPad Programming Tutorials category; Hello, Here is the code to use for making UILabel programmatically. Code: UILabel *htmlLabel = [[[UILabel alloc] initWithFrame:CGRectMake(20, 178, 54, ...
Hello,
Here is the code to use for making UILabel programmatically.
Code:UILabel *htmlLabel = [[[UILabel alloc] initWithFrame:CGRectMake(20, 178, 54, 31)] autorelease]; htmlLabel.text = @"HTML:"; htmlLabel.textColor = [UIColor whiteColor]; htmlLabel.backgroundColor = [UIColor clearColor];