diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-26 01:56:33 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:23 -0800 |
commit | 8d497e2a4c6478859f08e5e0bb912256c0ca64b1 (patch) | |
tree | f67e563cdcb513aff216bce307c7baee1fbb62f1 /UICaboodle | |
parent | 64d46af3a8176919d9d8601b3e8f1673ce8bb235 (diff) |
Add cydia.popViewController(animated).
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 9858598..9a067f7 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -649,6 +649,12 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se [self setAllowsNavigationAction:[value boolValue]]; } +- (void) popViewControllerWithNumber:(NSNumber *)value { + UINavigationController *navigation([self navigationController]); + if ([navigation topViewController] == self) + [navigation popViewControllerAnimated:[value boolValue]]; +} + - (void) _didFailWithError:(NSError *)error forFrame:(WebFrame *)frame { [loading_ removeObject:[NSValue valueWithNonretainedObject:frame]]; [self _didFinishLoading]; |