I have an NSMutablearray of objects. the number of objects is set by user. in c++ I would use a for cycle and the 'new' command.something like this:
int fromuser, a;
for(a=0;a<fromuser;a++){
array addobject:(new class obj)
}
what do I need to do in obj c since there is no new?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…