在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.
如果您知道这意味着什么,那么您将获得很多帮助!非常感谢!
答案 0 :(得分:1)
尝试以下方法:
textField.keyboardType = UIKeyboardTypeDecimalPad;
答案 1 :(得分:0)
检查您是否在任何地方使用上下文 - 如果是这样,请将其重命名。