Hello all,
I would like to know how to remove duplicate nsoperations, i.e is there a way to check the nsoperation queue and see if I am making a duplicate request?
Basically, I am requesting images depending on the iphone screen rotation. When the view is loaded the shouldautorate is called twice.
If(rotation==portrait){
request portrait image.
}
The issue is that shoud autorotate will be checked twice. And on both ocassions, it will turn out to be portrait hence requesting the same image twice. Anyone with a good idea? I forgot to mention I am using a queue.
Thanks.