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 9055681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:01:01+00:00 2026-06-16T14:01:01+00:00

I get the response from service url and I took them into array.I have

  • 0

I get the response from service url and I took them into array.I have the objects in this array with todays week day.But while doing so I get commas from service.So I need to remove the commas from them and compare.How can I do it?

array3:
(
{
    Code = "Sunday,";
},
{
    Code = "Thursday,";
},
{
    Code = "Friday,";
},
{
    Code = "Saturday,";
}
)

To compare:

  NSMutableArray *yourArray = [[NSMutableArray alloc] init];
    for (NSDictionary *dict in array3) {
        [yourArray addObject:[dict valueForKey:@"Code"]];

    }
    BOOL isTheObjectThere = [yourArray containsObject:@"Thursday"];


But I get isTheObjectThere as 'NO' because yourArray is like:

(
Sunday,,
Thursday,,
Friday,,
Saturday,
)

So how can I remove that extra comma when there are two commas and compare:

  • 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-06-16T14:01:03+00:00Added an answer on June 16, 2026 at 2:01 pm

    Try this,

      for (NSDictionary *dict in array3) {
    
                 NSString *str=[dict valueForKey:@"Code"];
    
      NSString*newstr=  [str stringByReplacingOccurrencesOfString:@"," withString:@""];
    
        [yourArray addObject:newstr];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting json response from this google api service to get reverse geo
How can I get an html response from a url string? Using this: #lang
I am implementing an application with get the response from service and show to
I noticed that Feedzirra uses this regex to get the ETag from response header:
i get a JSON response from a web service: {CoverageSearchByLatLongResult:{HasTransmissionAreasWithSignal:true,SwitchOffArea: {OpenForVastApplications:false,SeperateTileSetUrl:http:\/\/myswitch.merged.stage.orchard.net.au\/geodatafiles\/SwitchOffArea\/442b8844-3c05-4548-9424- 4fdafc1f3c62\/Seperate,HASStatus:Future,HASStatement:<p>The Household Assistance
I am receiving JSON string response from my WCF service. I wanna parse this
I've been trying to get a json response from google's geocoding service. I'm using
I get the set of image Url's from back end service calls ,after parsing
Is it possible to get response from Graph API (or FQL) that will list
I'm using the following code to get response from a requested page using php

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.