ios how to hide one uiview and push another uiview at the same position

May 20, 2013 in answer

0 votes, 0.00 avg. rating (0% score)

ANSWER:

why not put both views in a container? let the current vc’s view be the container of your views.

Maybe you can do something like this:

UIView *view = [[UIView alloc]initWithFrame:self.myview.frame];
[self.view addSubView:self.myview];
[self.view addSubView:view];
self.myview.hidden = YES;

Joshua from http://stackoverflow.com/questions/16661205