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 01-08-2010, 11:36 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Florida
Posts: 5
Talking Display full paragraph in a detail view with UIScrollView

I currently have a drill down table set up to load a detail view. I have successfully displayed text through an UILabel outlet, but this is limited to one sentence or so. I would like to display an entire paragraph inside of the detail view. A friend suggested a UIScrollView but I cannot figure out how to load the text into this scroll view in the viewDidLoad function. Any suggestions other than a scroll view and/or how to display the text inside a scroll view? Individual xib files for each separate detail view would not work because I would have a total of roughly 50 xib files. Any help would be great!
kbegemandev is offline   Reply With Quote
Old 01-08-2010, 11:39 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

The scroll view would need to contain something to display the text. Like, a label or a text view.

I don't believe you are correct that a label is limited. You just need to make it physically large enough to contain the text you want to display, and you need to set the number of lines to 0. A text view will provide scrolling if there is enough text to warrant it.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
Old 01-08-2010, 11:43 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 271
Default

Creating a UIViewController subclass that contains a UITextView would do the trick.
__________________
@rarindeed


Burstly is the only open and free ad management platform for iPhone app developers.
rarindeed is offline   Reply With Quote
Old 01-09-2010, 10:11 AM   #4 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Florida
Posts: 5
Default

Quote:
Originally Posted by BrianSlick View Post
The scroll view would need to contain something to display the text. Like, a label or a text view.

I don't believe you are correct that a label is limited. You just need to make it physically large enough to contain the text you want to display, and you need to set the number of lines to 0. A text view will provide scrolling if there is enough text to warrant it.
You are absolutely right! All I had to do was set the number of lines to 0. Really makes you feel like a newb with such a simple solution haha! Thanks alot!
kbegemandev is offline   Reply With Quote
Reply

Bookmarks

Tags
detail view, table view, uiscrollview

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: 237
14 members and 223 guests
ADY, AragornSG, Dani77, Dattee, Duncan C, HDshot, HemiMG, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
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 03:18 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0