我是 Mac 用户,我正在尝试为 iPhone 开发一个应用程序,它可以备份通讯录并通过电子邮件发送。它将数据作为 .csv 文件发送。
当我在 Mac Excel 和 Windows Excel 中打开这个 .csv 文件时,它似乎非常不同。例如,下面显示的代码都会有所不同......
当我这样做时:
[stringToWrite appendFormat:@";"];
在 Windows Excel 中......它显示正常。我的意思是在 Excel 中它是这样显示的;
name (other cell) phone (other cell) mail
name2 (other cell) phone2(other cell) mail2
但在 Mac Excel 中它看起来像;
name;phone;mail (all in one cell)
name2;phone2;mail2(all in one cell)
当我做这样的代码时;
[stringToWrite appendFormat:@","];
在 Mac Excel 中,它显示正常。我的意思是在 Excel 中它是这样显示的;
name (other cell) phone (other cell) mail
name2 (other cell) phone2(other cell) mail2
但在 Windows Excel 中它看起来像;
name,phone,mail (all in one cell)
name2,phone2,mail2(all in one cell)
任何人都可以帮忙吗?