现在,我如何从CollectionVIEw访问collectionVIEwItems?
解决方法 如果您确实需要枚举集合视图中的所有项目,那么:NSUInteger numberOfItems = [[collectionVIEw content] count];for (NSUInteger itemIndex = 0; itemIndex < numberOfItems; itemIndex++) { NSCollectionVIEwItem *item = [collectionVIEw itemAtIndex:itemIndex]; // do something with item}
应该在Mac OS X v10.6上做到这一点.
总结以上是内存溢出为你收集整理的objective-c – 如何从NSCollectionView中检索NSCollectionViewItems全部内容,希望文章能够帮你解决objective-c – 如何从NSCollectionView中检索NSCollectionViewItems所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)