Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6351175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:57:05+00:00 2026-05-24T21:57:05+00:00

in my iphone app i am adding string values to the array first strSelectedDir

  • 0

in my iphone app i am adding string values to the array first strSelectedDir value ill be
xxx-jan16-2011-10.30AM later its value ill be xxx-feb16-2011-02.30PM ,,i am adding these 2 values into the array arrDownloadedDirNames using the following code

 [arrDownloadedDirNames addObject:strSelectedDir];

but in the out put array some new line symbols(\n) and symbols like \ “” are coming as shown bellow

(
    "(\n    \"xxx-jan16-2011-10.30AM\"\n)",
    "xxx-feb16-2011-02.30PM"
)

but i want array should be like this with no extra symbols other than which are in the input string 

(
    xxx-jan16-2011-10.30AM ,
    xxx-feb16-2011-02.30PM
)

how can i do this, why extra symbols are added? how can i remove those
please can any one help me,, thanx in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:57:05+00:00Added an answer on May 24, 2026 at 9:57 pm

    I guess your String is from a Parse or something right?
    The extra symbols you see are called Escape Sequences:

    \n = linebreake
    \” = “

    You can replace this Charakters pretty easy.

    NSMutabeString *yourNewString = [NSMutabelString stringWithFormat:@"%@",[arrDownloadDirNames objectAtIndex:i]
    [yourNewString replaceOccurrencesOfString:@"\n    \""  withString:@""  options:NSLiteralSearch range:NSMakeRange(0, [yourNewString length])];
    [yourNewString replaceOccurrencesOfString:@"\"\n"  withString:@""  options:NSLiteralSearch range:NSMakeRange(0, [yourNewString length])];
    

    Cheers
    nettz

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking at adding some data graphing to a new iPhone app in development (ala
I'm trying to walk someone through adding CorePlot to their iPhone app. I have
I'm in the process of adding Google Analytics to my iPhone app, but I'm
When I first started this iPhone app, I was still a beginner so I
I've been reading a tutorial called Adding SQL Database support to your iPhone App
I followed the tutorial: http://useyourloaf.com/blog/2010/5/18/adding-a-settings-bundle-to-an-iphone-app.html And the Toggle Switch (that I just created based
I gave my iPhone app a black status bar by adding the UIStatusBarStyleOpaqueBlack /
I'm adding a segmented control to a navigation bar in my iPhone app. By
my iphone app crashes unexpectedly and looking at the crash log I can't tell
The iPhone app that I am working on requires GET calls to a 3rd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.