문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top