ios - UITextInputMode.activeInputModes() crashes in Swift 2 -
i want uitextinputmode in swift 2 uitextinputmode.activeinputmodes()
crashes.
let x = uitextinputmode.activeinputmodes() // crash here t in x { print(t) }
it bug in xcode 7 mentioned here. says:
summary:
prior xcode 7 gm,
uitextinputmode.activeinputmodes()
returned array ofuitextinputmode
instances. however, in xcode 7 gm, method signature in header file , documentation states returns array of strings, incorrect. result, code usesactiveinputmodes
correctly no longer compiles, , attempting useactiveinputmodes
in playground throws exception.
Comments
Post a Comment