源码介绍实现各种视觉手势操作,即为手势操作添加轨迹效果,包括点击、滑动、长按等。源码运行截图代码片段_-(COSTouchVisualizerWindow*)window{staticCOSTouchVisualizerWindow*customWindow=nil;如果(!customWindow){customWindow=[[COSTouchVisualizerWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]];[customWindowetFillColor:[UIColoryellowColor]];[customWindowsetStrokeColor:[UIColorpurpleColor]];[customWindowsetTouchAlpha:0.4];[customWindowsetRippleFillColor:[UIColoryellowColor]];[customWindowsetRippleStrokeColor:[UIColorpurpleColor]];[customWindowsetRippleAlpha:0.1];}returncustomWindow;}-(void)COSTouchVisualizerWindow_commonInit{self.strokeColor=[UIColorblackColor];self.fillColor=[UIColorwhiteColor];self.rippleStrokeColor=[UIColorwhiteColor];self.rippleFillColor=[UIColorblueColor];self.touchAlpha=0.5;self.fadeDuration=0.3;self.rippleAlpha=0.2;self.rippleFadeDuration=0.2;self.stationaryMorphEnabled=YES;[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(screenConnect:)name:UIScreenDidConnectNotificationobject:nil];[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(screenDisconnect:)name:UIScreenDidDisconnectNotificationobject:nil];//Setupactivenow,incasethescreenwaspresentbeforethewindowwascreated(orapplicationlaunched).[selfupdateFingertipsAreActive];}源码链接:http://down.51cto.com/data/1968752
