Xcode数字键盘,十进制错误 [英] Xcode Number pad with decimal error

查看:104
本文介绍了Xcode数字键盘,十进制错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In xcode when I turn on the decimal pad keyboard option in the .xib for my textfield, and I run the application, I receive this error:

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.

如果您知道这到底意味着什么,那么您将获得很多帮助!非常感谢!

If you have any idea what this really means, you would be a lot of help! Thanks so much!

推荐答案

尝试以下操作:

textField.keyboardType = UIKeyboardTypeDecimalPad;

这篇关于Xcode数字键盘,十进制错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆