Question

I need a help... Probably will be a silly question but a little bit new to objetive-c. The problem is:

  1. I am trying to add a row in the key value but it doesn't work.
  2. When I created the file at the begging didn't have any trouble but when I wrote "root" I couldn't add a row because I wanted to create a second key with all string in it.
  3. I tried to cancel the entire file and redo a entire project and when I am going to create a new plist file it gives me back the same key of the project I had canceled.

I followed this tutorial to do so but can't understand the trouble I have.

Was it helpful?

Solution

When you create a new Property List, the created file looks 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">
<plist version="1.0">
<dict/>
</plist>

When you open this file within Xcode's designated editor, it shows you an empty document with a "Root" Dictionary. It's a smart editor :) and it all starts with that "Root".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top