Is it possible to create prototype cells in Interface Builder without story boards?

懵懂的女人 提交于 2019-12-12 18:09:42

问题


In the WWDC video "Session 309 - Introducing Interface Builder Storyboarding" the speaker adds a table view controller and creates a cell in IB that can be directly linked to outlets in the app (at about 13:30 in the video).

Can this be done without story boards and if so, how to do it?


回答1:


You can create a nib file with just a table cell in it, set the class to a custom UITableViewCell subclass, and link any cell subviews to outlets in the class.



来源:https://stackoverflow.com/questions/8100247/is-it-possible-to-create-prototype-cells-in-interface-builder-without-story-boar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!