Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Commit

Permalink
switching CKRefreshControl reference to UIRefreshControl when calling…
Browse files Browse the repository at this point in the history
… +appearanceWhenContainedIn: - must be consistent with class reference for the refreshControl in the contained classes
  • Loading branch information
johnhaitas committed Jan 26, 2013
1 parent 065b946 commit 52e2b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RefreshControlDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
application.statusBarStyle = UIStatusBarStyleBlackOpaque;

[[CKRefreshControl appearanceWhenContainedIn:[AppearanceCustomizationController class], nil] setTintColor:[UIColor greenColor]];
[[UIRefreshControl appearanceWhenContainedIn:[AppearanceCustomizationController class], nil] setTintColor:[UIColor greenColor]];

// Override point for customization after application launch.
return YES;
Expand Down
2 changes: 1 addition & 1 deletion RefreshControlDemo/AppearanceCustomizationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ - (void)viewDidLoad
{
[super viewDidLoad];

self.refreshControl = (id)[[CKRefreshControl alloc] init];
self.refreshControl = [[UIRefreshControl alloc] init];
[self.refreshControl addTarget:self action:@selector(doRefresh:) forControlEvents:UIControlEventValueChanged];
}

Expand Down

0 comments on commit 52e2b1c

Please sign in to comment.