name change
This commit is contained in:
parent
ff21987c1e
commit
623e8312f2
@ -47,7 +47,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
|
||||
splitViewController.delegate = self
|
||||
splitViewController.preferredDisplayMode = .allVisible
|
||||
|
||||
let gr = UILongPressGestureRecognizer(target: self, action: #selector(pasteAndGo))
|
||||
let gr = UILongPressGestureRecognizer(target: self, action: #selector(pasteAndPlay))
|
||||
splitViewController.view.addGestureRecognizer(gr)
|
||||
|
||||
NotificationCenter.default.addObserver(forName: UIViewController.showDetailTargetDidChangeNotification, object: splitViewController, queue: nil) { [weak self] (notification) in
|
||||
@ -63,7 +63,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
|
||||
return true
|
||||
}
|
||||
|
||||
@objc func pasteAndGo(_ sender: UILongPressGestureRecognizer) {
|
||||
@objc func pasteAndPlay(_ sender: UILongPressGestureRecognizer) {
|
||||
if sender.state == .ended {
|
||||
(dvc as? DetailViewController)?.textView.text = UIPasteboard.general.string
|
||||
(dvc as? DetailViewController)?.play()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user