带十进制错误的Xcode数字键盘

带十进制错误的Xcode数字键盘,xcode,decimal,textfield,keypad,Xcode,Decimal,Textfield,Keypad,在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 us

在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.
Jun 13 01:22:38尼古拉斯·吉布森iPhone快速实用程序[1009]:
CGContextSetFillColorWithColor:上下文0x0无效。这是一个严重的错误。这
应用程序或其使用的库正在使用无效上下文,因此
导致系统稳定性和可靠性的全面降低。此通知是
a:请解决这个问题。这将成为即将进行的更新中的致命错误。
如果你知道这到底意味着什么,你会帮上大忙的!非常感谢

尝试以下操作:

textField.keyboardType = UIKeyboardTypeDecimalPad;

检查您是否在任何地方使用上下文——如果是,请在任何地方重命名它

你正在运行ios7测试版吗?当我在ios7测试版中显示UIActionSheet时,我会遇到同样的错误;但在ios6.1中运行良好。是的!我去过开发者论坛,苹果现在已经修复了这个bug!很抱歉,我在这里发布了这篇文章,当时我还不知道。NicholasGibson-如果你认为这个解决方案对其他人有用,请将@Zemm作为“答案”发布,这样它会更明显。如果没有,您可以删除线程。当我点击打开了可编辑div键盘的webview,然后双击webview时,UIwebView中仍然存在此问题。会出现类似这样的一系列错误,CGContextSetFillColorWithColor CGContextSetBlendMode:无效上下文0x0 CGContextFillRects:无效上下文0x0 CGContextSetBlendMode:无效上下文0x0