Skip to content

Commit

Permalink
A few quick changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Longo authored and Tom Longo committed Aug 18, 2012
1 parent c793de7 commit eca1ab7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Deck/PhotoStackView.m
Expand Up @@ -399,7 +399,8 @@ -(void)reloadData {

}

self.photoViews = photoViewsMutable; // Photo views are added to subview in the photoView setter
// Photo views are added to subview in the photoView setter
self.photoViews = photoViewsMutable; photoViewsMutable = nil;
[self goToPhotoAtIndex:topPhotoIndex];

}
Expand Down Expand Up @@ -443,5 +444,11 @@ -(id)initWithFrame:(CGRect)frame {
return self;
}

-(void)dealloc {
[self setPhotoViews:nil];
[self setBorderImage:nil];
[self setHighlightColor:nil];
[self setContentView:nil];
}

@end
Binary file not shown.
8 changes: 6 additions & 2 deletions readme.md
Expand Up @@ -9,11 +9,15 @@ PhotoStack is my attempt to re-create this user interface.
* iOS 5+
* ARC Enabled

## Demo

I've uploaded a [YouTube video demonstrating the provided demo project here. ](http://www.youtube.com/watch?v=wmpg6nIV3ns).

## Installation

First, download the source (including example Xcode project) from here, then include PhotoStackView.h, PhotoStackView.m and PhotoBorder.png files into your project.
First, download the source (including example Xcode project), then include PhotoStackView.h, PhotoStackView.m and PhotoBorder.png files into your project. Include PhotoStackView.h and you're ready to go!

Include PhotoStackView.h and you're ready to go! To create a PhotoStack object, first initialise it as you would with a normal view:
To create a PhotoStack object, first initialise it as you would with a normal view:

```
PhotoStackView *photoStack = [[PhotoStackView alloc] initWithFrame:CGRectMake(0, 0, 300, 300)];
Expand Down

0 comments on commit eca1ab7

Please sign in to comment.