Showing
1 changed file
with
5 additions
and
3 deletions
... | @@ -15,19 +15,21 @@ import SwiftEventBus | ... | @@ -15,19 +15,21 @@ import SwiftEventBus |
15 | 15 | ||
16 | public var campaignUrl: String = "" | 16 | public var campaignUrl: String = "" |
17 | public var params: String = "" | 17 | public var params: String = "" |
18 | - public var showHeader: Bool = true | 18 | + public var showHeader: Bool = false |
19 | 19 | ||
20 | public override func viewWillAppear(_ animated: Bool) { | 20 | public override func viewWillAppear(_ animated: Bool) { |
21 | super.viewWillAppear(animated) | 21 | super.viewWillAppear(animated) |
22 | if (!showHeader) { | 22 | if (!showHeader) { |
23 | - navigationController?.setNavigationBarHidden(true, animated: animated) | 23 | + // navigationController?.setNavigationBarHidden(true, animated: animated) |
24 | + self.navigationController?.isNavigationBarHidden = true | ||
24 | } | 25 | } |
25 | } | 26 | } |
26 | 27 | ||
27 | public override func viewWillDisappear(_ animated: Bool) { | 28 | public override func viewWillDisappear(_ animated: Bool) { |
28 | super.viewWillDisappear(animated) | 29 | super.viewWillDisappear(animated) |
29 | if (!showHeader) { | 30 | if (!showHeader) { |
30 | - navigationController?.setNavigationBarHidden(false, animated: animated) | 31 | + // navigationController?.setNavigationBarHidden(false, animated: animated) |
32 | + self.navigationController?.isNavigationBarHidden = false | ||
31 | } | 33 | } |
32 | } | 34 | } |
33 | 35 | ... | ... |
-
Please register or login to post a comment