Created
March 10, 2015 22:46
-
-
Save Jamonek/c482b7bc0b7fe4f332db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LayersSubView.swift | |
// Veteran Care Network | |
// | |
// Created by Jamone Alexander Kelly on 3/4/15. | |
// Copyright (c) 2015 Veteran Care Network, LLC. All rights reserved. | |
// | |
import UIKit | |
class LayersSubView: UIViewController { | |
@IBOutlet var medicare: UISwitch! | |
func stateChanged(switchState: UISwitch) { | |
if switchState.on { | |
println("Test On") | |
} else { | |
println("Test Off") | |
} | |
} | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
medicare.addTarget(self, action: Selector("stateChanged:"), forControlEvents: UIControlEvents.ValueChanged) | |
println("Test1") | |
} | |
override func didReceiveMemoryWarning() { | |
super.didReceiveMemoryWarning() | |
// Dispose of any resources that can be recreated. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment