ios - Dynamic Multiple NSMutableArray -


I have a scenario that I will do a query in SQLite and I need to declare a multiple array based on that number My problem is so basic to the groups:

1.) How to declare multiple arrays

Example < / p>

  NSMutableArray * first = [NSMutableArray new]; NSMutableArray * Second = [NSMutableArray new]; NSMutableArray * Third = [NSMutableArray new];   

I need to do this dynamically

  NSMutableArray * based on dynamic = groupCount   

Question Sample:

  Select group group, name from sample if (groupNumber == 0) {[first addObject: name]; } Else if (groupNumber == 1) {[second addObject: name]; }    

Definitely what you are trying to do, in fact, but Obviously [I, at least] must use ARM containing ARR, then you can drag the index you want from:

  NSMutableArray * bigArray = [[NSMutableArray alloc] In this ];   

...

  if (group name number & lt; [large counting]) {NSMutableArray * workArray = [bigger object atxax: groupname]; [Work add object: name]; } And {NSMutableArray * newArray = [NSMutableArray alloc] init]; [Newer add object: name]; [BigAbject: NewAra]; }   

Not sure that this code works but it may be giving you an idea.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -