Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #277 from jeff96/master

Fix for Issue: #276 - encodeWithCoder:(NSCoder *)coder in PSTCollectionViewFlowLayout is not implemented
  • Loading branch information...
commit f5e0bd83b16e0520fee166a13b92339a337797b1 2 parents 7ce86e1 + 544a3ca
@steipete authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 PSTCollectionView/PSTCollectionViewFlowLayout.m
View
13 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
Please sign in to comment.
Something went wrong with that request. Please try again.