1
有沒有辦法只檢查兩個UIimages是否不同。現在我正在使用以下方法,它工作正常,但需要時間。有其他選擇嗎?如果有任何不匹配區域的像素,它應該返回false。比較兩個UIImage
if ([UIImagePNGRepresentation(lastImage)
isEqualToData:UIImagePNGRepresentation(newImage)])
{
return true;
}
else
{
return false;
}
dupe of http://stackoverflow.com/questions/3400707/cocoa-touch-comparing-images – yfrancis