I have an array that stores models:
@property (nonatomic, strong) NSMutableArray *models;
and other properties of type "Model",like:
@property (nonatomic, strong) Model *mainModel;
@property (nonatomic, strong) Model *adModel;
@property (nonatomic, strong) Model *tradeModel;
@property (nonatomic, strong) Model *tradeOpenModel;
I want to assign every element of models to property, how can I do this by runtime instead of self.mainModel = models[0];
self.mainModel = models[0]?models[0].[models objectAtIndex:0]? You should explain you question more clearly.