ispreedSheet ios编辑类似表格界面在ipad上

能解决什么问题,第一是公式,第二是格式和excel兼容,缺点,编辑格子好慢,是否设置快捷键直接跳跃格子,enter,或某个键

数据结果很容易,多维数组搞定。加上要显示的label的位置。

NSArray *firstArray, *secondArray, *thirdArray;

NSMutableString *csv = [NSMutableString stringWithString:@"Name,Date,Miles"];

NSUInteger count = [firstArray count];
// provided all arrays are of the same length
for (NSUInteger i=0; i<count; i++ ) {
    [csv appendFormat:@"\n\"%@\",%@,\"%d\"",
        [firstArray objectAtIndex:i],
        [secondArray objectAtIndex:i],
        [[thirdArray objectAtIndex:i] integerValue]
     ];
    // instead of integerValue may be used intValue or other, it depends how array was created
}

NSString *yourFileName = @"your filename";
NSError *error;
BOOL res = [csv writeToFile:yourFileName atomically:YES encoding:NSUTF8StringEncoding error:&error];

if (!res) {
    NSLog(@"Error %@ while writing to file %@", [error localizedDescription], yourFileName );
}
iSpreadsheet Free (Mobile Spreadsheet。。。原来就是documents 2一家的么。

加上CSV解析

You can use a wonderful library for CSV Parsing

https://github.com/davedelong/CHCSVParser

Try it. It is simple

For the coordiane validation, you can simply include a checking. The latitude ranges in between -90 to +90. Longitude lies between -180 to +180. Include a simple validation for this

This is a nice CSV parser with support for streams: https://github.com/davedelong/CHCSVParser

If you are parsing a file that comes from the web, then you could also usehttps://github.com/acerbetti/AFCSVRequestOperation which is using the AFNetworking library for downloading the file.


加上gridview呈现csv数据
NSMatrix and NSCollectionView are not available on iOS. Have a look at AQGridView:https://github.com/AlanQuatermain/AQGridView
自己用scrollview也可以,看d 2目前实现的不好,延迟很严重。

你可能感兴趣的:(iOS)