Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FavoriteList 변경될때마다 저장하도록 수정 #17

Open
jinios opened this issue Aug 25, 2018 · 1 comment
Open

FavoriteList 변경될때마다 저장하도록 수정 #17

jinios opened this issue Aug 25, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jinios
Copy link
Owner

jinios commented Aug 25, 2018

  • 지금은 앱 생명주기에따라 앱이 background로 갔을때나 종료될때에만 저장됨
  • FavoriteList의 상태가 변경될때마다 싱글톤 객체에 최산상태를 바로바로 적용하기
@jinios jinios added the bug Something isn't working label Aug 25, 2018
@jinios jinios self-assigned this Aug 25, 2018
@jinios
Copy link
Owner Author

jinios commented Aug 27, 2018

  • FavoriteList객체의 martList 프로퍼티가 변화될때마다 UserDefaults에 저장되도록 didSetDataStorage.save()호출하는 코드 추가
  • 앱 내 다른 화면 (ex. 검색화면)에서 FavoriteList상태를 바꾸고 메인화면으로 돌아갔을때 최신의 FavoriteList상태를 보여줄 수 있도록 viewWillAppear() 구현

jinios added a commit that referenced this issue Aug 27, 2018
- Add property observer to save data of Favorite List whenever martSet
property changes
- Implement viewWillAppear() in MainViewController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant