Friday, May 11, 2012

TextView iPhone


UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0,0,200,90)];
textView.text = @"HI";
self.textView.autoresizingMask = UIViewAutoresizingFlexibleHeight;
textView.userInteractionEnabled = NO;
        self.textView.textColor = [UIColor blackColor];
        self.textView.font = [UIFont fontWithName:@"Arial" size:18];
self.textView.delegate = self;
self.textView.backgroundColor = [UIColor whiteColor];
self.textView.keyboardType = UIKeyboardTypeDefault
self.textView.scrollEnabled = YES;
self.textView.returnKeyType = UIReturnKeyDefault;
[self addSubview:textView];

No comments:

Post a Comment