SettingViewController.swift 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // SettingViewController.swift
  3. // SocketChat
  4. //
  5. // Created by Justine on 16/5/27.
  6. // Copyright © 2016年 AppCoda. All rights reserved.
  7. //
  8. import UIKit
  9. class SettingViewController: UITableViewController {
  10. @IBAction func btnLogOut(sender: UIButton) {
  11. logout()
  12. }
  13. var dataList = NSMutableArray()
  14. override func viewDidLoad() {
  15. super.viewDidLoad()
  16. self.view.backgroundColor = UIColor.blueColor()
  17. // Do any additional setup after loading the view.
  18. self.tableView?.dataSource = self
  19. self.tableView?.delegate = self
  20. }
  21. override func didReceiveMemoryWarning() {
  22. super.didReceiveMemoryWarning()
  23. // Dispose of any resources that can be recreated.
  24. }
  25. /*
  26. // MARK: - Navigation
  27. // In a storyboard-based application, you will often want to do a little preparation before navigation
  28. override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  29. // Get the new view controller using segue.destinationViewController.
  30. // Pass the selected object to the new view controller.
  31. }
  32. */
  33. //实现继承的委托中的两个方法
  34. // //静态的
  35. // override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int{
  36. // return 100;
  37. // }
  38. //
  39. // //返回Cell 静态的
  40. // override func tableView(tableView:UITableView, cellForRowAtIndexPath indexPath:NSIndexPath)->UITableViewCell{
  41. // //根据需求自己重绘
  42. // let cell = UITableViewCell(style: .Default, reuseIdentifier: "cell")
  43. // // let cellID="Cell ID";
  44. // // var cell=tableView.dequeueReusableCellWithIdentifier(cellID) as? UITableViewCell;
  45. // //
  46. // return cell;
  47. // }
  48. }