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.
精彩评论