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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:50:38+00:00 2026-06-08T02:50:38+00:00

desc = [[NSMutableArray alloc] init]; for (NSString * strName in results) { arrRates =

  • 0
desc = [[NSMutableArray alloc] init];
for (NSString * strName in results) 
{
    arrRates = [results objectForKey:strName];
    for (int i = 0; i <= [arrRates count]; i++) 
    {
        if ([[[arrRates objectAtIndex:i] valueForKey:@"type"] isEqualToString:@"0"])
        {
            nextUrl = [[arrRates objectAtIndex:i] valueForKey:@"Nexturl"];
            [desc addObject:[[arrRates objectAtIndex:i] valueForKey:@"desc"]];
        }
    }
}
NSLog(@"type 0 desc is:--> %@",desc);

Out Put:-

[7666:b303] type 0 desc is:--> (
    "Home|2028;Services|2029;Clients|2030;Portfolio|2031;Company|2032;Contact Us|2033;Career|2034;",
    "Article Submission|2064;Social Bookmarking|2065;Directory Submission|2066;Forum / Blog Link Generation|2067;Press Release Distribution|2068;Link Wheel Creation|2069;Content Writing|2070;Video Marketing|2071;",
    "Magento|2072;Joomla|2073;Wordpress|2074;Drupal|2075;osCommerce / Zencart|2076;",
    "PSD to XHTML|2077;Newsletter Design|2078;Logo Design|2079;Website Redesign|2080;W3C Validation|2081;Flash Intro|2082;",
    "SEO Services|2035;BPO / KPO Services|2036;Web Development|2037;Mobile Apps.|2038;",
    "SEO Portfolio|2039;Web Development Portfolio|2040;",
    "About Elsner|2083;Vision, Mission, Values|2084;Leadership Team|2085;Our Partners|2086;Awards and Recognition|2087;Press|2088;Events|2089;",
    "Link Building Services|2041;Pay Per Click Marketing Services|2042;Search Engine Marketing|2043;Social Media Marketing|2044;Keyword Research|2045;Website Optimization|2046;",
    "Data Entry Services|2048;Live Chat Support|2049;B2B Lead Generation|2050;24 x 7 Technical Support|2051;HR Recruitment Service|2052;Market Research and Analysis |2053;",
    "Open Source Solution|2054;Custom PHP|2055;CRM|2056;Ecommerce Solution|2057;Website Design|2058;Website Design|2058;Website Design|2059;",
    "Blackberry Apps|2060;J2ME Apps|2061;Iphone Apps|2062;Android Apps|2063;"
)

I have this type of data in the json parsing field “desc”.

This data has some “|” & “;” separated values.

from this kind of data I want to store the data in two different parameters like…

title              id
-------            ----

Home               2028

Services           2029

Clients            2030

Portfolio          2031

Company            2032

Contact Us         2033

Career             2034
  • 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-08T02:50:40+00:00Added an answer on June 8, 2026 at 2:50 am
      NSString *desc=@"Home|2028;Services|2029;Clients|2030;Portfolio|2031";
    NSArray *arr=[desc componentsSeparatedByString:@";"];
    NSString *sub=@"|";
    NSMutableArray *arrTitle=[[NSMutableArray alloc]init];
    NSMutableArray *arrId=[[NSMutableArray alloc]init];
    for (int i=0; i<[arr count]; i++) {
        [arrTitle addObject:[[arr objectAtIndex:i] substringToIndex:NSMaxRange([[arr objectAtIndex:i] rangeOfString:sub])-1]];
        [arrId addObject:[[arr objectAtIndex:i] substringFromIndex:NSMaxRange([[arr objectAtIndex:i] rangeOfString:sub])]];
    }
    

    try it.. vipul patel

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

Sidebar

Related Questions

Heres my array NSMutableArray *arrayTmp= [[NSMutableArray alloc] init]; I populate it like this double
I have List I want to sort Desc by Priority, which is int and
SQL> desc FLIGHTS; Name Null? Type ----------------------------------------- -------- ---------------------------- FLNO NUMBER(38) FROM VARCHAR2(64) TO
var val = $(#desc).val(); // input box var val2 = $(#type).val(); // select box
string[,] desc = new string[255,10]; int descLines = 0; cont string RDATAPATCH = rctdata.xdb;
I have this in my code: double** desc = new double* [size_out]; for (int
I have the following code: desc = [[UILabel alloc] initWithFrame:CGRectMake(134, 5, 185, 60)]; [desc
My models: Item: name desc Type: name Value: item.ForeignKey(Item) type.ForeignKey(Type) val.CharField # varchar or
I have two tables: mysql> desc myps3t_gameusertrophyinfo; +-----------+--------------+------+-----+---------+----------------+ | Field | Type | Null
I want to do something like: int desc = -1; if ( DB_DBM_HSEARCH ==

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.