Permalink
Browse files

Merge pull request #277 from jeff96/master

Fix for Issue: #276 - encodeWithCoder:(NSCoder *)coder in PSTCollectionViewFlowLayout is not implemented
  • Loading branch information...
steipete committed Mar 18, 2013
2 parents 7ce86e1 + 544a3ca commit f5e0bd83b16e0520fee166a13b92339a337797b1
Showing with 13 additions and 0 deletions.
  1. +13 −0 PSTCollectionView/PSTCollectionViewFlowLayout.m
@@ -113,6 +113,19 @@ - (id)initWithCoder:(NSCoder *)decoder {
return self;
}
+- (void)encodeWithCoder:(NSCoder *)coder
+{
+ [super encodeWithCoder:coder];
+
+ [coder encodeCGSize:self.itemSize forKey:@"UIItemSize"];
+ [coder encodeFloat:self.minimumInteritemSpacing forKey:@"UIInteritemSpacing"];
+ [coder encodeFloat:self.minimumLineSpacing forKey:@"UILineSpacing"];
+ [coder encodeCGSize:self.footerReferenceSize forKey:@"UIFooterReferenceSize"];
+ [coder encodeCGSize:self.headerReferenceSize forKey:@"UIHeaderReferenceSize"];
+ [coder encodeUIEdgeInsets:self.sectionInset forKey:@"UISectionInset"];
+ [coder encodeInteger:self.scrollDirection forKey:@"UIScrollDirection"];
+}
+
///////////////////////////////////////////////////////////////////////////////////////////
#pragma mark - PSTCollectionViewLayout

0 comments on commit f5e0bd8

Please sign in to comment.