change appearance proxy for pageControl

This commit is contained in:
Siqi LIU
2013-08-29 17:30:29 +02:00
parent 295759c053
commit 1a77fc15dd

View File

@@ -9,6 +9,12 @@
#import "AppDelegate.h"
#import "ControlVariables.h"
#import "UINavigationController+Theme.h"
#define UIColorFromRGB(rgbValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
@implementation AppDelegate
@synthesize window = _window;
@@ -43,6 +49,10 @@
forKeys: [NSArray arrayWithObjects:UITextAttributeFont, UITextAttributeTextColor, UITextAttributeTextShadowColor, nil]];
[[UIBarButtonItem appearance] setTitleTextAttributes:attributes
forState:UIControlStateHighlighted];
UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = UIColorFromRGB(0x2980b9);
pageControl.currentPageIndicatorTintColor = UIColorFromRGB(0x1abc9c);
return YES;
}