From 3e8437ae559487362fae3525beb79c534c213a51 Mon Sep 17 00:00:00 2001 From: 单军华 Date: Thu, 12 Jul 2018 13:44:34 +0800 Subject: [PATCH] bug修复和功能优化 --- screendisplay/Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TADotView.m | 63 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TADotView.m b/screendisplay/Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TADotView.m new file mode 100755 index 0000000..092170a --- /dev/null +++ b/screendisplay/Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/PageControl/TADotView.m @@ -0,0 +1,63 @@ +// +// TADotView.m +// TAPageControl +// +// Created by Tanguy Aladenise on 2015-01-22. +// Copyright (c) 2015 Tanguy Aladenise. All rights reserved. +// + +#import "TADotView.h" + +@implementation TADotView + + +- (instancetype)init +{ + self = [super init]; + if (self) { + [self initialization]; + } + + return self; +} + + +- (id)initWithFrame:(CGRect)frame +{ + self = [super initWithFrame:frame]; + if (self) { + [self initialization]; + } + return self; +} + + +- (id)initWithCoder:(NSCoder *)aDecoder +{ + self = [super initWithCoder:aDecoder]; + if (self) { + [self initialization]; + } + + return self; +} + +- (void)initialization +{ + self.backgroundColor = [UIColor clearColor]; + self.layer.cornerRadius = CGRectGetWidth(self.frame) / 2; + self.layer.borderColor = [UIColor whiteColor].CGColor; + self.layer.borderWidth = 2; +} + + +- (void)changeActivityState:(BOOL)active +{ + if (active) { + self.backgroundColor = [UIColor whiteColor]; + } else { + self.backgroundColor = [UIColor clearColor]; + } +} + +@end -- Gitblit v1.8.0