开发者

How to add one UIView object on other UIView object programmatically?

开发者 https://www.devze.com 2022-12-22 16:42 出处:网络
Consider this as my SubView UIView *subViewObj; and this as MainView UIView *mainViewObj; I need to make MainView as root View

Consider this as my SubView

UIView *subViewObj;

and this as MainView

UIView *mainViewObj;

I need to make MainView as root View can I don it in this way?

[mainViewObj addSubview:subViewObj];

is this correct? I need to do it programmatically, without using Interface 开发者_运维问答builder.


Yes addSubview: is correct.

0

精彩评论

暂无评论...
验证码 换一张
取 消