how to store CGPoint in core data?
-
20-12-2019 - |
Question
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.
Solution
Alteratively, rather than a string, you could create an Entity to represent a point with it's x
and y
values.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow