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 09-10-2009, 12:40 PM   #1 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Question Paragraph break in Text from Plist

Is there an easy way to insert a paragraph break into a text field? I am storing a couple paragraphs of text in a plist and am using it to populate a label in a view. The text displays fine, but the formatting is non-existent. I was under the impression that you could force a paragraph break inline, but have tried including every variation I can think of (e.g. \n, "\u2028", \r, 0xE2 0x80 0xA8, U+2028, \p, (e280a8)). None of these work.

I realize this is a stupid question, but I've tried every variation I can think of and can't get it to work. Thanks for your help and patience.

PS - I also tried this bit of code, based on developer doc, but it crashed.
Code:
NSString *descriptionString = [albumDescription componentsSeparatedByString:@"\n"];
descriptionLabel.text = descriptionString;
DenVog is offline   Reply With Quote
Reply

Bookmarks

Tags
formatting, paragraph, plist, text

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: 231
15 members and 216 guests
ADY, Alsahir, cacao, dacapo, Dani77, Desert Diva, djohnson, HemiMG, jansan, M@realobjects, MarkC, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

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