-
Notifications
You must be signed in to change notification settings - Fork 1
/
ParentSearchViewController.swift
executable file
·47 lines (36 loc) · 1.11 KB
/
ParentSearchViewController.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
47
//
// ParentSearchViewController.swift
// Shoes
//
// Created by Victor Frolov on 1/20/16.
// Copyright © 2016 Victor Frolov. All rights reserved.
//
import UIKit
import CoreLocation
class ParentSearchViewController: UIViewController, CLLocationManagerDelegate {
var locationManager: CLLocationManager!
override func viewDidLoad() {
super.viewDidLoad()
self.automaticallyAdjustsScrollViewInsets = false
locationManager = CLLocationManager()
locationManager.delegate = self
locationManager.requestWhenInUseAuthorization()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
@IBOutlet weak var curatedView: UIView!
@IBOutlet weak var quickView: UIView!
@IBAction func indexChanged(sender: AnyObject) {
switch sender.selectedSegmentIndex {
case 0 :
curatedView.hidden = false
quickView.hidden = true
case 1:
curatedView.hidden = true
quickView.hidden = false
default:
break
}
}
}