summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2012-07-11 13:12:22 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2012-07-11 13:12:22 -0700
commit474d96bb73506523b1e47444575d92432c482c1c (patch)
treedeadbaa2fe4ca24210be9dde00327ba945390227
parent353dda5b4d75a4e33e59e05b3acdd41b1069b196 (diff)
Remove obsolete UIProgressBar: fix for iOS 6.0.
-rw-r--r--MobileCydia.mm15
1 files changed, 0 insertions, 15 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 2371e26..22ed6cb 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6754,7 +6754,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
@interface RefreshBar : UINavigationBar {
_H<UIProgressIndicator> indicator_;
_H<UITextLabel> prompt_;
- _H<UIProgressBar> progress_;
_H<UINavigationButton> cancel_;
}
@@ -6769,13 +6768,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
frame.origin.y = ([self frame].size.height - frame.size.height) / 2;
[cancel_ setFrame:frame];
- CGSize prgsize = {75, 100};
- CGRect prgrect = {{
- [self frame].size.width - prgsize.width - 10,
- ([self frame].size.height - prgsize.height) / 2
- } , prgsize};
- [progress_ setFrame:prgrect];
-
CGSize indsize([UIProgressIndicator defaultSizeForStyle:[indicator_ activityIndicatorViewStyle]]);
unsigned indoffset = ([self frame].size.height - indsize.height) / 2;
CGRect indrect = {{indoffset, indoffset}, indsize};
@@ -6818,11 +6810,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
[prompt_ setFont:[UIFont systemFontOfSize:15]];
[self addSubview:prompt_];
- progress_ = [[[UIProgressBar alloc] initWithFrame:CGRectZero] autorelease];
- [progress_ setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin];
- [(UIProgressBar *) progress_ setStyle:0];
- [self addSubview:progress_];
-
cancel_ = [[[UINavigationButton alloc] initWithTitle:UCLocalize("CANCEL") style:UINavigationButtonStyleHighlighted] autorelease];
[cancel_ setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin];
[cancel_ addTarget:delegate action:@selector(cancelPressed) forControlEvents:UIControlEventTouchUpInside];
@@ -6841,7 +6828,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
- (void) start {
[prompt_ setText:UCLocalize("UPDATING_DATABASE")];
- [progress_ setProgress:0];
}
- (void) stop {
@@ -6853,7 +6839,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
}
- (void) setProgress:(float)progress {
- [progress_ setProgress:progress];
}
@end