5

最近、XcodeをXcode5にアップグレードしました...

iPhone/iPad シミュレーターでアプリを実行すると、(物理キーボードを使用して) アプリの UITextfield に書き込もうとすると、Xcode5 出力ウィンドウに次のエラーが表示されることがあります。

<Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

シミュレーター (画面) のキーボードを使用すると問題なく動作しますが、テスト目的で、迅速な開発/テストのために Mac のキーボードで入力したいのですが、これを修正する方法はありますか?

前もって感謝します

4

2 に答える 2

3

この問題は、に移動したときにも発生しましたiOS 7.0。UITextfields の場合、この問題はempty text fields、特に でのみ発生することに気付きましdouble clickingた。したがって、エラーを削除するために次のことを行いました。

myTextField.text = @" "; // Just replaced the textfield text with a 'space' on init
于 2013-12-08T15:05:18.767 に答える