UILabel
A UILabel represents a rectangular area of the screen that can hold text.
Example
UIView *myView =
[ [UIView alloc]
initWithFrame:[[UIScreen mainScreen]
applicationFrame] ];
self.view = myView;
[myView release];
UILabel *myLabel;
myLabel = [ [UILabel alloc]
initWithFrame:
CGRectMake(0,170,320,50) ];
myLabel.text = @"Hello";
myLabel.font =
[UIFont systemFontOfSize:24];
myLabel.textColor = [UIColor blackColor];
myLabel.textAlignment =
UITextAlignmentCenter;
myLabel.backgroundColor =
[UIColor lightGrayColor];
[myView addSubview:myLabel];
[myLabel release];