Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Number pad with decimal error

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!

like image 242
Nicholas Gibson Avatar asked Jun 13 '13 06:06

Nicholas Gibson


1 Answers

try the following :

textField.keyboardType = UIKeyboardTypeDecimalPad;
like image 99
Tarek Hallak Avatar answered Oct 29 '22 19:10

Tarek Hallak