Skip to content

Commit

Permalink
update demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
ptshih committed May 25, 2012
1 parent 655874b commit 343b480
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions BroBoard/BroBoard/PSBroView.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

/**
This is an example of a subclass of PSCollectionViewCell
*/

#import "PSBroView.h"
Expand Down
9 changes: 7 additions & 2 deletions BroBoard/BroBoard/PSViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
//

#import "PSViewController.h"

#import "PSBroView.h"

/**
This is an example of a controller that uses PSCollectionView
*/

/**
Detect iPad
*/
Expand Down Expand Up @@ -149,7 +152,9 @@ - (CGFloat)heightForViewAtIndex:(NSInteger)index {
}

- (void)collectionView:(PSCollectionView *)collectionView didSelectView:(PSCollectionViewCell *)view atIndex:(NSInteger)index {
NSDictionary *item = [self.items objectAtIndex:index];
// NSDictionary *item = [self.items objectAtIndex:index];

// You can do something when the user taps on a collectionViewCell here
}

@end

0 comments on commit 343b480

Please sign in to comment.