title: Error: Indexing expression is invalid because subscript type 'NSUInteger' is not an integral or objective c pointer type
body: <p>I have an array named "rankStrings" and I am trying to get the data from it at an index as below...</p>
  
  <pre><code>NSArray *rankStrings = @[@"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", @"9", @"10"];
  
  return [rankStrings[self.rank] stringByAppendingString:self.suit];
  </code></pre>
  
  <p>the "rank" is declared as...</p>
  
  <pre><code>@property (nonatomic) NSUInteger *rank;
  </code></pre>
  
  <p>I get error, "Indexing expression is invalid because subscript type 'NSUInteger' is not an integral or objective c pointer type".</p>
  
  <p>I tried using "NSInteger" or "int" instead of "NSUInteger", but it is still the same. </p>
  
  <p>Any help is much appreciated!!</p>