summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-13 12:50:47 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-15 14:39:12 -0800
commit4985045e01d36a914c6b91f91dccef456df653ea (patch)
tree48e46bc36b67e349e43edefe872ba0ee6d64a1f9
parent3dd53516c7d0994fafdab2acbe38efbb1ca44167 (diff)
If you are going to use a private API (pinStripeColor), it has to be in iPhonePrivate.h.
-rw-r--r--MobileCydia.mm2
-rw-r--r--iPhonePrivate.h4
2 files changed, 5 insertions, 1 deletions
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