UILbel 视用于显示文本信息的UI控件,继承于UIView
UITextField:用于接受用户输入(少量文字)的UI控件
UILabwl *aLabel = [[UILabel alloc] initwithFrame:CGRectMake(20, 40, 200 , 30)];
UILabwl *aLabel = [[UILabel alloc] initwithFrame:CGRectMake(20, 40, 200 , 30)];
aLabel.backgroundColour = [UIClor yellocColor];
aLabel.textAlignment = NSTextAlignmentCenter;
aLabel.textColor = [UIColor redColor];
aLabel.font = [UIFont systemFonOfSize:12.0];
aLabel.text = @"Hello Lanou";
[self.window addSubview:aLabel];
[aLabel release];