Can you explain how to create text view in iphone.
how to create text view in iPhone?
hello friends,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Chintan RathodPosted Dec 2, 2012, 3:18 AM
You can create UITextView programmatically like this, write code in ViewController.m file,
CGRect textViewFrame = CGRectMake(20.0f, 20.0f, 280.0f, 124.0f);
UITextView *textView = [[UITextView alloc] initWithFrame:textViewFrame];
textView.returnKeyType = UIReturnKeyDone;
[self.view addSubview:textView];
Nice tutorial I found are...
1) http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_uitextview_uitextviewdelegate_2/
2) http://www.aboutobjects.com/community/iphone_development_tutorial/tutorial.html
Thanks