One xib File with Multiple “File's Owner”s

前端 未结 3 2200
感动是毒
感动是毒 2020-12-29 04:51

I\'ve got three different UITableViews, each in it\'s own view, accessed via tabs. All three tables would ideally share the same custom UITableViewCell class and .xib file.

3条回答
  •  轮回少年
    2020-12-29 05:27

    The checked answer to this question discusses two approaches to load custom table cells from nib files that do not require to set the File's Owner to your specific controller. These approaches let you reuse cells with different owners.

提交回复
热议问题