-
Notifications
You must be signed in to change notification settings - Fork 0
/
TermsConditionsController.swift
46 lines (33 loc) · 1.2 KB
/
TermsConditionsController.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
44
45
46
//
// TermsConditionsController.swift
// comblie
//
// Created by Cal on 11/4/15.
// Copyright © 2015 Comblie. All rights reserved.
//
import UIKit
class TermsConditionsController: UIViewController {
@IBOutlet weak var grayBarHeight: NSLayoutConstraint!
@IBOutlet weak var termsText: UITextView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
self.grayBarHeight.constant = CGFloat(0.5)
self.termsText.contentInset = UIEdgeInsetsMake(3, 0, 5, 0)
}
override func viewDidLayoutSubviews() {
self.termsText.setContentOffset(CGPointMake(0, -3), animated: false)
}
//MARK: Action
@IBAction func back(sender: UIButton) {
self.dismissViewControllerAnimated(true, completion: nil)
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}