-1

I have a Label named "Lable_Match" (in self.view)
and a UIView(in self.view).
In that View there are 1000+ labels.
and view is move using touch move method. and When user move View and he touch end that time check view subview lable is on the "Lable_Match" if any one lable is on this so the check text are same or not.

Majid Bashir
  • 558
  • 1
  • 4
  • 27

2 Answers2

0

I believe you want to use this method: [self.view convertRect:self.label.frame fromView:self.view.subview];

from this post: How to get the frame of a view inside another view?

This will give you the adjusted position of the label form your list of 1000+ labels. You can then compare that to the label of Label_match , then compare their text

Community
  • 1
  • 1
Alex
  • 3,861
  • 5
  • 28
  • 44
0

In response to your question my question is there any way to find the location of your label. If you have the fixed location for label then you can match current taped area and the label area and find the text. Or if you have a fixed sized label you can manipulate it and able to get the label text

Anupam Gupta
  • 623
  • 1
  • 7
  • 18