Skip to content

Commit

Permalink
Merge pull request #30 from T3rdW/master
Browse files Browse the repository at this point in the history
更新了2个版本语法问题
  • Loading branch information
johnlui committed May 13, 2016
2 parents 4e14752 + 0b32a10 commit 45bf94c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SwiftNotice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class SwiftNotice: NSObject {
windows.append(window)

if autoClear {
let selector = Selector("hideNotice:")
let selector = #selector(SwiftNotice.hideNotice(_:))
self.performSelector(selector, withObject: window, afterDelay: NSTimeInterval(autoClearTime))
}
}
Expand All @@ -144,7 +144,7 @@ class SwiftNotice: NSObject {
dispatch_source_set_event_handler(timer, { () -> Void in
let name = imageNames[timerTimes % imageNames.count]
iv.image = name
timerTimes++
timerTimes += 1
})
dispatch_resume(timer)
}
Expand Down Expand Up @@ -237,7 +237,7 @@ class SwiftNotice: NSObject {
windows.append(window)

if autoClear {
let selector = Selector("hideNotice:")
let selector = #selector(SwiftNotice.hideNotice(_:))
self.performSelector(selector, withObject: window, afterDelay: NSTimeInterval(autoClearTime))
}
}
Expand Down

0 comments on commit 45bf94c

Please sign in to comment.