ios开发怎么获取uiview自动变化后的宽度

如题所述

  UIView *v1 = [[UIView alloc] init];
  [self.view addSubview:v1];
  UIView *v2 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
  v2.backgroundColor = [UIColor redColor];
  [v1 addSubview:v2];
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答