Skip to content

Instantly share code, notes, and snippets.

@markd2
Created November 3, 2014 17:42
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 markd2/dabb7ae53216227dae75 to your computer and use it in GitHub Desktop.
Save markd2/dabb7ae53216227dae75 to your computer and use it in GitHub Desktop.
let fun: (() -> Bool)? = UIAccessibilityIsReduceMotionEnabled
switch fun {
case .Some(let x):
println("\(x)")
x() // gets here and dies on ios7
default:
println("gronk")
}
Prints out:
(Function)
dyld: lazy symbol binding failed: Symbol not found: _UIAccessibilityIsReduceMotionEnabled
(and then dies horrible nasty death)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment