12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //
- // ViewController.swift
- // OJASwiftKitDemo
- //
- // Created by luxiaoming on 2016/11/12.
- // Copyright © 2016年 luxiaoming. All rights reserved.
- //
- import UIKit
- import OJASwiftKit
- import LXMBlockKit
- class ViewController: OJSViewController {
-
-
- @IBOutlet weak var buttonOne: UIButton!
-
- class func test() {
- let aaa = String(describing: self.self)
- DLog(aaa)
- self.description()
- }
- override func viewDidLoad() {
- super.viewDidLoad()
- // Do any additional setup after loading the view, typically from a nib.
-
- // let color = OJSColor(r: 10, g: 10, b: 10)
- // let color2 = OJSColor(hexRGBValue: )
-
-
- let aaa = String(describing: ViewController.classForCoder())
-
- let bbb = String(describing: self.classForCoder)
-
- let ccc = String(describing: self)
-
- DLog("\n\(aaa) \n\(bbb) \n\(ccc)")
-
- buttonOne.addCallback {[unowned self] (sender: UIButton?) in
- // let tableViewController = OJSTableViewController()
- // self.navigationController?.pushViewController(tableViewController, animated: true)
-
- // let one = OneViewController()
- // self.navigationController?.pushViewController(one, animated: true)
- let three = ThreeViewController()
- self.navigationController?.pushViewController(three, animated: true)
-
- // let webViewController = OJSWebViewController()
- // self.navigationController?.pushViewController(webViewController, animated: true)
-
- }
-
- ViewController.test()
-
-
- UIScrollView().scrollToTop(afterDelay: 0.1, animated: true)
-
-
- }
- override func didReceiveMemoryWarning() {
- super.didReceiveMemoryWarning()
- // Dispose of any resources that can be recreated.
- }
- }
- extension ViewController: UITableViewDataSource {
-
- func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return 0
- }
-
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- return UITableViewCell()
- }
- }
|