본문 바로가기

□컴퓨터 관련/★iPhone Developer

UITextView 설정하기!


UITextView 사용방법입니다.
몇가지 안되지만, 유용하게 사용하였습니다.

...
중략
...

UITextView *localTextView =
[[UITextView alloc] initWithFrame:
CGRectMake(0, 0, 230, 60)];
localTextView
.opaque = NO;
localTextView
.backgroundColor = [UIColor clearColor];
localTextView
.font = [UIFont fontWithName:@"Helvetica" size:14];
localTextView
.userInteractionEnabled = NO;
self
.textView = localTextView;
[localTextView release];

textView
.text = @"Cras sit amet purus vitae libero venenatis luctus sit amet non urna. Curabitur volutpat adipis cing nulla, in lacinia eros pulvinar vitae.";

[self addSubview:textView];