title: ios how to hide one uiview and push another uiview at the same position
body: <p>I want to set <strong>myview</strong> hidden and <strong>view</strong> visible, how can I do this. This is the code I got so far but it makes everything hidden.</p>
  
  <pre><code>CGRect frame = CGRectMake(185, 960, 768, 1004); 
  HiUIView *view = [[UIView alloc] initWithFrame:frame];
  view.backgroundColor = [UIColor redColor];
  
  [self.myview addSubview:view];
  [self.myview setHidden:YES];
  </code></pre>