Skip to content

What happens if I don't call initializeMMKV? #751

Answered by lingol
hoangelec asked this question in Q&A
Discussion options

You must be logged in to vote

You should initialize MMKV in the main thread.
Otherwise, chances are you might get the first MMKV instance in a child thread, and that will trigger a runtime warning about accessing UIKit properties in child threads.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hoangelec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants