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

  • Home
  • SEARCH
  • 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 6962995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:43:54+00:00 2026-05-27T15:43:54+00:00

my plist is like below: <array> <dict> <key>eye</key> <string>eye_man_blue</string> <key>lips</key> <string>lips_blue</string> </dict> <dict> <key>eye</key>

  • 0

my plist is like below:

<array>
    <dict>
        <key>eye</key>
        <string>eye_man_blue</string>
        <key>lips</key>
        <string>lips_blue</string>
    </dict>
    <dict>
        <key>eye</key>
        <string>eye_man</string>
        <key>lips</key>
        <string>lips</string>
    </dict>
</array>

i need to select/read “eye_man_blue” forkey:eye atIndex:0.
this mean,if i do NSLog(@”%@.png”,eyeDisplay);
it suppose to logging : eye_man_blue.png
i tried something like:

arrayItems=[NSMutableArray arrayWithContentsOfFile:finalPath];
NSArray *itemArray = [NSArray arrayWithObjects:[arrayItems objectAtIndex:0], nil];
NSDictionary *itemdict = [NSDictionary dictionaryWithObject:itemArray forKey:@"eye"];
NSLog(@"%@",itemdict);

i get :

2011-12-21 11:00:30.749 project[358:f803] {
    eye =     (
    );
}
  • 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-27T15:43:55+00:00Added an answer on May 27, 2026 at 3:43 pm

    You have 1 array with 2 indexes, each index is a dictionary.

    arrayItems=[NSMutableArray arrayWithContentsOfFile:finalPath];
    NSString *myString = [[arrayItems objectAtIndex:0] objectForKey:@"eye"];
    NSLog (@"%@.png",myString);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a plist like this: <dict> <key>New item</key> <dict> <key>document</key> <string>driving licence</string> <key>Overview</key>
When I generate an Entitlements.plist the contents are like this <key>application-identifier</key> <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string> <key>keychain-access-groups</key> <array>
we need to be able to read in the contents of an existing plist
I have my shared user defaults plist that looks something like: menuItems (Array) Item
I am writing some data(string) to a plist like this: NSError *error = nil;
I'm trying to make use of a dictionary plist as shown below: I read
I am attempting to read the plist dictionary below into cells of a UITableView.
well i have an array which takes it's data from a plist file like
Not sure why my .plist looks like this when viwed as source code, and
It seems like Info.plist file has an ability to declare different roles for the

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.