title: Calling an array of strings located on a Property List
body: <p>I need to bring an <code>ARRAY</code> of strings, located on a .plist. I'm making a singleton in order to make it easier.
  Here is an example of my plist.</p>
  
  <pre><code>&lt;plist version="1.0"&gt;
  &lt;array&gt;
      &lt;dict&gt;
          &lt;key&gt;id&lt;/key&gt;
          &lt;integer&gt;1&lt;/integer&gt;
          &lt;key&gt;Texts&lt;/key&gt;
          &lt;array&gt;
              &lt;string&gt;Text number one&lt;/string&gt;
              &lt;string&gt;Text number two&lt;/string&gt;
              &lt;string&gt;Text number three&lt;/string&gt;
          &lt;/array&gt;
      &lt;/dict&gt;
      &lt;dict&gt;
          &lt;key&gt;id&lt;/key&gt;
          &lt;integer&gt;2&lt;/integer&gt;
          &lt;key&gt;Texts&lt;/key&gt;
          &lt;array&gt;
              &lt;string&gt;Text number one&lt;/string&gt;
              &lt;string&gt;Text number two&lt;/string&gt;
              &lt;string&gt;Text number three&lt;/string&gt;
          &lt;/array&gt;
      &lt;/dict&gt;
  &lt;/array&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>and here is my method to bring the array of strings:</p>
  
  <pre><code>- (NSArray*)getStoryTutorialForEnvironmentId:(int)envId andPage:(int)pageNumber{
  
        NSArray* storyArray = [self.tutorial objectAtIndex:envId];
          NSDictionary* gamingVoicesArray = [storyArray objectAtIndex:pageNumber];
          NSArray *finalArray = [gamingVoicesArray objectForKey:@"Texts"];
          return finalArray;
  }
  </code></pre>
  
  <p>the thing is, I'm getting a crash. I don't know how to make my final array in order to return the text array when calling the singletone. What I'm making wrong?</p>
  
  <p><strong>EDIT:</strong>
  CRASH LOG
      -[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0xaa49e70</p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <pre><code>- (id)init{
      self = [super init];
      if (self != nil) {
          NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
  
          if ([defaults objectForKey:@"StoryText"] != nil) {
              NSArray* environment_story_temp = [defaults objectForKey:@"MyPlist"];
              self.tutorial = [[NSMutableArray alloc] initWithArray:environment_story_temp];
          }else{
              NSString* plistPath = [[[NSBundle mainBundle] resourcePath]
                                     stringByAppendingPathComponent:@"MyPlist.plist"];
              if (plistPath != nil) {
                  self.tutorial = [[NSMutableArray alloc] initWithContentsOfFile:plistPath];
                  [defaults setObject:self.tutorial forKey:@"MyPlist"];
                  [defaults synchronize];
              }
          }
      }
      return self;
  }
  </code></pre>