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 ofuitextinputmodeinstances. however, in xcode 7 gm, method signature in header file , documentation states returns array of strings, incorrect. result, code usesactiveinputmodescorrectly no longer compiles, , attempting useactiveinputmodesin playground throws exception.
Comments
Post a Comment