创建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];

}


 

相关文章:

  • 2021-05-16
  • 2022-01-23
  • 2022-12-23
  • 2021-10-31
  • 2021-08-28
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-06-22
相关资源
相似解决方案