BRING BOTTOM VIEW TO TOP VIEW WHILE TOUCHESMOVED

Andrew Deniel

Total Post:29

Points:203
Posted by  Andrew Deniel
iPhone 
 1142  View(s)
Ratings:
Rate this:
Hi Everyone,

I have a grid of views, which are being added as subviews to a main view. When I drag a view which was added prior to the next one, and try to drag it underlays the view rather than overlay that view. How can I fix that content while the view are being dragged on touchesMoved?

Thanks in advance. 

  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: Bring bottom View to Top View while touchesMoved

    Hi Andrew,


    Try as following

    [self.view bringSubviewToFront:yourView];

    Hope this helps...

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!