Procházet zdrojové kódy

Merge pull request #238 from SebastianOsinski/fix/ios_sample_wrong_ibaction_selector

Fix crash in iOS Sample app when `StopServer` button is pressed
Damian Kołakowski před 9 roky
rodič
revize
94aa295ce6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      XCode/SwifterSampleiOS/ViewController.swift

+ 1 - 1
XCode/SwifterSampleiOS/ViewController.swift

@@ -22,7 +22,7 @@ class ViewController: UIViewController {
         }
     }
     
-    @IBAction func likedThis(sender: UIButton) {
+    @IBAction func likedThis(_ sender: UIButton) {
         self.server?.stop()
         self.server = nil
     }