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> I need to do this dynamically Question Sample: 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: ... Not sure that this code works but it may be giving you an idea.
NSMutableArray * first = [NSMutableArray new]; NSMutableArray * Second = [NSMutableArray new]; NSMutableArray * Third = [NSMutableArray new];
NSMutableArray * based on dynamic = groupCount
Select group group, name from sample if (groupNumber == 0) {[first addObject: name]; } Else if (groupNumber == 1) {[second addObject: name]; }
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]; }
Comments
Post a Comment