SWRevealViewController icon indicating copy to clipboard operation
SWRevealViewController copied to clipboard

Load Map

Open syedrazackimran opened this issue 7 years ago • 1 comments

Archive.zip

Hi, Now i try to implement your Class! i faced some issues! actually, HomeViewController is contain Map, when user tap redirects to HomeViewController via menu map not loading it showing only white screen! func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { var controller : UIViewController! tableView.deselectRow(at: indexPath, animated: true) switch indexPath.row { case 0: if HomeController == nil { HomeController = self.storyboard!.instantiateViewController(withIdentifier: "HomeVCID") as? UINavigationController } controller = HomeController break } revealViewController().pushFrontViewController(controller, animated:true) }

because i used this, if I didn't use this memory warning app will crash due to memory warning! and also from menu user redirect to another class from that class he needs to redirect HomeViewController and load map!

override func viewWillAppear(_ animated: Bool) { self.title = "Donate" self.show_alert(cancel: "Cancel", sucess: "Yes", image: #imageLiteral(resourceName: "splash"), titleName: "Give Blood, Save Life's", content: "Do you want to become an Donor?", is_OneButton: false) { (isCancel) in if !isCancel { }else{ if let HomeController = self.storyboard!.instantiateViewController(withIdentifier: "HomeVCID") as? UINavigationController { self.revealViewController().setFront(HomeController, animated: true) } } } }

syedrazackimran avatar Oct 04 '17 08:10 syedrazackimran

Archive 2.zip

Hi, Now i try to implement your Class! i faced some issues! actually, HomeViewController is contain Map, when user tap redirects to HomeViewController via menu map not loading it showing only white screen! func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { var controller : UIViewController! tableView.deselectRow(at: indexPath, animated: true) switch indexPath.row { case 0: if HomeController == nil { HomeController = self.storyboard!.instantiateViewController(withIdentifier: "HomeVCID") as? UINavigationController } controller = HomeController break } revealViewController().pushFrontViewController(controller, animated:true) } because i used this, if I didn't use this memory warning app will crash due to memory warning! and also from menu user redirect to another class from that class he needs to redirect HomeViewController and load map!

override func viewWillAppear(_ animated: Bool) { self.title = "Donate" self.show_alert(cancel: "Cancel", sucess: "Yes", image: #imageLiteral(resourceName: "splash"), titleName: "Give Blood, Save Life's", content: "Do you want to become an Donor?", is_OneButton: false) { (isCancel) in if !isCancel { }else{ if let HomeController = self.storyboard!.instantiateViewController(withIdentifier: "HomeVCID") as? UINavigationController { self.revealViewController().setFront(HomeController, animated: true) } } } }

syedrazackimran avatar Oct 05 '17 02:10 syedrazackimran