title: Storing image path in plist then retrieve to show on screen
body: <p>I am trying to make an app where the picture comes up with the anagram of a word. I have the anagram part but I can't get the picture to come up. The picture is saved in a folder called "images". I would like to call anagramPics - item 0, at the same time as anagrams -item 0 - to match the word with the pic</p>
  
  <p>Thanks in advance. </p>
  
  <p><a href="https://i.stack.imgur.com/qsN86.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qsN86.png" alt="I would like to call anagramPics - item 0, at the same time as anagrams -item 0 - to match the word with the pic"></a></p>
  
  <p>code for the anagram: </p>
  
  <p>level.m </p>
  
  <pre><code>#import "Level.h"
  
  @implementation Level
  
  +(instancetype)levelWithNum:(int)levelNum;
  {
   // find .plist file for this level
    NSString* fileName = [NSString stringWithFormat:@"level%i.plist", levelNum];
    NSString* levelPath = [[[NSBundle mainBundle] resourcePath]      stringByAppendingPathComponent:fileName];
  
    // load .plist file
    NSDictionary* levelDict = [NSDictionary dictionaryWithContentsOfFile:levelPath];
  
    // validation
    NSAssert(levelDict, @"level config file not found");
  
    // create Level instance
    Level* l = [[Level alloc] init];
  
    // initialize the object from the dictionary
    l.pointsPerTile = [levelDict[@"pointsPerTile"] intValue];
    l.anagrams = levelDict[@"anagrams"];
    l.timeToSolve = [levelDict[@"timeToSolve"] intValue];
  
    return l;
  }
  
  @end
  </code></pre>
  
  <p>level.h</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface Level : NSObject
  
  //properties stored in a .plist file
  @property (assign, nonatomic) int pointsPerTile;
  @property (assign, nonatomic) int timeToSolve;
  @property (strong, nonatomic) NSArray* anagrams;
  
  //factory method to load a .plist file and initialize the model
  +(instancetype)levelWithNum:(int)levelNum;
  
  @end
  </code></pre>
  
  <p>gameController.h</p>
  
  <pre><code>-(void)dealRandomAnagram
  {
  //1
  NSAssert(self.level.anagrams, @"no level loaded");
  
  //2 random anagram
  int randomIndex = arc4random()%[self.level.anagrams count];
  NSArray* anaPair = self.level.anagrams[ randomIndex ];
  
  //3
  NSString* anagram1 = anaPair[0];
  NSString* anagram2 = anaPair[1];
  
  //4
  int ana1len = [anagram1 length];
  int ana2len = [anagram2 length];
  
  //5
  NSLog(@"phrase1[%i]: %@", ana1len, anagram1);
  NSLog(@"phrase2[%i]: %@", ana2len, anagram2);    
  }
  </code></pre>