title: How to get element from an array inside other array
body: <p>I have a class like this.</p>
  
  <pre><code>@interface PathArray : NSObject
  @property (nonatomic) CGPoint start;
  @property (nonatomic) CGPoint end;
  @property (nonatomic) UIColor* color;
  @property (nonatomic) CGFloat pathWidth;
  - (instancetype) initWithStartPoint: (CGPoint)start andEnd: (CGPoint)end andColor: (UIColor *) color andPathWidth: (CGFloat) pathWidth;
  @end
  </code></pre>
  
  <p>And I have 2 array</p>
  
  <pre><code>NSMutableArray *pathArray;
  NSMutableArray&lt;PathArray*&gt; *tempPathArray;
  </code></pre>
  
  <p>So the question is: How I can get the element from tempPathArray in a loop like this:</p>
  
  <pre><code>for ( int i=0; i&lt;pathArray.count; i++ ) {
          for( int j=0; j&lt;tempPathArray.count; j++ ) {
              pathArray[i].tempPathArray[j]???
          }
      }
  </code></pre>
  
  <p>Thanks for your help!</p>