简体   繁体   English

如何在子视图中为iOS5使用PSTCollection?

[英]How to use PSTCollection for iOS5, in a subview?

Currently I'm developing iOS app for iOS5, using storyboard. 目前,我正在使用Storyboard开发适用于iOS5的iOS应用。 I have a view controller, in that view controller I have three views. 我有一个视图控制器,在该视图控制器中,我有三个视图。 I wan't my first view to use PSTCollection/UICollectionView but my iOS version is 5 so UICollectionView is out. 我不想使用PSTCollection / UICollectionView的第一个视图,但是我的iOS版本是5,所以UICollectionView已退出。 How should I get to include a PSTCollectionView in the first view? 我应该如何在第一个视图中包含PSTCollectionView? I had tried to follow the example but I just doesn't get there at all. 我曾尝试按照该示例进行操作,但我根本不了解。 And the only example using storyboard: CollectionView-Simple unable to build because they are using UICollectionView. 也是使用情节提要的唯一示例: CollectionView-Simple无法构建,因为他们正在使用UICollectionView。

Any idea? 任何想法? Any help will be much appreciated. 任何帮助都感激不尽。

UICollectionView and PSTCollectionView are completely compatible, except that the class names are different. UICollectionView和PSTCollectionView完全兼容,但类名不同。 Do a find and replace on class names, and nearly all UICollectionView examples will work. 查找并替换类名,几乎所有UICollectionView示例都可以使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM