Skip to content

Commit

Permalink
Merge pull request #75 from devxoul/swift-2.2
Browse files Browse the repository at this point in the history
Migrate to Swift 2.2
  • Loading branch information
devxoul committed Apr 11, 2016
2 parents ce669e7 + 8d1f3b6 commit 701745e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions JLToast/JLToastWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ public class JLToastWindow: UIWindow {
self.handleRotate(UIApplication.sharedApplication().statusBarOrientation)

NSNotificationCenter.defaultCenter().addObserver(self,
selector: "bringWindowToTop:",
selector: #selector(self.bringWindowToTop),
name: UIWindowDidBecomeVisibleNotification,
object: nil
)
NSNotificationCenter.defaultCenter().addObserver(self,
selector: "statusBarOrientationWillChange",
selector: #selector(self.statusBarOrientationWillChange),
name: UIApplicationWillChangeStatusBarOrientationNotification,
object: nil
)
NSNotificationCenter.defaultCenter().addObserver(self,
selector: "statusBarOrientationDidChange",
selector: #selector(self.statusBarOrientationDidChange),
name: UIApplicationDidChangeStatusBarOrientationNotification,
object: nil
)
Expand Down
2 changes: 1 addition & 1 deletion JLToastDemo/RootViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RootViewController: UIViewController {
button.sizeToFit()
button.center.x = self.view.frame.width / 2
button.center.y = 60
button.addTarget(self, action: "showButtonTouchUpInside", forControlEvents: UIControlEvents.TouchUpInside)
button.addTarget(self, action: #selector(self.showButtonTouchUpInside), forControlEvents: .TouchUpInside)
self.view.addSubview(button)
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
JLToast - Toast for Swift
=========================

![Swift 2.0](https://img.shields.io/badge/Swift-2.0-orange.svg)
![Swift 2.0](https://img.shields.io/badge/Swift-2.2-orange.svg)
[![CocoaPods](http://img.shields.io/cocoapods/v/JLToast.svg?style=flat)](http://cocoapods.org/?q=name%3AJLToast%20author%3Adevxoul)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

Expand Down

0 comments on commit 701745e

Please sign in to comment.