integrate a view into another view in iphone

只愿长相守 提交于 2019-12-25 03:09:55

问题


Good Day!

i want to add a subview in another view in iphone. and i want that child view to be of size which i want like if i want to change its height/width i can. Can somebody please suggest me something or help me out in this regard.

Thanks in advance


回答1:


you can do it by

UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]  ;
[self.view addSubview:newView];


来源:https://stackoverflow.com/questions/2620681/integrate-a-view-into-another-view-in-iphone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!