-
Notifications
You must be signed in to change notification settings - Fork 3
/
AboutViewController.swift
43 lines (30 loc) · 1.14 KB
/
AboutViewController.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// AboutViewController.swift
// Mobile Barcode Demo
//
// Created by Michael Chernikov on 27/05/16.
// Copyright © 2016 Atalasoft, a Kofax Company. All rights reserved.
//
import UIKit
class AboutViewController: UITableViewController {
static let cellIdentifier = "AboutCell"
override func viewDidLoad() {
super.viewDidLoad()
tableView.estimatedRowHeight = 100.0;
tableView.rowHeight = UITableViewAutomaticDimension;
tableView.setNeedsLayout()
tableView.layoutIfNeeded()
}
override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 1
}
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 1
}
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell: AboutCell! = tableView.dequeueReusableCellWithIdentifier(AboutViewController.cellIdentifier) as! AboutCell!
cell.setupAboutData()
cell.selectionStyle = .None
return cell
}
}