Skip to main content
12 events
when toggle format what by license comment
Nov 27, 2015 at 17:04 comment added user3099609 Thank you! Though departing from HIG this fits my usecase perfectly because the TextView had to 1) be able to show wrapped text 2) not allow multi-line text to be entered.
Jul 9, 2015 at 7:20 comment added MB_iOSDeveloper @Casebash. It seems that setting the return key to "done" doesn't solve the problem in Xcode 6.4 , Swift 2.0. I set the key using IB.
Nov 9, 2013 at 14:18 comment added Braydon Batungbacal Try using the UIKeyboard accessory view and adding a button that resigns the keyboard.
Nov 7, 2013 at 21:56 comment added Ele This is not a good way to resolve this because you're restricting user to use enter to go out from keyboard. Probably the best way is adding a button that execute resignFirstResponder method.
S Jan 12, 2013 at 6:15 history suggested Venk CC BY-SA 3.0
Jan 12, 2013 at 6:12 review Suggested edits
S Jan 12, 2013 at 6:15
Jun 3, 2011 at 0:37 comment added Greg Maletic See below; use the UITextViewDelegate method textView:shouldChangeTextInRange:replacementText:. It works great.
Sep 28, 2010 at 3:09 comment added Casebash Okay, I now understand that the Apple way of finishing with a multiline text field is to add done to the menu bar
Sep 28, 2010 at 2:58 comment added Casebash It is easy enough to change the return key to "done" using either [textField setReturnKeyType: UIReturnKeyDone]; or using interface builder
Apr 1, 2009 at 6:12 comment added Chilly Zhong Thanks and the method works well. The reason to use UITextView is that it can hold text in multiple lines. And now I'm using it as a message box.
Apr 1, 2009 at 5:53 vote accept Chilly Zhong
Apr 1, 2009 at 5:41 history answered lostInTransit CC BY-SA 2.5