100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
iOS console : corrected display in case of network error
William Balcaencca614f87ce4
diff --git a/console/iOS/console/ViewController.swift b/console/iOS/console/ViewController.swiftindex 9616c8932..23595aab8 100644--- a/console/iOS/console/ViewController.swift+++ b/console/iOS/console/ViewController.swift@@ -23,18 +23,25 @@ class ViewController: UIViewController {}+ override func viewWillAppear(_ animated: Bool) {+ super.viewWillAppear(animated)+ if isInError {+ loginButton.isHidden = true+ } else {+ loginButton.isHidden = false+ }+ }+override func viewDidAppear(_ animated: Bool) {super.viewDidAppear(animated)if (!isInError) {showLoginPage()} else {- let loginButton = UIButton(type: .roundedRect)loginButton.setTitle("Login", for: .normal)loginButton.addTarget(self, action: #selector(login), for: .touchUpInside)loginButton.frame = self.view.frameself.view.addSubview(loginButton)}-}override func didReceiveMemoryWarning() {