Skip to content

Instantly share code, notes, and snippets.

@Jamonek
Created March 10, 2015 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jamonek/c482b7bc0b7fe4f332db to your computer and use it in GitHub Desktop.
Save Jamonek/c482b7bc0b7fe4f332db to your computer and use it in GitHub Desktop.
//
// 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