Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created July 12, 2011 23:42
Show Gist options
  • Select an option

  • Save tolmasky/1079440 to your computer and use it in GitHub Desktop.

Select an option

Save tolmasky/1079440 to your computer and use it in GitHub Desktop.
//
// 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