I am getting error while converting my app to ARC.The error is :Implicit conversion of int to UItextfield is disallowed with ARC.How to cast them using toll free bridging?-
-(void)textFieldDidEndEditing:(UITextField *)textField {
//if (![textField isEqual:normal]) {
if (textField == numberKeyPad.currentTextField) {
[self.numberKeyPad removeButtonFromKeyboard];
}
if (numberKeyPad.currentTextField ==normal)
{
[self.numberKeyPad removeButtonFromKeyboard];
}
}
I am getting the error for if (numberKeyPad.currentTextField ==normal) line.How to resolve it?
You are comparing object (
UITextField) with primitive type (int). Because of that compiler is throwing an error.Try this –