Skip to content

Commit

Permalink
Add wrapped release call so it plays nice if the file happened to be …
Browse files Browse the repository at this point in the history
…compiled without ARC
  • Loading branch information
Ryan Maxwell committed Sep 7, 2013
1 parent 27d8b78 commit c4b8784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ If a delegate was set on the alert view, the delegate will be preserved and the
## Category Requirements
Blocks and ARC - so iOS 4.3 or later.
Blocks - so iOS 4.0 and later. Compatible with both ARC and traditional retain/release code.
## Test Project Requirements
Expand Down
3 changes: 3 additions & 0 deletions UIAlertView+Blocks.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ + (void)showWithTitle:(NSString *)title
}

[alertView show];
#if !__has_feature(objc_arc)
[alertView release];
#endif
}

#pragma mark -
Expand Down

0 comments on commit c4b8784

Please sign in to comment.