diff --git a/TouTiao/Main2ViewController.swift b/TouTiao/Main2ViewController.swift index 5744bf9..4084235 100644 --- a/TouTiao/Main2ViewController.swift +++ b/TouTiao/Main2ViewController.swift @@ -25,6 +25,7 @@ class Main2ViewController: UIViewController { var cons:[UIViewController] = [UIViewController]() var controllerArray : [UIViewController] = [] + var controllerArray2 : [UIViewController] = [] // Do any additional setup after loading the view. let aStoryboard = UIStoryboard(name: "Main", bundle:Bundle.main) diff --git a/TouTiao/UIColor-Extension.swift b/TouTiao/UIColor-Extension.swift index 26e34f5..7fab6c0 100644 --- a/TouTiao/UIColor-Extension.swift +++ b/TouTiao/UIColor-Extension.swift @@ -19,6 +19,7 @@ extension UIColor { let index = rgba.characters.index(rgba.startIndex, offsetBy: 1) let hex = rgba.substring(from: index) let scanner = Scanner(string: hex) + let scanner2 = Scanner(string: hex) var hexValue: CUnsignedLongLong = 0 if scanner.scanHexInt64(&hexValue) { switch (hex.characters.count) {