From 8c9453daccf787e1bb9cf15dd7df38864e66a568 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 10 Mar 2011 01:58:38 -0800 Subject: [PATCH] There is no reason HUDs can't rotate correctly. --- MobileCydia.mm | 6 +++--- iPhonePrivate.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 2da0aae4..86b2e8d2 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9367,7 +9367,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (UIProgressHUD *) addProgressHUD { - UIProgressHUD *hud([[[UIProgressHUD alloc] initWithWindow:window_] autorelease]); + UIProgressHUD *hud([[[UIProgressHUD alloc] init] autorelease]); [hud setAutoresizingMask:UIViewAutoresizingFlexibleBoth]; [window_ setUserInteractionEnabled:NO]; @@ -9379,7 +9379,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { UIView *view([target view]); [view addSubview:hud]; - [hud show:YES]; + [hud showInView:[tabbar_ view]]; ++locked_; return hud; @@ -9387,7 +9387,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (void) removeProgressHUD:(UIProgressHUD *)hud { --locked_; - [hud show:NO]; + [hud hide]; [hud removeFromSuperview]; [window_ setUserInteractionEnabled:YES]; } diff --git a/iPhonePrivate.h b/iPhonePrivate.h index fdcb147b..d3fc7414 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -61,9 +61,9 @@ typedef enum { @end @interface UIProgressHUD : UIView -- (id) initWithWindow:(UIWindow *)window; +- (void) hide; - (void) setText:(NSString *)text; -- (void) show:(BOOL)show; +- (void) showInView:(UIView *)view; @end @interface UIProgressIndicator : UIView -- 2.47.2