我有一种看法。单击一下,它将显示文本(它是UIView
实例)。现在我想对其进行转换。转换它。但是两种情况下的接触点应该相同(在转换之后和转换之前)。这里的接触点在转换之后发生了变化。什么我应该怎么做?请帮助我。谢谢。提示也将不胜感激。代码:
[UIView beginAnimations:@"tap stopped" context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationDelegate:self];
angle = (layer.startAngle + layer.endAngle)/2;
[UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:context:)];
self.transform = CGAffineTransformMakeRotation([self rotationThetaForNewTheta:90 andOldTheta:angle]);
[UIView commitAnimations];
title = [NSString stringWithFormat:@"Layer %d",i+1];
UIFont* font = [UIFont systemFontOfSize:15];
self.popup = [[SNPopupView alloc] initWithString:title withFontOfSize:font.pointSize];
[popup addTarget:self action:@selector(didTouchPopupView:)];
[popup setDelegate:self];
[popup showAtPoint:touchPoint inView:self animated:YES];
在这里我添加了弹出视图。转换后,它正在改变原点。