diff --git a/DevSwift/LaunchKitSampleSwift/RootViewController.swift b/DevSwift/LaunchKitSampleSwift/RootViewController.swift index 47af184..2b59537 100644 --- a/DevSwift/LaunchKitSampleSwift/RootViewController.swift +++ b/DevSwift/LaunchKitSampleSwift/RootViewController.swift @@ -41,7 +41,6 @@ class RootViewController: UIViewController { print("App review card finished with flow result: \(NSStringFromViewControllerFlowResult(flowResult))") } } - } override func didReceiveMemoryWarning() { @@ -49,30 +48,6 @@ class RootViewController: UIViewController { // Dispose of any resources that can be recreated. } - func showUIWithName(uiName:String) { - LaunchKit.sharedInstance().uiManager.loadRemoteUIWithId(uiName, completion: { [unowned self] (viewController, error) -> Void in - if let viewController = viewController { - LaunchKit.sharedInstance().presentRemoteUIViewController(viewController, fromViewController: self, animated: true, dismissalHandler: nil); - } else { - let message: String - if let error = error { - let reason: String - if let errorMessage = error.userInfo["message"] as? String { - reason = errorMessage - } else { - reason = "" - } - message = "Could not load UI named '\(uiName)'.\n\nError \(error.code) - \(reason)" - } else { - message = "Could not load UI named '\(uiName)'." - } - let alertController = UIAlertController(title: "UI not found", message: message, preferredStyle: .Alert); - alertController.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil)) - self.presentViewController(alertController, animated: true, completion: nil) - } - }) - } - @IBAction func onShowAppReleaseNotesButtonTriggered(sender: UIButton) { LaunchKit.sharedInstance().forcePresentationOfAppReleaseNotesFromViewController(self) { (success) -> Void in print("Release notes shown on demand, finished with success: \(success)")