Why “loadNibNamed” methods return array?

后端 未结 3 873
轮回少年
轮回少年 2021-01-21 12:37

When we use the loadNibNamed method to get nib file, why will return a array, is not a nib file name corresponds to a nib file? I try to print this array\'s count, I found it al

3条回答
  •  悲&欢浪女
    2021-01-21 13:36

    This is because NIB/xib files can also contain more than one view representation. So within the array you can access all of the contained views.

提交回复
热议问题