summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-23 18:13:55 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:12 -0800
commit824062172d3effbead0e24eaae0ba60f7eb86969 (patch)
tree5a2c70b92b5f9613b70cb90b42a123a59cf27cf1 /UICaboodle
parentb8a5d89d89d8662536b2f651fae0598f21ea17bd (diff)
Added cydia.setNavigationBarStyle().
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/BrowserView.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 2a05005..b4ca1a1 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -1170,6 +1170,16 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
return 980;
}
+- (void) setNavigationBarStyle:(NSString *)name {
+ UIBarStyle style;
+ if ([name isEqualToString:@"Black"])
+ style = UIBarStyleBlack;
+ else
+ style = UIBarStyleDefault;
+
+ [[[self navigationController] navigationBar] setBarStyle:style];
+}
+
- (void) setHidesBackButton:(bool)value {
[[self navigationItem] setHidesBackButton:value];
}