阅读背景:

使用Storyboard将自定义标头添加到UITableView

来源:互联网 

I can't seem to be able to add a header to a UITableView using a Storyboard. I have a UITableView with a few prototype cells which are showing up and working fine. I then dragged a new UIView above these prototype cells and added a label to it to act as the header of my table (NOT as a section header). I created a new subclass of UIView with one single property which is the UILabel. The class of the UIView in the storyboard is set to this custom UIView, and the referencing outlet of the UILabel is set to the UILabel property of my custom UIView class.I can't seem to be able to add a header to a UI




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: