try to compatible with Swift 3.1

This commit is contained in:
Bob Sun 2017-02-15 15:29:06 +08:00
parent e120766d9a
commit 4968f3e867
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
github "SVProgressHUD/SVProgressHUD" github "SVProgressHUD/SVProgressHUD"
github "radex/SwiftyUserDefaults" github "radex/SwiftyUserDefaults"
github "libgit2/objective-git" github "libgit2/objective-git"
github "zahlz/SwiftPasscodeLock" "master" github "mssun/SwiftPasscodeLock" "master"
github "bitserf/FavIcon" github "bitserf/FavIcon"

View file

@ -80,6 +80,6 @@ class LabelTableViewCell: UITableViewCell {
func openLink(_ sender: Any?) { func openLink(_ sender: Any?) {
UIPasteboard.general.string = password?.password UIPasteboard.general.string = password?.password
UIApplication.shared.open(NSURL(string: cellData!.content) as! URL, options: [:], completionHandler: nil) UIApplication.shared.open(URL(string: cellData!.content)!, options: [:], completionHandler: nil)
} }
} }