0
我想比较UITextField
的背景颜色是否为默认颜色。知道textField背景颜色是否为默认颜色
喜欢的东西:
if ([blankField.backgroundColor isEqual:nil]
&& [colorField.backgroundColor isEqual:nil])
{
}
我想比较UITextField
的背景颜色是否为默认颜色。知道textField背景颜色是否为默认颜色
喜欢的东西:
if ([blankField.backgroundColor isEqual:nil]
&& [colorField.backgroundColor isEqual:nil])
{
}
你可以试着品尝每个文本字段的一部分,并告诉它们是否彼此相同。看看这个链接:How does one compare one image to another to see if they are similar by a certain percentage, on the iPhone?这个链接讲述如何比较两张图片,看看它们是否相似。希望这可以帮助。
http://stackoverflow.com/questions/10942239/comparing-two-uicolors-is-not-working-in-the-first-time – iDev