Closed YoonJuHo closed 6 years ago
NotificationCenter를 활용하여 결합도를 낮춰서 구조를 바꿈 Controller에서 업데이트 발생 -> DataStore에 CRUD메서드 실행 -> DataStore CRUD메서드 안에서 DB와 Alarms(메모리) 배열 수정 -> DataStore에서 post AlarmDidChange -> Controller에서 AlarmDidChange를 수신 -> tableView 리로드
Add나 Inactive할 때 동기화할 필요가 있습니다!!!