diff --git a/Class/BarItem.h b/Class/BarItem.h index 0c2d3de..80a3dc3 100644 --- a/Class/BarItem.h +++ b/Class/BarItem.h @@ -15,5 +15,6 @@ - (instancetype)initWithFrame:(CGRect)frame startPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint color:(UIColor *)color lineWidth:(CGFloat)lineWidth; - (void)setupWithFrame:(CGRect)rect; - (void)setHorizontalRandomness:(int)horizontalRandomness dropHeight:(CGFloat)dropHeight; +@property (nonatomic) UIColor *color; @end diff --git a/Class/BarItem.m b/Class/BarItem.m index 0e7a57f..de6c48e 100644 --- a/Class/BarItem.m +++ b/Class/BarItem.m @@ -14,7 +14,7 @@ @interface BarItem () @property (nonatomic) CGFloat lineWidth; @property (nonatomic) CGPoint startPoint; @property (nonatomic) CGPoint endPoint; -@property (nonatomic) UIColor *color; + @end diff --git a/Class/CBStoreHouseRefreshControl.h b/Class/CBStoreHouseRefreshControl.h index 01692c9..cee5759 100644 --- a/Class/CBStoreHouseRefreshControl.h +++ b/Class/CBStoreHouseRefreshControl.h @@ -33,4 +33,6 @@ - (void)finishingLoading; +- (void)updateColor:(UIColor *)color; + @end diff --git a/Class/CBStoreHouseRefreshControl.m b/Class/CBStoreHouseRefreshControl.m index f77dcf6..fefcc38 100644 --- a/Class/CBStoreHouseRefreshControl.m +++ b/Class/CBStoreHouseRefreshControl.m @@ -89,7 +89,7 @@ + (CBStoreHouseRefreshControl*)attachToScrollView:(UIScrollView *)scrollView // Calculate frame according to points max width and height CGFloat width = 0; CGFloat height = 0; - NSDictionary *rootDictionary = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:plist ofType:@"plist"]]; + NSDictionary *rootDictionary = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle bundleForClass:self] pathForResource:plist ofType:@"plist"]]; NSArray *startPoints = [rootDictionary objectForKey:startPointKey]; NSArray *endPoints = [rootDictionary objectForKey:endPointKey]; for (int i=0; i