iphone 创建uilabel
创建uilabel的代码如下
- (void)viewDidLoad {
[super viewDidLoad];
UILabel *lbWtq = [[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 150, 50)] autorelease];
lbWtq.text=@"this is my name";
//[lbWtq setText:@"text"];
[self.view addSubview:lbWtq];
}