From: Jay Freeman (saurik) Date: Sat, 13 Nov 2010 20:50:47 +0000 (-0800) Subject: If you are going to use a private API (pinStripeColor), it has to be in iPhonePrivate.h. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/c961857bb31a25f713aff8162e636611d5abfda2 If you are going to use a private API (pinStripeColor), it has to be in iPhonePrivate.h. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index c4099daf..98a99da1 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8735,7 +8735,7 @@ static _finline void _setHomePage(Cydia *self) { [window_ addSubview:[container_ view]]; // Show pinstripes while loading data. - [[container_ view] setBackgroundColor:[UIColor performSelector:@selector(pinStripeColor)]]; + [[container_ view] setBackgroundColor:[UIColor pinStripeColor]]; [self performSelector:@selector(loadData) withObject:nil afterDelay:0]; } diff --git a/iPhonePrivate.h b/iPhonePrivate.h index fcdb490a..239c3f5a 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -204,6 +204,10 @@ typedef enum { - (UIView *) view; @end +@interface UIColor (Apple) ++ (UIColor *) pinStripeColor; +@end + @interface UIControl (Apple) - (void) addTarget:(id)target action:(SEL)action forEvents:(NSInteger)events; @end