-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProfileViewController.swift
42 lines (32 loc) · 1.04 KB
/
ProfileViewController.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
//
// ProfileViewController.swift
// SmartChannel
//
// Created by Marc Anderson on 3/5/16.
// Copyright © 2016 SmartChannel. All rights reserved.
//
import UIKit
protocol ProfileViewControllerDelegate: class {
func profileView(profileView: ProfileViewController, didTapMenuButton: UIBarButtonItem)
}
class ProfileViewController: UIViewController {
var containerViewController: HomeViewController!
weak var delegate: ProfileViewControllerDelegate?
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func didTapMenu(sender: UIBarButtonItem) {
delegate?.profileView(self, didTapMenuButton: sender)
}
override func shouldAutorotate() -> Bool {
return false
}
override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
return .Portrait
}
}