【发布时间】:2012-11-05 00:36:04
【问题描述】:
有没有办法只检查两个 UIimage 是否不同。现在我正在使用以下方法,它工作正常,但需要时间。有没有其他选择?如果有任何不匹配区域的像素,它应该返回 false。
if ([UIImagePNGRepresentation(lastImage)
isEqualToData:UIImagePNGRepresentation(newImage)] )
{
return true;
}
else
{
return false;
}
【问题讨论】:
标签: ios5 uiimage quartz-graphics