When I try to NSLog my image with this;
NSLog([images description]);
this appears:
2012-06-05 10:31:38.801 Project1[1180:1a303] (
"<UIImage: 0x9a52bb0>",
"<UIImage: 0x9c89460>",
"<UIImage: 0x9c9c720>",
"<UIImage: 0x8e4ee70>",
"<UIImage: 0x8e805f0>"
)
I’m loading my UIImage from a NSDocumentDirectory.Could someone explain whats this.
It looks like your
imagesobject is anNSArray(or similar array like object) ofUIImages. When youNSLogthe description of theimagesarray it is listing the objects in the array and callingdescriptionon each of those objects. As it doesn’t make sense to get a text description of an image it instead prints the object type, in this case ‘UIImage’, and the address of the object in memory, e.g.0x9a52bb0.I’m not sure what you mean by “And how to make this into NSInteger?’ It doesn’t make sense to convert an image into an integer.