tags:

views:

201

answers:

0

hi i have a big problem searching a data.plist file in my iphone project: I've seen several tutorials but the did not help in my case. my plist file looks like this:

root-
     Rows-
          item 0-
               title (string)

          item 1-
               title (string)

          item 2-
               title (string)

....

generally i load my dic via:

- (void)applicationDidFinishLaunching:(UIApplication *)application {

  NSString *Path = [[NSBundle mainBundle] bundlePath];
  NSString *DataPath = [Path stringByAppendingPathComponent:@"data.plist"];

  NSDictionary *tempDict = [[NSDictionary alloc] initWithContentsOfFile:DataPath];
  self.data = tempDict;
  [tempDict release];

  // Configure and show the window
  [window addSubview:[navigationController view]];
  [window makeKeyAndVisible];
}

but how can i search it?

I was able so get a string out of the plist file if the string is at the root level, but not when it is unter rows and items. Please help any ideas?

Thanks a lot, tobias