Hey friends,
I'm running into an issue and I hope someone can help.
I have an overlay with 3 button actions. There's a UIViewController as well as a separate UIView that call this overlay.
Now when I call the overlay from the UIViewController, the buttons work like a charm. However, if I attempt the exact same call from the UIView, nothing happens.
Here's the code snippet:
Code:
-(IBAction)buttonPressed:(UIButton *)sender {
self.typeOverlay = [[[NSBundle mainBundle] loadNibNamed:@"typeSelectOverlay"
owner:nil
options:nil] objectAtIndex:0];
[self.view addSubview:self.typeOverlay];
self.typeOverlay.alpha = 0;
[UIView animateWithDuration:0.3 animations:^{
self.typeOverlay.alpha = 1;
}];
}
What am I doing wrong?
Thanks.