NSArray _sectionDataStr; _sectionDataStr = [[NSArray alloc] initWithObjects: [NSArray arrayWithObjects:@"Item1", @"Item2", nil], [NSArray arrayWithObjects:@"Item1", @"Item2", @"Item3", nil], [NSArray arrayWithObjects:@"Item1", @"Item2", @"Item3", @"Item4", nil], [NSArray arrayWithObjects:@"Item1", @"Item2", @"Item3", @"Item4", @"Item5",nil], nil];
打印
NSArray * array; array = [_sectionDataStr objectAtIndex:0]; NSString* str = [array objectAtIndex:0]; NSLog(@"%@",str);
或
NSLog(@<span class="string">"%@"</span>,[[_sectionDataStr objectAtIndex:0] objectAtIndex:0]);
输出结果是:
Item1
© 著作权归作者所有
文章评论(0)