iOS 是否支持基于视图的表格视图?
除了经典的基于单元格的表格之外,iOS 是否还支持基于视图的表格?看来这项新功能仅适用于 Mac (OS X v 10.7)。谢谢!
Does iOS support view-based tables, in addition to the classic cell-based tables? It appears this new capability is only on the Mac (OS X v 10.7). Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不熟悉基于视图的单元格,但从研究来看,这似乎是必要的,因为 NSCell 不扩展 NSView。但是,在 iOS 中,UITableViewCell 确实扩展了 UIView。所以,我认为基于视图的表格单元在 iOS 中并不是一个新概念,因为它们一直都是这样的。
NSCell - http:// developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSCell_Class/Reference/NSCell.html
UITableViewCell - http://developer.apple.com/库/IOS/#documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html
I'm not familiar with View Based Cells, but from looking into it it looks like this was needed because the NSCell does not extend NSView. But, in iOS, UITableViewCell does extend UIView. So, I think View Based Table Cells are not a new concept in iOS since they've alawys been that way.
NSCell - http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSCell_Class/Reference/NSCell.html
UITableViewCell - http://developer.apple.com/library/IOS/#documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html