
在可可,我的意思是自定义列表控件.你知道怎么做这种事吗?
在此先感谢您的帮助,
问候,
解决方法 更新:NStableVIEw现在支持具有可变高度的基于视图的行:
- (NStableVIEwRowSizeStyle)rowSizeStyleReturn Value
The row style style. SeeNStableVIEwRowSizeStylefor the supported options.discussion
The row size style can be modifIEd on a row by row basis by invoking the delegate methodtableVIEw:heightOfRow:,if implemented.The
rowSizeStyledefaults toNStableVIEwRowSizeStyleCustom.NStableVIEwRowSizeStyleCustomindicates to use the rowHeight of the table,instead of the pre-determined system values.Generally,
rowSizeStyleshould always beNStableVIEwRowSizeStyleCustomexcept for “source Lists”. To implement variable row heights,set the value toNStableVIEwRowSizeStyleCustomand implementtableVIEw:heightOfRow:in the delegate.Availability
Available in OS X v10.7 and later.
原答案:
一种比查看黑客NStableVIEw更现代的方法可能是以下任何一种方法:
http://github.com/sdegutis/SDListView
SDListVIEw – Clone of NSCollectionVIEw,but with
variable-height items and only using a
single column.
http://github.com/uliwitness/PXListView
PXListVIEw – An optimized List vIEw control for Mac
OS X 10.5 and greater. It was created
after I wrote 07002 on the
subject.PXListVIEw is licensed under the New
BSD license.PXListVIEw uses similar optimizations
as UItableVIEw for the iPhone,by
enqueuing and dequeuing NSVIEws which
are used to display rows,in order to
keep a low memory footprint when there
are a large number of rows in the
List,yet still allowing each row to
be represented by an NSVIEw,which is
easIEr than dealing with cells.The architecture of the control is
based on the List vIEw controls which
are present in both TweetIE (Mac) and
Echofon (Mac).The project is still very much a work
in progress,and as such no
documentation exists at current.
[编辑:它的情况并不明显:上面看到的课程描述当然是引用;)后者中的“我”实际上是指“Alex Rozanski”,而不是我.
总结以上是内存溢出为你收集整理的可可中的自定义列表控件全部内容,希望文章能够帮你解决可可中的自定义列表控件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)