Skip to content
Ilho Ahn edited this page Nov 19, 2013 · 2 revisions

##Summary NSArray Utilities.

Organization

+ (NSMutableArray *) ArrayWithTwoPerRow:(NSArray *)array;

Make array with two object per row.

+ (NSMutableArray ) ArrayWith:(NSArray) array itemsPer1Row:(NSInteger) num;

Example)

   NSArray *ttt = [[NSArray alloc] initWithObjects:@"0",@"1",@"2",@"3",@"4",@"5",@"6",@"7", nil];
   [TestKit debugKey:@"mutli items in 1row" andVal:[ArrayUtil ArrayWith:ttt itemsPer1Row:3]];

Result)

[TEST KIT] [DEBUG] mutli items in 1row : (
        (
        0,
        1,
        2
    ),
        (
        3,
        4,
        5
    ),
        (
        6,
        7
    )
)

Version

Version 0.0.1 Build 61 Release 1

Clone this wiki locally