Created
November 5, 2010 03:21
-
-
Save marshluca/663600 to your computer and use it in GitHub Desktop.
set Round Rect border for UITextView
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
#import <QuartzCore/QuartzCore.h> | |
[self.content.layer setBackgroundColor:[[UIColor whiteColor] CGColor]]; | |
[self.content.layer setBorderColor:[[UIColor grayColor] CGColor]]; | |
[self.content.layer setBorderWidth:1.0]; | |
[self.content.layer setCornerRadius:8.0]; | |
[self.content.layer setMasksToBounds:YES]; | |
self.content.clipsToBounds = YES; | |
transTextView.layer.borderWidth = 2.0f; | |
transTextView.layer.borderColor = [[UIColor blackColor] CGColor]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment