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

新闻列表页,显示新闻的已读未读状态 #10

Open
yanyin1986 opened this issue Jul 23, 2019 · 0 comments
Open

新闻列表页,显示新闻的已读未读状态 #10

yanyin1986 opened this issue Jul 23, 2019 · 0 comments
Labels
iOS issue for iOS client type: enhancement New feature or request

Comments

@yanyin1986
Copy link
Member

利用 UserDefaults 简单实现新闻的已读未读状态。

引用

UserDefaults

https://www.jianshu.com/p/3796886b4953
https://www.jianshu.com/p/99660cadfe16

文集

https://www.jianshu.com/u/23dd8d9701bf

同步UserDefaults的时机

https://stackoverflow.com/questions/9647931/nsuserdefaults-synchronize-method

Waits for any pending asynchronous updates to the defaults database and returns;
This method is unnecessary and shouldn't be used.

好像这个方法过期了,不需要再主动调用了

@yanyin1986 yanyin1986 added type: enhancement New feature or request iOS issue for iOS client labels Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS issue for iOS client type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant