I have a storyboard with one view controller that pushes another view controller with this code:
UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"adVideo"];
[self presentViewController:viewController animated:NO completion:nil];
In the view controller being pushed, there is a UIView that I'm trying to get the frame for so that I can use it to place another object. I've connected it to a UIView IBOUTLET property in my viewcontroller class and then in viewDidAppear for that view controller I call on the frame but it comes up as empty (0,0,0,0).
-(void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
NSLog(@"%f %f %f %f", self.videoView.frame.origin.x, self.videoView.frame.origin.y, self.videoView.frame.size.width, self.videoView.frame.size.height);
}
What's the reason for the videoView not being loaded by that point so that the frame can be passed?