natsu1211 / Alarm-ios-swift

clone of the official IOS clock alarm app written in swift
MIT License
388 stars 116 forks source link

Tableview not reload data when add alarm ( ios 14) #23

Open trungld123 opened 3 years ago

trungld123 commented 3 years ago

when add alarm from main Screen, tableview not reloaddata. issue in ios14

davidlin2k commented 2 years ago

Replace unwindFromAddEditAlarmView in MainAlarmViewController with the following

@IBAction func unwindFromAddEditAlarmView(_ segue: UIStoryboardSegue) {
    isEditing = false

    alarmModel = Alarms()
    self.tableView.reloadData()
}