Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit c16da9e

Browse files
committed
Updated to Swift 2.2 syntax
1 parent 0232cc3 commit c16da9e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sample App/Sample App/MasterViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MasterViewController: UITableViewController {
1919
// Do any additional setup after loading the view, typically from a nib.
2020
self.navigationItem.leftBarButtonItem = self.editButtonItem()
2121

22-
let addButton = UIBarButtonItem(barButtonSystemItem: .Add, target: self, action: "insertNewObject:")
22+
let addButton = UIBarButtonItem(barButtonSystemItem: .Add, target: self, action: #selector(insertNewObject(_:)))
2323
self.navigationItem.rightBarButtonItem = addButton
2424
if let split = self.splitViewController {
2525
let controllers = split.viewControllers

Zephyr.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Zephyr"
3-
s.version = "1.4.5"
3+
s.version = "1.5.0"
44
s.summary = "Effortlessly synchronize NSUserDefaults over iCloud"
55

66
s.description = <<-DESC

Zephyr.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public class Zephyr: NSObject {
105105
*/
106106
override init() {
107107
super.init()
108-
NSNotificationCenter.defaultCenter().addObserver(self, selector: "keysDidChangeOnCloud:", name: NSUbiquitousKeyValueStoreDidChangeExternallyNotification, object: nil)
109-
NSNotificationCenter.defaultCenter().addObserver(self, selector: "willEnterForeground:", name:
108+
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(keysDidChangeOnCloud(_:)), name: NSUbiquitousKeyValueStoreDidChangeExternallyNotification, object: nil)
109+
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(willEnterForeground(_:)), name:
110110
UIApplicationWillEnterForegroundNotification, object: nil)
111111

112112
NSUbiquitousKeyValueStore.defaultStore().synchronize()

0 commit comments

Comments
 (0)