Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add a sub item/level to the child key of plist (multiple-levels)?
    primarykey
    data
    text
    <p>i am trying to create a planner application on iphone. I would like to create a sub key/row in my plist in another view (That means, i'll first create the structure of the plist in one view, and in the other view i would like to add another item into the already created plist). I would want my plist to look like this:</p> <blockquote> <p>Root (Array)</p> <pre><code> Item 0 (Dictionary) ProjectName (String) Stages (Dictionary) Analysis (Array) ^Item 0 (Dictionary) Levels (String) Tools (String) ^Item 1 (Dictionary) Levels (String) Tools (String) Develop (Array) Item 1 (Dictionary) ProjectName (String) Stages (Dictionary) Analysis (Array) ^Item 0 (Dictionary) Levels (String) Tools (String) ^Item 1 (Dictionary) Levels (String) Tools (String) Develop (Array) </code></pre> </blockquote> <p>^ for now, i don't have the item 0 and item 1 in my Analysis array and i would like to add it in but i don't know the right codes to do it.</p> <p>So in my first view, i would be able to add a new project and after adding, it will save in my plist as a dictionary, the first item 0 (i've code it that when the user saves the new project the stages dictionary with the analysis and develop array will be created in my plist as well).<br> -- there would be item 1, item 2 and so on if the user choose to add more projects. <br></p> <p>After the user has created(saved) a new project, he/she can go to the second view where he/she could choose a stage (Analysis/Develop).</p> <p>So example, the user chooses the Analysis stage, he/she would be taken to another view which allows the user to add level(s) for the certain stage. </p> <p>The problem i am facing is how am i suppose to add another dictionary item with strings into my existing Analysis stage in the plist (how to add a new value/item into an existing dictionary/array(row) in the plist)?</p> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload