mirror of
https://github.com/joeblau/COSTouchVisualizer.git
synced 2024-09-11 12:36:58 +03:00
a little logic issue
create rippleView while rootViewController's view not contains it.
This commit is contained in:
parent
10d1892c95
commit
d8a6b66b86
@ -209,9 +209,10 @@
|
||||
{
|
||||
// Generate ripples
|
||||
COSTouchSpotView *rippleView = (COSTouchSpotView *)[self.overlayWindow.rootViewController.view viewWithTag:touch.hash];
|
||||
|
||||
rippleView = [[COSTouchSpotView alloc] initWithImage:self.rippleImage];
|
||||
[self.overlayWindow.rootViewController.view addSubview:rippleView];
|
||||
if(!rippleView){
|
||||
rippleView = [[COSTouchSpotView alloc] initWithImage:self.rippleImage];
|
||||
[self.overlayWindow.rootViewController.view addSubview:rippleView];
|
||||
}
|
||||
|
||||
rippleView.alpha = self.rippleAlpha;
|
||||
rippleView.center = [touch locationInView:self.overlayWindow.rootViewController.view];
|
||||
@ -401,4 +402,4 @@
|
||||
|
||||
@implementation COSTouchSpotView
|
||||
|
||||
@end
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user