Created
April 19, 2010 00:11
-
-
Save jls/370638 to your computer and use it in GitHub Desktop.
RoundedCorners.h
This file contains 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
#import <Foundation/Foundation.h> | |
#import "QuartzCore/QuartzCore.h" | |
@interface RoundedCorners : NSObject { | |
} | |
+ (void) setView:(UIView *) view cornerRadius:(float) radius; | |
@end | |
@implementation RoundedCorners | |
+ (void) setView:(UIView *)view cornerRadius:(float)radius{ | |
[view setClipsToBounds:YES]; | |
view.layer.cornerRadius = radius; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment