自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

實(shí)現(xiàn)可視化的各種手勢(shì)操作

移動(dòng)開(kāi)發(fā)
實(shí)現(xiàn)可視化的各種手勢(shì)操作,也就是給手勢(shì)操作添加軌跡效果,包括點(diǎn)擊、滑動(dòng)、長(zhǎng)按等等。

源碼簡(jiǎn)介

 

實(shí)現(xiàn)可視化的各種手勢(shì)操作,也就是給手勢(shì)操作添加軌跡效果,包括點(diǎn)擊、滑動(dòng)、長(zhǎng)按等等。

 

源碼運(yùn)行截圖

 

 代碼片段

  1. _- (COSTouchVisualizerWindow *)window 
  2.   static COSTouchVisualizerWindow *customWindow = nil; 
  3.   if (!customWindow) { 
  4.     customWindow = [[COSTouchVisualizerWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 
  5.     [customWindow setFillColor:[UIColor yellowColor]]; 
  6.     [customWindow setStrokeColor:[UIColor purpleColor]]; 
  7.     [customWindow setTouchAlpha:0.4]; 
  8.       
  9.     [customWindow setRippleFillColor:[UIColor yellowColor]]; 
  10.     [customWindow setRippleStrokeColor:[UIColor purpleColor]]; 
  11.     [customWindow setRippleAlpha:0.1]; 
  12.   } 
  13.   return customWindow; 
  14.   
  15. - (void)COSTouchVisualizerWindow_commonInit { 
  16.   self.strokeColor = [UIColor blackColor]; 
  17.   self.fillColor = [UIColor whiteColor]; 
  18.   
  19.   self.rippleStrokeColor = [UIColor whiteColor]; 
  20.   self.rippleFillColor = [UIColor blueColor]; 
  21.   
  22.   self.touchAlpha   = 0.5
  23.   self.fadeDuration = 0.3
  24.   
  25.   self.rippleAlpha = 0.2
  26.   self.rippleFadeDuration = 0.2
  27.   
  28.   self.stationaryMorphEnabled = YES; 
  29.   
  30.   [[NSNotificationCenter defaultCenter] addObserver:self 
  31.                                            selector:@selector(screenConnect:) 
  32.                                                name:UIScreenDidConnectNotification 
  33.                                              object:nil]; 
  34.   
  35.   [[NSNotificationCenter defaultCenter] addObserver:self 
  36.                                            selector:@selector(screenDisconnect:) 
  37.                                                name:UIScreenDidDisconnectNotification 
  38.                                              object:nil]; 
  39.   
  40.   // Set up active now, in case the screen was present before the window was created (or application launched). 
  41.   [self updateFingertipsAreActive]; 

源碼鏈接:http://down.51cto.com/data/1968752

責(zé)任編輯:chenqingxiang 來(lái)源: 網(wǎng)絡(luò)整理
相關(guān)推薦

2017-10-14 13:54:26

數(shù)據(jù)可視化數(shù)據(jù)信息可視化

2020-03-11 14:39:26

數(shù)據(jù)可視化地圖可視化地理信息

2014-05-28 15:23:55

Rave

2021-09-27 08:31:01

數(shù)據(jù)可視化柱狀圖折現(xiàn)圖

2013-12-06 10:05:29

數(shù)據(jù)中心網(wǎng)絡(luò)操作可視化

2009-08-31 13:32:12

2019-08-06 10:35:25

Python時(shí)間序列可視化

2022-08-26 09:15:58

Python可視化plotly

2009-04-21 14:26:41

可視化監(jiān)控IT管理摩卡

2021-02-01 22:01:57

Coco工具macOS

2017-03-28 14:57:23

kylinsuperset可視化

2022-09-29 11:16:21

Python數(shù)據(jù)可視化

2015-08-20 10:06:36

可視化

2022-03-01 10:29:44

Kubernetes容器

2010-06-09 15:09:57

IP網(wǎng)絡(luò)

2017-02-23 09:42:53

大數(shù)據(jù)數(shù)據(jù)可視化技術(shù)誤區(qū)

2022-07-08 15:00:04

農(nóng)業(yè)噴灌項(xiàng)目鴻蒙

2018-04-03 14:42:46

Python神經(jīng)網(wǎng)絡(luò)深度學(xué)習(xí)

2017-11-15 09:41:14

數(shù)據(jù)可視化數(shù)據(jù)科大數(shù)據(jù)

2022-06-06 21:46:32

Kubernetes網(wǎng)絡(luò)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)