issues with viewWithTag in iphone
<p>I am using this method to delete 3 different stack object( A , B ,C) , but sometime delete order changes and it start deleting other stack object , lets say i click on A del button , but it delete B stack button</p>

<p>// for A  stack Deletion
- (IBAction)delWhis:(id)sender {</p>

<pre><code>if(j&gt;1)
    {
    j--;

    [[self.view viewWithTag:j] removeFromSuperview];


        {
        NSLog(@" whisky  ration is  %d",width1);
        width1 = width1 +38;


        }


    }
</code></pre>

<p>}</p>

<p>// for B stack deletion 
- (IBAction)delWhiskkk:(id)sender {</p>

<pre><code>if(ji&gt;1)
    {
    ji--;

    [[self.view viewWithTag:ji] removeFromSuperview];


        {
        NSLog(@" whisky  ration is  %d",width1);
        width1 = width1 +38;


        }


    }
</code></pre>

<p>}</p>

<p>anyidea how to fix this</p>

<p>thanks</p>
