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 of uitextinputmode instances. however, in xcode 7 gm, method signature in header file , documentation states returns array of strings, incorrect. result, code uses activeinputmodes correctly no longer compiles, , attempting use activeinputmodes in playground throws exception.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -