// Inherit autorotation settings for modal parents.
if ([self parentViewController] && [[self parentViewController] modalViewController] == self) {
return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation];
+ } else if ([self parentViewController]) {
+ return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation];
} else {
return [super shouldAutorotateToInterfaceOrientation:orientation];
}
CYViewController *page = nil;
int tag = 0;
- NSLog(@"open url: %@", url);
-
if ((page = [self pageForURL:url hasTag:&tag])) {
[self setPage:page];
tag_ = tag;
- (void) applicationOpenURL:(NSURL *)url {
[super applicationOpenURL:url];
- NSLog(@"first: %@", url);
+
if (!loaded_) starturl_ = [url retain];
else [self openCydiaURL:url];
}
}
- (void) reloadData {
}
-@end
\ No newline at end of file
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
+ if ([self parentViewController]) {
+ return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation];
+ } else {
+ return [super shouldAutorotateToInterfaceOrientation:orientation];
+ }
+}
+@end