Closed pointphoton closed 8 years ago
I can't review the picture.
Sorry, Images are fixed.
override func awakeFromNib() { if let controller = self.storyboard?.instantiateViewControllerWithIdentifier("Controller1ViewController") { self.mainViewController = controller } if let controller = self.storyboard?.instantiateViewControllerWithIdentifier("LeftViewController") { self.leftViewController = controller } super.awakeFromNib() }
Xcode is giving below exception, if I call this fuction in Controller1.
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.
Thanks in advance. Have a nice day.
My problem is solved.
1- awakeFromNib() is removed.
2- Controller1 doesn't extends SlideMenuController anymore.
3- And I call these codes before controller1 is not opened.
` let storyboard = UIStoryboard(name: "Main", bundle: nil)
let mainViewController = storyboard.instantiateViewControllerWithIdentifier("Controller1ViewController") as! Controller1
let leftViewController = storyboard.instantiateViewControllerWithIdentifier("LeftViewController") as! LeftViewController
let nvc: UINavigationController = UINavigationController(rootViewController: mainViewController)
leftViewController.mainViewController = nvc
let slideMenuController = SlideMenuController(mainViewController:nvc, leftMenuViewController: leftViewController)
// navigate to next view
self.presentViewController(slideMenuController, animated: false, completion: nil)`
01 .
02 .
03 .
Hi Good days..
*\ Thank you in advance. Can you suggest me anything?