I'm trying to bring a view to front and later set the frame from this view.
But the position doesn't change. If I comment the line [viewGeral bringSubviewToFront:viewSearchPp]; and set the viewSearchPp's frame. It works
[viewGeral bringSubviewToFront:viewSearchPp];
[viewSearchPp setFrame:CGRectMake(viewSearchPp.frame.origin.x, viewSearchPp.frame.origin.y + 100, viewSearchPp.frame.size.width, viewSearchPp.frame.size.height - 100)];
It should not be bringSubviewToFront and after that setFrame, it should be setFrame and after that bringSubviewToFront.
It should be like