2009-09-17 19 views

उत्तर

22

आप इस प्रोग्राम के रूप में करना होगा, मुझे नहीं लगता कि इस इंटरफ़ेस बिल्डर में संभव है।

बस उपयुक्त विधि का आप देखने (जैसे - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event) या आपके विचार नियंत्रक में तरह

UITextView *myTextView = [[UITextView alloc] init]; 
myTextView.text = @"some text"; 
//some other setup like setting the font for the UITextView... 
[self addSubview:myTextView]; 
[myTextView sizeToFit]; 

कुछ करना।

9
UITextView*txtview = 
    [[UITextView alloc]initWithFrame:CGRectMake(x,y,width,hight)]; 
[txtview setDelegate:self];  
[txtview setReturnKeyType:UIReturnKeyDone];  
[txtview setTag:1];  
[txtview setCornerRadius:5];  
[self.scrollview txtview]; 
1

स्विफ्ट

में
let textView = UITextView(frame: CGRectMake(x,y,width,height)) 
textView.textAlignment = NSTextAlignment.Center 
textView.textColor = UIColor.blueColor() 
textView.backgroundColor = UIColor.redColor() 
self.view.addSubview(textView) 
संबंधित मुद्दे