how to store CGPoint in core data?
-
20-12-2019 - |
質問
I want to store the tapped location of view controller in core data. I am using UITapGestureRecognizer
.
As user taps anywhere in the view,i want that location to get saved in core data.
How can i do this? Any idea will be helpful.
解決
Alteratively, rather than a string, you could create an Entity to represent a point with it's x
and y
values.
所属していません StackOverflow