10

在 xcode 中,当我为我的文本字段打开 .xib 中的小数键盘选项并运行应用程序时,我收到此错误:

Jun 13 01:22:38 Nicholas-Gibsons-iPhone Quick Utilities[1009] <Error>: 
CGContextSetFillColorWithColor: 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.

如果你知道这到底意味着什么,你会帮上大忙的!非常感谢!

4

2 回答 2

1

尝试以下操作:

textField.keyboardType = UIKeyboardTypeDecimalPad;
于 2013-06-13T08:28:06.697 回答
0

检查您是否在任何地方使用上下文- 如果是这样,请在出现的任何地方重命名它。

于 2013-10-14T17:23:22.833 回答