2012-11-21 11:54:50.607 [10152:907] Current Image: <UIImage: 0x20819ae0>
2012-11-21 11:54:50.608 [10152:907] EmptyMark Image: <UIImage: 0x20819ae0>
After App Enters the background and comes back to foreground.
2012-11-21 11:54:57.040 [10152:907] Current Image: <UIImage: 0x20819ae0>
2012-11-21 11:54:57.042 [10152:907] EmptyMark Image: <UIImage: 0x208cc580>
I'm comparing the same image "emptymark.png
" it is added to a button "Current Image" (logged) to the actual file "EmptyMark Image" (Logged) when I come back to the app after it has been in the background EmptyMark returns different from "Current Image" (the image on the button).
I'm getting "EmptyMark Image" using [UIImage imageNamed:@"emptymark.png"]
Should I be holding a reference to emptymark.png
all the time rather then trying to compare from the file?