我有這樣的代碼將圖像保存在我的應用程序排序在NSHomeDirectory
NSString *fileName = [NSString stringWithFormat:@"2013_%d_a_%d",count,indexToInsert];
NSString *pngPath = [NSHomeDirectory() stringByAppendingPathComponent:[@"Documents/" stringByAppendingString:fileName]];
NSData *imageData = UIImagePNGRepresentation(imageToAdd);
[imageData writeToFile:pngPath atomically:YES];
在我的日誌
我看到這一點:
"2013_10_a_1",
"2013_1_a_1",
"2013_2_a_1",
"2013_3_a_1",
"2013_4_a_1",
"2013_5_a_1",
"2013_6_a_1",
"2013_7_a_1",
"2013_8_a_1",
"2013_9_a_1"
爲什麼「2013_10_1」是在頂部?它位於位置0,我想要位置9(10個元素)
啊!!!!!!!!! ! – CrazyDev