From 5043705ac1389a0c12496c1bd40723e6a01d9ed8 Mon Sep 17 00:00:00 2001 From: Suyeol Jeon Date: Tue, 12 Apr 2016 02:31:32 +0900 Subject: [PATCH] Use #selector --- JLToast/JLToastCenter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JLToast/JLToastCenter.swift b/JLToast/JLToastCenter.swift index f6ae344..ef30cf4 100644 --- a/JLToast/JLToastCenter.swift +++ b/JLToast/JLToastCenter.swift @@ -41,7 +41,7 @@ import UIKit self._queue.maxConcurrentOperationCount = 1 NSNotificationCenter.defaultCenter().addObserver( self, - selector: "deviceOrientationDidChange:", + selector: #selector(self.deviceOrientationDidChange), name: UIDeviceOrientationDidChangeNotification, object: nil )