Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-21-2008, 10:19 PM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 71
Default how to make UITextView text entry word wrap automatically?

Is there a way to make UITextView (multi-line text edit control) word wrap automatically? I can't figure it out for the life of me, and I find it hard to believe Apple didn't put this functionality in there somewhere. I've seen multiple apps from the app store, and the Note entry screen in the Contacts app do it, but I suppose they all could have implemented custom behavior in the control to do it. Any help is appreciated!
halusha is offline   Reply With Quote
Old 07-21-2008, 10:59 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 71
Default

In Interface Builder, there are checkboxes for UITextView controls that lets you specify whether or not to have Horizontal and/or Vertical scrolling.

Does anyone know how to do that same thing with the API? I don't use Interface Builder.
halusha is offline   Reply With Quote
Old 07-21-2008, 11:29 PM   #3 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 71
Default

Alright I must be smoking something. Maybe they fixed it in the final firmware release....since I hadn't worked on this particular screen since beta 6. Nevermind my ramblings, it seems to be working just how I want it.
halusha is offline   Reply With Quote
Old 11-24-2008, 01:43 PM   #4 (permalink)
ash
Ashar
 
Join Date: Aug 2008
Posts: 54
Default

i still haven't been able to figure out how to enable horizontal scrolling in my UITextView, actually my text width is greater than the iphoone width and i'm placing it in a UITextView but it just doesn't work...
ash is offline   Reply With Quote
Old 10-16-2009, 07:34 AM   #5 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 3
Default

Did you get a solution to this? I am struggling with the same problem.
cwey is offline   Reply With Quote
Old 01-28-2011, 02:10 AM   #6 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: Bangalore
Posts: 6
Default Even I am struggling with the same problem Please some one help us.

Even I am struggling with the same problem Please some one help us.
Laxman Nyamagouda is offline   Reply With Quote
Old 01-28-2011, 02:28 AM   #7 (permalink)
Registered Member
 
Saji's Avatar
 
Join Date: Jan 2011
Posts: 2
Default

Quote:
Originally Posted by Laxman Nyamagouda View Post
Even I am struggling with the same problem Please some one help us.
I think there is no API for setting word wrap for textview.

But I have one suggestion, If the text view text is not more than the visibility rect, then you can use one UILabel and use one button for switching edit mode, in edit mode ten show the text view.

this won't solve your issue but u can think some thing from this ...
Saji is offline   Reply With Quote
Reply

Bookmarks

Tags
uitextview, word wrap

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 265
20 members and 245 guests
14DEV, @sandris, ADY, ArtieFufkin10, ckgni, Dani77, HemiMG, IphoneSdk, jakerocheleau, JasonR, jimbo, MACralik, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0