Made alarmTone editable, but localRead() nil error.

This commit is contained in:
Aaron
2021-01-27 22:44:16 -05:00
parent 240e23743b
commit 83d304e215
4 changed files with 24 additions and 3 deletions
@@ -62,6 +62,15 @@ class AddAlarmViewController: EndEditingOnReturn
}
}
}
//Sets alarm tone
if let toneName = alarmCell.toneLabel.text {
for index in 0...ringtones.count-1 {
if toneName == ringtones[index].name {
ringtonePicker.selectRow(index, inComponent: 0, animated: true)
}
}
}
}
}