How to visually create and use static cells in a UITableView embedded in a UIViewController

后端 未结 6 981
深忆病人
深忆病人 2020-11-30 18:34

I\'m using XCode 4.2 and have built my UI using Storyboards. I need to create a view that has content above and below a UITableView and I can achieve this by using a UIViewC

6条回答
  •  遥遥无期
    2020-11-30 18:39

    I am not sure what you mean by static cells, but if you are trying to build the cells in IB, and then want to use it in your tableView, what you could do is in your cellForRowAtIndex you can call loadNibNamed passing the name of the .nib file you created for the cells as the parameter. Make sure that you have an outlet in your viewController which maps to the cell's .nib. Try exploring in these directions if that's what you are trying to achieve

提交回复
热议问题