Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init with bar color not work #30

Closed
Armour opened this issue Aug 9, 2015 · 4 comments
Closed

init with bar color not work #30

Armour opened this issue Aug 9, 2015 · 4 comments

Comments

@Armour
Copy link

Armour commented Aug 9, 2015

I used pod to get this refrehcontrol, however when i ask the function

    self.storeHouseRefreshControl = [CBStoreHouseRefreshControl attachToScrollView:self.waterfallView
                                                                            target:self
                                                                     refreshAction:@selector(pullToRefreshTriggered:)
                                                                             plist:@"storehouse"
                                                                             color:[UIColor redColor]
                                                                         lineWidth:1
                                                                        dropHeight:70
                                                                             scale:1
                                                              horizontalRandomness:150
                                                           reverseLoadingAnimation:YES
                                                           internalAnimationFactor:0.1];

the bar color is still in white, which makes me confuse.
after half an hour's debug i decided to look for source code and then i found that in the file CBStoreHouseRefreshControl.m, line 114, the color which i ask was not set properly, but used [UIColor whitecolor] instead!

I hope you can revise this one and, besides that, better remove all the warning :D

@imkcat
Copy link

imkcat commented Dec 27, 2015

I alse found this issus

@Armour
Copy link
Author

Armour commented Dec 27, 2015

Yep, but you can solve this by yourself. Just change the [UIColor whitecolor] to color.

@imkcat
Copy link

imkcat commented Dec 27, 2015

Yes,it's just the way it is

@Armour
Copy link
Author

Armour commented May 30, 2017

fixed :)

@Armour Armour closed this as completed May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants