あなたはUITextViewに境界線を追加したい場合は、その後、
UITextView* myTextView = [[UITextView alloc] initWithFrame:CGRectMake(0,0,280,180)];
[myTextView setBackgroundColor:[UIColor clearColor]];
を使用することができますUITextViewに透明に背景を設定するにはあなたは、それをあなたの後に行うことができるtextViewのレイヤーに追加する必要があります
[[myTextView layer] setCornerRadius:15.0f]; //You don't need to set this but it will give the view rounded corners.
[[myTextView layer] setBorderWidth:1.0f]; //again you pick the value 1 is quite a thin border
[[myTextView layer] setBorderColor:[[UIColor blackColor] CGColor]]; //again you can choose the color.
私はあなたの両方の質問に答える必要があります。あなたはコード -
#import <QuartzCore/QuartzCore.h>
....
textView.layer.borderWidth = 5.0f;
textView.layer.borderColor = [[UIColor grayColor] CGColor];
次使用することができます
「ボーダー幅」と「ボーダーカラー」が優れています。 –