Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update setters

  • Loading branch information...
commit 559901005c4e9546297aa1c05f3e69a334c91b0d 1 parent a541bc7
Sam Soffes soffes authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 SSToolkit/SSRatingPicker.m
6 SSToolkit/SSRatingPicker.m
View
@@ -60,16 +60,18 @@ - (void)settotalNumberOfStars:(NSUInteger)totalNumberOfStars {
- (void)setEmptyStarImage:(UIImage *)emptyStarImage {
+ [emptyStarImage retain];
[_emptyStarImage release];
- _emptyStarImage = [emptyStarImage retain];
+ _emptyStarImage = emptyStarImage;
[self setNeedsDisplay];
}
- (void)setFilledStarImage:(UIImage *)filledStarImage {
+ [filledStarImage retain];
[_filledStarImage release];
- _filledStarImage = [filledStarImage retain];
+ _filledStarImage = filledStarImage;
[self setNeedsDisplay];
}
Please sign in to comment.
Something went wrong with that request. Please try again.