Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed May 18, 2016
1 parent 624c5d5 commit c8700c8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions SwitcherCollection.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* Begin PBXBuildFile section */
6A3D16F31BE99A020018C0C4 /* TKExchangeSwitch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A3D16EE1BE99A020018C0C4 /* TKExchangeSwitch.swift */; };
6A3D16F41BE99A020018C0C4 /* TKLiquidSwitch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A3D16EF1BE99A020018C0C4 /* TKLiquidSwitch.swift */; };
6A3D16F51BE99A020018C0C4 /* TKMainSwitcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A3D16F01BE99A020018C0C4 /* TKMainSwitcher.swift */; };
6A3D16F51BE99A020018C0C4 /* TKBaseSwitcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A3D16F01BE99A020018C0C4 /* TKBaseSwitcher.swift */; };
6A3D16F61BE99A020018C0C4 /* TKSimpleSwitch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A3D16F11BE99A020018C0C4 /* TKSimpleSwitch.swift */; };
6A3D16F71BE99A020018C0C4 /* TKSmileSwitch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A3D16F21BE99A020018C0C4 /* TKSmileSwitch.swift */; };
6A555E9B1BDCA58700FC36E6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A555E9A1BDCA58700FC36E6 /* AppDelegate.swift */; };
Expand All @@ -23,7 +23,7 @@
/* Begin PBXFileReference section */
6A3D16EE1BE99A020018C0C4 /* TKExchangeSwitch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TKExchangeSwitch.swift; sourceTree = "<group>"; };
6A3D16EF1BE99A020018C0C4 /* TKLiquidSwitch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TKLiquidSwitch.swift; sourceTree = "<group>"; };
6A3D16F01BE99A020018C0C4 /* TKMainSwitcher.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TKMainSwitcher.swift; sourceTree = "<group>"; };
6A3D16F01BE99A020018C0C4 /* TKBaseSwitcher.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TKBaseSwitcher.swift; sourceTree = "<group>"; };
6A3D16F11BE99A020018C0C4 /* TKSimpleSwitch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TKSimpleSwitch.swift; sourceTree = "<group>"; };
6A3D16F21BE99A020018C0C4 /* TKSmileSwitch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TKSmileSwitch.swift; sourceTree = "<group>"; };
6A555E971BDCA58700FC36E6 /* SwitcherCollection.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwitcherCollection.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -52,7 +52,7 @@
children = (
6A3D16EE1BE99A020018C0C4 /* TKExchangeSwitch.swift */,
6A3D16EF1BE99A020018C0C4 /* TKLiquidSwitch.swift */,
6A3D16F01BE99A020018C0C4 /* TKMainSwitcher.swift */,
6A3D16F01BE99A020018C0C4 /* TKBaseSwitcher.swift */,
6A3D16F11BE99A020018C0C4 /* TKSimpleSwitch.swift */,
6A3D16F21BE99A020018C0C4 /* TKSmileSwitch.swift */,
);
Expand Down Expand Up @@ -168,7 +168,7 @@
6A3D16F61BE99A020018C0C4 /* TKSimpleSwitch.swift in Sources */,
6A555E9B1BDCA58700FC36E6 /* AppDelegate.swift in Sources */,
6A3D16F71BE99A020018C0C4 /* TKSmileSwitch.swift in Sources */,
6A3D16F51BE99A020018C0C4 /* TKMainSwitcher.swift in Sources */,
6A3D16F51BE99A020018C0C4 /* TKBaseSwitcher.swift in Sources */,
6A3D16F31BE99A020018C0C4 /* TKExchangeSwitch.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// TKMainSwitcher.swift
// TKBaseSwitcher.swift
// SwitcherCollection
//
// Created by Tbxark on 15/10/25.
Expand All @@ -16,7 +16,7 @@ func CGPointScaleMaker(scale: CGFloat) -> ((CGFloat, CGFloat) -> CGPoint) {


// 自定义 Switch 基类
class TKMainSwitch: UIControl {
class TKBaseSwitch: UIControl {

// MARK: - Property
var valueChange : ValueChangeHook?
Expand All @@ -30,7 +30,7 @@ class TKMainSwitch: UIControl {
}

func setUpView(){
let tap = UITapGestureRecognizer(target: self, action: #selector(TKMainSwitch.changeValue))
let tap = UITapGestureRecognizer(target: self, action: #selector(TKBaseSwitch.changeValue))
self.addGestureRecognizer(tap)
}

Expand Down
2 changes: 1 addition & 1 deletion SwitcherCollection/Classes/TKExchangeSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit
// Dedign by Oleg Frolov
//https://dribbble.com/shots/2238916-Switcher-VI

class TKExchangeSwitch: TKMainSwitch{
class TKExchangeSwitch: TKBaseSwitch{

// MARK: - Property
var swichControl : TKExchangeCircleView!
Expand Down
2 changes: 1 addition & 1 deletion SwitcherCollection/Classes/TKLiquidSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
// Dedign by Oleg Frolov
//https://dribbble.com/shots/2028065-Switcher-lll

class TKLiquidSwitch: TKMainSwitch {
class TKLiquidSwitch: TKBaseSwitch {


var bubbleLayer = CAShapeLayer()
Expand Down
2 changes: 1 addition & 1 deletion SwitcherCollection/Classes/TKSimpleSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import UIKit
//https://dribbble.com/shots/2165675-Switcher-V


class TKSimpleSwitch: TKMainSwitch{
class TKSimpleSwitch: TKBaseSwitch{

var swichControl = CAShapeLayer()
var backgroundLayer = CAShapeLayer()
Expand Down
2 changes: 1 addition & 1 deletion SwitcherCollection/Classes/TKSmileSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import UIKit



class TKSmileSwitch: TKMainSwitch{
class TKSmileSwitch: TKBaseSwitch{

// MARK: - Poperty
var smileFace : TKSmileFaceView?
Expand Down
2 changes: 1 addition & 1 deletion SwitcherCollection/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var count : Int = 0

class ViewController: UIViewController {

@IBOutlet var switchArray: [TKMainSwitch]!
@IBOutlet var switchArray: [TKBaseSwitch]!
override func viewDidLoad() {
super.viewDidLoad()
}
Expand Down

0 comments on commit c8700c8

Please sign in to comment.