Created
July 12, 2011 23:42
-
-
Save tolmasky/1079440 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIView+PropertyAdditions.m | |
| // | |
| // Created by Francisco Tolmasky on 7/3/11. | |
| // Copyright 2011 __MyCompanyName__. All rights reserved. | |
| // | |
| #import "NSObject+KVOAdditions.h" | |
| #import "UIView+KVOAdditions.h" | |
| @implementation UIView (PropertyAdditions) | |
| - (void)setNeedsDisplayForChangesInKeyPath:(NSString *)aKeyPath | |
| { | |
| [self performSelector:@selector(setNeedsDisplay) forChangesInKeyPath:aKeyPath]; | |
| } | |
| - (void)setNeedsLayoutForChangesInKeyPath:(NSString *)aKeyPath | |
| { | |
| [self performSelector:@selector(setNeedsLayout) forChangesInKeyPath:aKeyPath]; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment