Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make view appear over button? Objective-c
    text
    copied!<p>What I do to display a view when a user taps on something I hide a view out of sight and then slide it in. It slides over my segment control but not over my button. <img src="https://i.stack.imgur.com/QEozE.png" alt="enter image description here"> The second image shows my slide event going over the segment control but not the button leaving the button there which looks awkward. How can I show a slide coming from the right that appears over all my components including my today button? <img src="https://i.stack.imgur.com/1n8Al.png" alt="enter image description here"></p> <p>here is my code to show the slide controller.</p> <pre><code> self.eventsViewController = nil; self.eventsViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"eventsViewController"]; self.eventsViewController.view.frame = CGRectMake(self.view.frame.size.width, self.view.frame.origin.y, 700, self.view.frame.size.height); [self addChildViewController:self.eventsViewController]; [self.view addSubview:self.eventsViewController.view]; [self.eventsViewController didMoveToParentViewController:self]; [UIView animateWithDuration:0.44 animations: ^(void){ if (UIInterfaceOrientationIsPortrait(self.interfaceOrientation)) { self.eventsViewController.view.frame = CGRectMake(200 , 75 ,568 ,900); } else { self.eventsViewController.view.frame = CGRectMake(333 , 75 ,690 ,630); } }]; </code></pre> <p><strong>edit: image of eventsViewController with colour</strong></p> <p><img src="https://i.stack.imgur.com/M72b8.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload