fork download
  1. let alertPrompt = UIAlertController(title: "Open App", message: "請選擇功能選項 「\(decodedURL)」", preferredStyle: .actionSheet)
  2. let goconfirmAction = UIAlertAction(title: "出發", style: UIAlertActionStyle.default, handler: { (action) -> Void in
  3.  
  4. if let url = URL(string: decodedURL) {
  5. if UIApplication.shared.canOpenURL(url) {
  6. UIApplication.shared.open(url, options: [:], completionHandler: nil)
  7. }
  8. }
  9. })
  10.  
  11. let RetunconfirmAction = UIAlertAction(title: "回家", style: UIAlertActionStyle.default, handler: { (action) -> Void in
  12.  
  13. if let url = URL(string: decodedURL) {
  14. if UIApplication.shared.canOpenURL(url) {
  15. UIApplication.shared.open(url, options: [:], completionHandler: nil)
  16. }
  17. }
  18. })
  19.  
  20. let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)
  21.  
  22. alertPrompt.addAction(goconfirmAction)
  23. alertPrompt.addAction(RetunconfirmAction)
  24. alertPrompt.addAction(cancelAction)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.swift:1:27: error: use of unresolved identifier 'UIAlertController'
        let alertPrompt = UIAlertController(title: "Open App", message: "請選擇功能選項 「\(decodedURL)」", preferredStyle: .actionSheet)
prog.swift:1:101: error: use of unresolved identifier 'decodedURL'
        let alertPrompt = UIAlertController(title: "Open App", message: "請選擇功能選項 「\(decodedURL)」", preferredStyle: .actionSheet)
prog.swift:2:31: error: use of unresolved identifier 'UIAlertAction'
        let goconfirmAction = UIAlertAction(title: "出發", style: UIAlertActionStyle.default, handler: { (action) -> Void in
prog.swift:2:69: error: use of unresolved identifier 'UIAlertActionStyle'
        let goconfirmAction = UIAlertAction(title: "出發", style: UIAlertActionStyle.default, handler: { (action) -> Void in
prog.swift:11:34: error: use of unresolved identifier 'UIAlertAction'
        let RetunconfirmAction = UIAlertAction(title: "回家", style: UIAlertActionStyle.default, handler: { (action) -> Void in
prog.swift:11:72: error: use of unresolved identifier 'UIAlertActionStyle'
        let RetunconfirmAction = UIAlertAction(title: "回家", style: UIAlertActionStyle.default, handler: { (action) -> Void in
prog.swift:20:28: error: use of unresolved identifier 'UIAlertAction'
        let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)
                           ^~~~~~~~~~~~~
prog.swift:20:66: error: use of unresolved identifier 'UIAlertActionStyle'
        let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)
                                                                 ^~~~~~~~~~~~~~~~~~
<unknown>:0: error: error opening input file 'prog.o' (No such file or directory
)
clang: error: no such file or directory: 'prog.o'
clang: error: no such file or directory: '@prog.autolink'
stdout
Standard output is empty