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

@ -80,6 +80,6 @@ class LabelTableViewCell: UITableViewCell {
func openLink(_ sender: Any?) {
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)
}
}