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 )