From 4985045e01d36a914c6b91f91dccef456df653ea Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 13 Nov 2010 12:50:47 -0800 Subject: If you are going to use a private API (pinStripeColor), it has to be in iPhonePrivate.h. --- MobileCydia.mm | 2 +- iPhonePrivate.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index c4099da..98a99da 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 fcdb490..239c3f5 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 -- cgit v1.2.3