IS it work UICollictionview in IOS 5 error Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
0
votes
3 Answers
5
votes
UICollectionView is not directly available in IOS5.
However there is a nice open source control for adding UICollectionView support in IOS5. Its called PSCollectionView and you can find it here: PSTCollectionView
It is a drop in library that emulates UICollectionView on IOS5 and passes through on IOS6. Very nice and works very well.
best of luck.
5
votes
Check Availability of UICollectionView
Availability Available in iOS 6.0 and later.
You can go with PSCollectionView
3
votes
In fact the problem probably isn't due to UICollectionView
not being available in iOS5. It looks as though you're using constraints in Interface Builder. It is that that's causing the problem.
So, two things:
- Use something like PSTCollectionView to add UICollectionView support in iOS5
- Switch off constraints and revert to using "springs and struts" to resize/relocate your subviews