【发布时间】:2013-09-16 11:04:22
【问题描述】:
我有一个观点。单击一下,它将显示文本(它是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];
这里我添加了弹出视图。转换后,它正在改变原点。
【问题讨论】:
-
你能显示一些代码吗,你尝试了什么?
-
你如何检索接触点?