Permalink
Browse files

Added methods to set white text and clear background

  • Loading branch information...
Susan Detwiler
Susan Detwiler committed Oct 31, 2012
1 parent 420d1d3 commit 45aaebac487f1d2c09ccd934b537113f854ce905
Showing with 16 additions and 0 deletions.
  1. +2 −0 PullToRefreshView.h
  2. +14 −0 PullToRefreshView.m
View
@@ -63,6 +63,8 @@ typedef enum {
- (id)initWithWebView:(UIWebView *)webView;
- (id)initWithScrollView:(UIScrollView *)scroll atBottom:(BOOL)isBottom;
- (id)initWithWebView:(UIWebView *)webView atBottom:(BOOL)isBottom;
+- (void)setClearBackgroundAndWhiteText;
+- (void)setWhiteText;
- (void)cleanUp;
@end
View
@@ -74,6 +74,20 @@ - (void)setImageFlipped:(BOOL)flipped {
[UIView commitAnimations];
}
+-(void)setClearBackgroundAndWhiteText {
+ self.backgroundColor = [UIColor clearColor];
+ [self setWhiteText];
+}
+
+-(void)setWhiteText {
+ self.arrowImage.contents = (id) [UIImage imageNamed:@"white-arrow"].CGImage;
+ self.lastUpdatedLabel.textColor = [UIColor whiteColor];
+ self.lastUpdatedLabel.shadowColor = [UIColor lightGrayColor];
+ self.statusLabel.textColor = [UIColor whiteColor];
+ self.statusLabel.shadowColor = [UIColor lightGrayColor];
+ self.activityView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhite;
+}
+
- (id)initWithScrollView:(UIScrollView *)scroll {
return [self initWithScrollView:scroll atBottom:NO];
}

0 comments on commit 45aaeba

Please sign in to comment.