0

I have an xib file in which I have a view. I made a custom view of mine as its file owner in the interface builder.

I have a subview as an outlet for a view in the xib.

On creating the view object isn't loading the subview outlet from the xib.

Is specifying a file as the owner in the IB sufficient ? Or I will have to load the xib in initWithFrame of my View as well ?

4

1 回答 1

1

在创建视图时,它将创建来自 XIB 的所有子视图。在界面生成器中指定文件所有者就足够了。

于 2013-07-31T09:40:11.937 回答