我有一个小问题。我想接收屏幕上的所有触摸,并为每个触摸生成一个新视频。问题是,一旦放置视频,它就会拦截接触点。我尝试了各种值进入 locationInView 但到目前为止没有任何运气。我找对地方了吗?
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
CGPoint pointOnScreen = [[touches anyObject] locationInView:self.view];
C4Movie *player = [C4Movie movieNamed:@"inception.mov"];
player.shouldAutoplay = YES;
player.loops = YES;
player.center = pointOnScreen;
[self.canvas addMovie:player];
}
@end