-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wangyanchang
committed
Feb 26, 2019
1 parent
07d589f
commit 7984acf
Showing
7 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
Watch-App-Sampler WatchKit Extension/DemoController/GestureRecognizerController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// GestureRecongnizerController.swift | ||
// Watch-App-Sampler WatchKit Extension | ||
// | ||
// Created by DCSnail on 2019/2/20. | ||
// Copyright © 2019 DCSnail. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import WatchKit | ||
|
||
class GestureRecognizerController: WKInterfaceController { | ||
|
||
@IBOutlet var tapLabel: WKInterfaceLabel! | ||
@IBOutlet var longPressLabel: WKInterfaceLabel! | ||
@IBOutlet var swipeLabel: WKInterfaceLabel! | ||
@IBOutlet var panLabel: WKInterfaceLabel! | ||
|
||
|
||
@IBAction func tapAction(_ sender: Any) { | ||
tapLabel.setText("Taped!") | ||
} | ||
|
||
@IBAction func longPressAction(_ sender: Any) { | ||
longPressLabel.setText("Long Pressed!") | ||
} | ||
|
||
@IBAction func swipeAction(_ sender: Any) { | ||
swipeLabel.setText("Swiped!") | ||
} | ||
|
||
@IBAction func panAction(_ sender: Any) { | ||
panLabel.setText("Panned!") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+7.56 KB
(100%)
...odeproj/project.xcworkspace/xcuserdata/dcsnail.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.