views:

13

answers:

1

Hi, i´ve created a plist with three rows like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
<plist version="1.0">
<dict>
    <key>intro_buttons</key>
    <dict>
        <key>button1</key>
        <string>1.1</string>
        <key>button2</key>
        <string>1.2</string>
        <key>button3</key>
        <string>1.3</string>
    </dict>
    <key>end_buttons</key>
    <dict>
        <key>button1</key>
        <string>2.1</string>
        <key>button2</key>
        <string>2.2</string>
        <key>button3</key>
        <string>2.3</string>
    </dict>
</dict>
</plist>

I want to fill tableview based on my plist. But i have no idea how do access each element.I´ve tested that so far, but no luck.

cell.textLabel.text = [[contentDict objectForKey:@"intro_buttons" ]objectAtIndex:indexPath.row]; 

Could anybody point me in the right direction, please?

A: 

Take a look here: Property list programming guide

dkk