开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜