diff options
author | Grant Paul <chpwn@chpwn.com> | 2010-12-28 22:00:04 -0800 |
---|---|---|
committer | Grant Paul <chpwn@chpwn.com> | 2010-12-28 22:00:04 -0800 |
commit | 9daa0bdcb0426353ff2ac7c25af05aae36fc434f (patch) | |
tree | b06f9b3152180ed1828854130910cbe7c0ce2b27 /MobileCydia.mm | |
parent | 6a8591beea23cf0e8aee4aede0679ae9d16cfd88 (diff) |
Code, not comments, to control if the navigation bar on the homepage is hidden.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 52f2ec7..18fbe49 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6501,6 +6501,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { @implementation HomeController ++ (BOOL)shouldHideNavigationBar { + return NO; +} + - (void) _setMoreHeaders:(NSMutableURLRequest *)request { [super _setMoreHeaders:request]; @@ -6531,12 +6535,16 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (void) viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; - //[[self navigationController] setNavigationBarHidden:YES animated:animated]; + + if ([[self class] shouldHideNavigationBar]) + [[self navigationController] setNavigationBarHidden:YES animated:animated]; } - (void) viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; - //[[self navigationController] setNavigationBarHidden:NO animated:animated]; + + if ([[self class] shouldHideNavigationBar]) + [[self navigationController] setNavigationBarHidden:NO animated:animated]; } - (id) init { |