I have a class like this.
@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
And I have 2 array
NSMutableArray *pathArray;
NSMutableArray<PathArray*> *tempPathArray;
So the question is: How I can get the element from tempPathArray in a loop like this:
for ( int i=0; i<pathArray.count; i++ ) {
for( int j=0; j<tempPathArray.count; j++ ) {
pathArray[i].tempPathArray[j]???
}
}
Thanks for your help!