title: Rearrange Letters from Array and check if arrangement is in array
body: <p>I'm Making a an ios application where you input 9 lettes and it will output anagrams of those 9 letters. It is like the target word, or 9 letter word in the paper. Like this link:</p>
  
  <p><a href="http://nineletterword.tompaton.com/" rel="nofollow">http://nineletterword.tompaton.com/</a> </p>
  
  <p>It doesn't just provide anagrams for 9 letters, it will do it for 4 letters, 5 letters, 6 letters... all of which contain at least the middle letter. </p>
  
  <p>I want to make it an <strong>offline</strong> application, so I don't want to reference any websites or use an online json...</p>
  
  <p>How would I go about checking if an array of the 9 letters can be rearranged into a word which is in an English dictionary which I have downloaded. </p>
  
  <p>E.g. I have the input of (a,b,a,n,<strong>D</strong>,o,n,e,d): how would I get the output of 4 letters or more that are English words in an array called "English Dictionary" which must contains the middle letter "D" - like "abandon", "bond", "dead"...</p>
  
  <p>Is the best method lots and lots of loops and if statements or is there something in xcode/ objective c which I can use to just get the list of 4 letters and then have all possible arrangements of it...</p>
  
  <p>Cheers  </p>