mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-11 22:06:40 +10:00
Better navigation bar logic
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<string>1.1</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
@@ -32,7 +32,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>102</string>
|
||||
<string>103</string>
|
||||
<key>Fabric</key>
|
||||
<dict>
|
||||
<key>APIKey</key>
|
||||
|
||||
@@ -35,7 +35,7 @@ class EditSkillsViewController: BaseViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
animatedOnNavigationBar = false
|
||||
// animatedOnNavigationBar = false
|
||||
|
||||
title = skillSet?.name
|
||||
|
||||
|
||||
@@ -1044,7 +1044,7 @@ class ProfileViewController: UIViewController {
|
||||
|
||||
|
||||
if segue.identifier == "showSkillHome" {
|
||||
noNeedToChangeStatusBar = true
|
||||
noNeedToChangeStatusBar = false
|
||||
} else {
|
||||
noNeedToChangeStatusBar = false
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class SettingsViewController: BaseViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
animatedOnNavigationBar = false
|
||||
// animatedOnNavigationBar = false
|
||||
|
||||
title = NSLocalizedString("Settings", comment: "")
|
||||
|
||||
|
||||
@@ -77,8 +77,6 @@ class SkillHomeViewController: BaseViewController {
|
||||
|
||||
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
|
||||
|
||||
var statusBarShouldLight = true
|
||||
|
||||
var discoveredMasterUsers = [DiscoveredUser]() {
|
||||
didSet {
|
||||
dispatch_async(dispatch_get_main_queue()) {
|
||||
@@ -94,15 +92,7 @@ class SkillHomeViewController: BaseViewController {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override func viewDidAppear(animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
|
||||
statusBarShouldLight = true
|
||||
|
||||
|
||||
self.setNeedsStatusBarAppearanceUpdate()
|
||||
}
|
||||
|
||||
override func viewDidLayoutSubviews() {
|
||||
super.viewDidLayoutSubviews()
|
||||
@@ -122,18 +112,9 @@ class SkillHomeViewController: BaseViewController {
|
||||
}
|
||||
}
|
||||
|
||||
override func preferredStatusBarStyle() -> UIStatusBarStyle {
|
||||
if statusBarShouldLight {
|
||||
return UIStatusBarStyle.LightContent
|
||||
} else {
|
||||
return UIStatusBarStyle.Default
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
|
||||
if let skillCategory = skill?.category {
|
||||
headerView.skillCategory = skillCategory
|
||||
}
|
||||
@@ -262,15 +243,6 @@ class SkillHomeViewController: BaseViewController {
|
||||
}
|
||||
}
|
||||
|
||||
override func viewWillAppear(animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
|
||||
self.navigationController?.setNavigationBarHidden(false, animated: true)
|
||||
|
||||
statusBarShouldLight = true
|
||||
|
||||
self.setNeedsStatusBarAppearanceUpdate()
|
||||
}
|
||||
|
||||
// MARK: UI
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ class SocialWorkDribbbleViewController: BaseViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
animatedOnNavigationBar = false
|
||||
// animatedOnNavigationBar = false
|
||||
|
||||
if let socialAccount = socialAccount {
|
||||
let accountImageView = UIImageView(image: UIImage(named: socialAccount.iconName)!)
|
||||
|
||||
@@ -67,7 +67,7 @@ class SocialWorkGithubViewController: BaseViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
animatedOnNavigationBar = false
|
||||
// animatedOnNavigationBar = false
|
||||
|
||||
if let socialAccount = socialAccount {
|
||||
let accountImageView = UIImageView(image: UIImage(named: socialAccount.iconName)!)
|
||||
|
||||
@@ -44,7 +44,7 @@ class SocialWorkInstagramViewController: BaseViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
animatedOnNavigationBar = false
|
||||
// animatedOnNavigationBar = false
|
||||
|
||||
if let socialAccount = socialAccount {
|
||||
let accountImageView = UIImageView(image: UIImage(named: socialAccount.iconName)!)
|
||||
|
||||
Reference in New Issue
Block a user