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