onevcat

Rename setDefaultValues to setupDefaultValues

It could be an issue if we have a property named as defaultValues later.
... ... @@ -20,8 +20,6 @@
@property (nonatomic) NSMutableArray *chartPath; // Array of line path, one for each line.
@property (nonatomic) NSMutableArray *pointPath; // Array of point path, one for each line
- (void)setDefaultValues;
@end
@implementation PNLineChart
... ... @@ -33,7 +31,7 @@
self = [super initWithCoder:coder];
if (self) {
[self setDefaultValues];
[self setupDefaultValues];
}
return self;
... ... @@ -44,7 +42,7 @@
self = [super initWithFrame:frame];
if (self) {
[self setDefaultValues];
[self setupDefaultValues];
}
return self;
... ... @@ -646,7 +644,7 @@
#pragma mark private methods
- (void)setDefaultValues
- (void)setupDefaultValues
{
// Initialization code
self.backgroundColor = [UIColor whiteColor];
... ...
... ... @@ -11,13 +11,13 @@
{
self = [super init];
if (self) {
[self setDefaultValues];
[self setupDefaultValues];
}
return self;
}
- (void)setDefaultValues
- (void)setupDefaultValues
{
_inflexionPointStyle = PNLineChartPointStyleNone;
_inflexionPointWidth = 6.f;
... ...
... ... @@ -46,8 +46,6 @@
@property (nonatomic) BOOL isForUpdate;
- (void)setDefaultValues;
@end
... ... @@ -60,7 +58,7 @@
self = [super initWithCoder:coder];
if (self) {
[self setDefaultValues];
[self setupDefaultValues];
}
return self;
}
... ... @@ -70,7 +68,7 @@
self = [super initWithFrame:frame];
if (self) {
[self setDefaultValues];
[self setupDefaultValues];
}
return self;
}
... ... @@ -81,7 +79,7 @@
[self vectorYSetup];
}
- (void)setDefaultValues
- (void)setupDefaultValues
{
// Initialization code
self.backgroundColor = [UIColor whiteColor];
... ...
... ... @@ -14,13 +14,13 @@
{
self = [super init];
if (self) {
[self setDefaultValues];
[self setupDefaultValues];
}
return self;
}
- (void)setDefaultValues
- (void)setupDefaultValues
{
_inflexionPointStyle = PNScatterChartPointStyleCircle;
_fillColor = [UIColor grayColor];
... ...