Create CSV file in Swift and write to file
问题 I have an app I've made that has a UITableView with todoItems as an array for it. It works flawlessly and I have an export button that creates a CSV file from the UITableView data and emails it out: // Variables var toDoItems:[String] = [] var convertMutable: NSMutableString! var incomingString: String = "" var datastring: NSString! // Mail alert if user does not have email setup on device func showSendMailErrorAlert() { let sendMailErrorAlert = UIAlertView(title: "Could Not Send Email",