UITextView 设置RoundRect边框

 

 

 

#import <QuartzCore/QuartzCore.h>

    

    textView.backgroundColor = [UIColor clearColor];

    textView.layer.masksToBounds = YES;

    textView.layer.borderWidth = 1.;

    textView.layer.borderColor = [[UIColor grayColor] CGColor];

    textView.layer.cornerRadius = 10.0f;

    textView.layer.borderColor = [UIColor grayColor].CGColor;

    textView.inputAccessoryView = toolBar;

你可能感兴趣的:(iPhone,边框,UITextView)