11智能在线
新记
ios开发怎么获取uiview自动变化后的宽度
如题所述
举报该文章
相关建议 2016-07-04
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];
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/f424vfv824mm2p7vvv7.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
jquery怎么获取元素的宽度
JavaScript 怎么获取元素的宽度 ?
js 怎样获取div的宽度?
ios开发 用oc healthkit怎么获取步数
如何动态获取UILabel的高度,宽度
ios 怎么设置uilabel根据字体的宽度自动设置宽度
ios开发 怎么获取uibezierpath对象
为什么在3.5英寸ios 自动布局,不能适应宽度