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;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章