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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

Fatal error: Call to undefined function menu_execute_active_handler() in drupal 7.9 -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -