I want to compare if the background color of a UITextField
is at it's default color.
Something like:
if ([blankField.backgroundColor isEqual:nil]
&& [colorField.backgroundColor isEqual:nil])
{
}
I want to compare if the background color of a UITextField
is at it's default color.
Something like:
if ([blankField.backgroundColor isEqual:nil]
&& [colorField.backgroundColor isEqual:nil])
{
}
You can try to sample a portion of each text field and tell if they are the same as each other. Look at this link:How does one compare one image to another to see if they are similar by a certain percentage, on the iPhone? this link talks about how to compare two images to see if they are similar. Hope this helps.