Permalink
Browse files

property activityIndicatorViewColor added

  • Loading branch information...
1 parent c08ae5b commit ae1737adcaa9046e82148ed1e9cba594183628a1 @dongminkim dongminkim committed Oct 6, 2012
Showing with 16 additions and 0 deletions.
  1. +1 −0 ODRefreshControl/ODRefreshControl.h
  2. +15 −0 ODRefreshControl/ODRefreshControl.m
@@ -27,6 +27,7 @@
@property (nonatomic, readonly) BOOL refreshing;
@property (nonatomic, strong) UIColor *tintColor;
@property (nonatomic, assign) UIActivityIndicatorViewStyle activityIndicatorViewStyle;
+@property (nonatomic, strong) UIColor *activityIndicatorViewColor;
- (id)initInScrollView:(UIScrollView *)scrollView;
@@ -148,6 +148,21 @@ - (UIActivityIndicatorViewStyle)activityIndicatorViewStyle
return 0;
}
+- (void)setActivityIndicatorViewColor:(UIColor *)activityIndicatorViewColor
+{
+ if ([_activity isKindOfClass:[UIActivityIndicatorView class]]) {
+ [(UIActivityIndicatorView *)_activity setColor:activityIndicatorViewColor];
+ }
+}
+
+- (UIColor *)activityIndicatorViewColor
+{
+ if ([_activity isKindOfClass:[UIActivityIndicatorView class]]) {
+ return [(UIActivityIndicatorView *)_activity color];
+ }
+ return nil;
+}
+
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
if ([keyPath isEqualToString:@"contentInset"]) {

0 comments on commit ae1737a

Please sign in to comment.