Commit 56be7e2d by adamdahan

issue-16: New convenience method

parent ee61c21c
...@@ -316,7 +316,7 @@ public class SideNavController: MaterialViewController, UIGestureRecognizerDeleg ...@@ -316,7 +316,7 @@ public class SideNavController: MaterialViewController, UIGestureRecognizerDeleg
} }
/** /**
:name: init :name: init
*/ */
public convenience init(mainViewController: UIViewController, leftViewController: UIViewController, bottomViewController: UIViewController, rightViewController: UIViewController) { public convenience init(mainViewController: UIViewController, leftViewController: UIViewController, bottomViewController: UIViewController, rightViewController: UIViewController) {
self.init() self.init()
...@@ -329,6 +329,19 @@ public class SideNavController: MaterialViewController, UIGestureRecognizerDeleg ...@@ -329,6 +329,19 @@ public class SideNavController: MaterialViewController, UIGestureRecognizerDeleg
setupBottomView() setupBottomView()
setupRightView() setupRightView()
} }
/**
:name: init
*/
public convenience init(mainViewController: UIViewController, bottomViewController: UIViewController, rightViewController: UIViewController) {
self.init()
self.mainViewController = mainViewController
self.bottomViewController = bottomViewController
self.rightViewController = rightViewController
setupView()
setupBottomView()
setupRightView()
}
// //
// :name: viewDidLoad // :name: viewDidLoad
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment