I have 4 views and i am drawing circles inside these views.The user is able to move these views.How can i get the position of each view?
Asked
Active
Viewed 373 times
2 Answers
0
If your views are instance variables in your class you can use view.frame or view.center but your question is quite low on details so I'm just shooting in the dark.

Kirby Todd
- 11,254
- 3
- 32
- 60
0
CGPoint origin = view.origin;
CGPoint center = view.center;
CGRect frame = view.frame;
All these things can be used to get what you want.

Vaibhav Tekam
- 2,344
- 3
- 18
- 27