Commit bede39ef authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent 6d626ed9
......@@ -105,24 +105,24 @@ class SHRecordListViewController: SHBaseViewController {
}, confirm: "删除", confirmTitleColor: UIColor.red, confirmBlock: { message in
var list = CRUserDefaults.recordList
let deleteModel = self.dataSources[indexPath.row]
for (index, dic) in list!.enumerated(){
if dic["pathFile"] as! String == deleteModel.pathFile{
// var subDic = dic
// subDic["delete"] = true
// subDic["deleteDate"] = Date.init()
// list![index] = subDic
list!.remove(at: index)
break
if var list = CRUserDefaults.recordList {
for (index, dic) in list.enumerated(){
if dic["pathFile"] as! String == deleteModel.pathFile{
// var subDic = dic
// subDic["delete"] = true
// subDic["deleteDate"] = Date.init()
// list![index] = subDic
list.remove(at: index)
break
}
}
CRUserDefaults.recordList = list
}
CRUserDefaults.recordList = list
let keyValueStore = NSUbiquitousKeyValueStore.default
list = keyValueStore.object(forKey: "list") as? [Dictionary<String, Any>]
let list = keyValueStore.object(forKey: "list") as? [Dictionary<String, Any>]
if var list = list {
for (index, dic) in list.enumerated(){
......
......@@ -141,6 +141,11 @@ class SHRecordViewController: SHBaseViewController{
return
}
if recorder?.isRecording == true {
let s = self.recognitionTaskText.first! + "\n" + (currentTxt ?? "") + "\n"
self.recognitionTaskText[0] = s
}
stopRecord()
save = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment