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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:52:06+00:00 2026-06-06T10:52:06+00:00

I have a plist uploaded on a server. When I log the array with:

  • 0

I have a plist uploaded on a server. When I log the array with:

NSLog(@"My Array: %@", topModsArray);

It displays:

    "New item 0",
    {
    curVersion = "1.2.5";
    description = "This mod enables you to install other mods, does not modify the gameplay itself, helps other mods to.";
    maker = Risugami;
    mcVersion = "1.2.5";
    name = ModLoader;
    rating = 5;
    requires = Nothing;
},
"New item 1",
    {
    curVersion = "3.3.8.153";
    description = "This mod is like ModLoader, it allows other mods to be installed and work properly. This adds more capability for developers when making their mods.";
    maker = SpaceToad;
    mcVersion = "1.2.5";
    name = "Minecraft Forge";
    rating = 5;
    requires = ModLoader;
},
"New item 2",
    {
    curVersion = "1.2.5";
    description = "This mod gives capability for clients to use certain mods and for servers to be modded.";
    maker = Flan;
    mcVersion = "1.2.5";
    name = ModLoaderMP;
    rating = 5;
    requires = ModLoader;
},
"New item 3",
    {
    curVersion = "3.6.2";
    description = "This mod adds much more mobs to minecraft, making the game more fun and enjoyable. (Be warned it adds much more hostile mobs, and in the water)";
    maker = DrZhark;
    mcVersion = "1.2.5";
    name = "Mo' Creatures";
    rating = 5;
    requires = "ModLoader, Minecraft Forge, GUI API and CustomMobSpawner";
},
"New item 4",
    {
    curVersion = "3.1.5";
    description = "This mod makes minecraft more realistic with pipes, quarrys, machines, and much more. If you want your minecraft to be more realistic, this is a must have mod.";
    maker = "SirSengir (Now Opensource)";
    mcVersion = "1.2.5";
    name = Buildcraft;
    rating = 5;
    requires = "ModLoader and Minecraft Forge";
}

Which is what I want it to display, however when I try to add the name key to a UITableView with this:

cell.textLabel.text = [[topModsArray objectAtIndex:indexPath.row] objectForKey:@"name"];

My app crashes with SIGABRT:

2012-06-27 12:54:37.765 MinePedia[72019:f803] -[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x6c8bad0
2012-06-27 12:54:37.766 MinePedia[72019:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x6c8bad0'
*** First throw call stack:
(0x13bd052 0x154ed0a 0x13beced 0x1323f00 0x1323ce2 0x3424 0xade0f 0xae589 0x99dfd 0xa8851 0x53301 0x13bee72 0x1d6792d 0x1d71827 0x1cf7fa7 0x1cf9ea6 0x1d8530c 0x25530 0x13919ce 0x1328670 0x12f44f6 0x12f3db4 0x12f3ccb 0x12a6879 0x12a693e 0x14a9b 0x2868 0x27c5)
terminate called throwing an exceptionsharedlibrary apply-load-rules all
Current language:  auto; currently objective-c
(gdb) 

Please help me

  • 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-06T10:52:09+00:00Added an answer on June 6, 2026 at 10:52 am

    see make one array in your .h and alloc it in view did load and and use that to show your table, make your array like this…

    for(int i =0 ;i <topModsArray.count ; i++ ){
        id object = [topModsArray objectAtIndex:i];
    if([object isKindOfClass:[NSMutableDictionary class]] || [object isKindOfClass:[NSDictionary class]]){
         NSMutableDictionary  *dict = (NSMutableDictionary *)object;
         [yourArray addObject:dict];
     }
    

    now return number of row is yourArray.count and in your cellForRowAtIndexPath:

     NSMutableDictionary  *dict = [yourArray objectAtIndexPath:indexPath.row];
     cell.titleLabel.text = [dict objectForKey:@"name"];
    

    use this may this help you

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

Sidebar

Related Questions

If I have a plist which is structured like this: Root Array Item 0
I have a plist like this: <dict> <key>New item</key> <dict> <key>document</key> <string>driving licence</string> <key>Overview</key>
I have a .plist file containing array and dictionaries. I want to convert this
I have a plist (array of dictionaries) which populates a table view and works
I have a plist on my server that I provide for an app. On
I have a plist which contains an array of NSDictionary 's which represent a
i have a plist that's at its root an array with dictonaries inside it.
I have a plist file which is an array of dictionaries. Where each dictionary
If I have a plist which I have put into and array, which looks
I have a plist file which contains an array of dictionaries. Here is one

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.