通过layler

   // 创建头像视图

    UIButton *logoButton = [[UIButton alloc] init];
    logoButton.frame = CGRectMake(5050100100);
    logoButton.layer.cornerRadius = 50;
    logoButton.backgroundColor = [UIColor redColor];
    [self.view addSubview:logoButton];

 

 以后完善 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-12-24
  • 2021-10-21
  • 2022-12-23
相关资源
相似解决方案