0

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?

Priya
  • 61
  • 1
  • 6
  • You don't need to know the position of each view to draw circles inside them - the drawing will be relative to the view. – MusiGenesis Mar 23 '11 at 11:48

2 Answers2

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