Up vote 0 down vote favorite share g+ share fb share tw.
We had some consultants build some code for us and the way they have it laid out is there is a UIScrollView, and a UIView inside it. There is another UIView icon that gets added as a subview to the scrollView based on a selection in a table. When this icon gets selected a popover is presented.
In the present popover code, they use the gesture's view to calculate the frame and where to present the popover. Now I'm tasked to present the popover with a selection in the table. When the zoom is = 1, that's pretty easy.
I just grab the size of the UIScrollView, calculate where I add the icon, then present the view from that icon. When I do it at a different zoom level though, my code falls apart since I don't know exactly where I am in the scrollView. I log the consultant's gesture from their method and they'll get origin.
Y position's of 5000. That's why I'm asking on how the locationInView works inside a scrollView to try to figure out where I am in the yPosition to present my popover from the right place. Any thoughts?
Thanks. - (void)handleSingleTap:(UIGestureRecognizer *)sender { id targetView = sender view; CGPoint point = sender locationInView:self. ScrollView; NSLog(@"point: %f %f", point.
X, point. Y); iphone uiscrollview uigesturerecognizer link|improve this question asked Mar 1 at 20:44Crystal2,353932 81% accept rate.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.