Home > DeveloperSection > Forums > Bring bottom View to Top View while touchesMoved
Andrew Deniel
Andrew Deniel

Total Post:29

Points:203
Posted on    June-04-2013 2:14 AM

 iPhone iPhone 
Ratings:


 1 Reply(s)
 835  View(s)
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. 



AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-05-2013 8:38 AM

Hi Andrew,

Try as following

[self.view bringSubviewToFront:yourView];

Hope this helps...


Don't want to miss updates? Please click the below button!

Follow MindStick