Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ptshih committed Feb 26, 2013
1 parent 9e36456 commit 706e50a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Expand Up @@ -33,8 +33,8 @@ How to use:
---
Here's an example of creating an instance of PSCollectionView

self.collectionView = [[PSCollectionView alloc] initWithFrame:self.contentView.bounds];
self.collectionView.delegate = self;
self.collectionView = [[PSCollectionView alloc] initWithFrame:CGRectZero];
self.collectionView.delegate = self; // This is for UIScrollViewDelegate
self.collectionView.collectionViewDelegate = self;
self.collectionView.collectionViewDataSource = self;
self.collectionView.backgroundColor = [UIColor clearColor];
Expand All @@ -60,6 +60,9 @@ Here's an example of creating an instance of PSCollectionView

UIView *footerView = ...
self.collectionView.footerView = footerView;

**Reloading Data**
[self.collectionView reloadData];

**Delegate and DataSource**

Expand Down

0 comments on commit 706e50a

Please sign in to comment.