I have this code:
Updated
-(IBAction)editDrivers:(id)sender
{
selDriverBrand = driverBrand;
selDriverModel = driverModel;
selDriverSize = driverSize;
driverParams *IView = [[driverParams alloc] initWithNibName:nil bundle:nil];
CGRect onScreenFrame = IView.view.frame;
//CGRect offScreenFrame = self.view.frame;
CGRect offScreenFrame = CGRectMake(self.view.frame.origin.x, self.view.bounds.size.height, self.view.bounds.size.width, self.view.bounds.size.height);
// ^Fails on this line.
}
and I’m getting an expected identifier before numeric constant error on the indicated line, but I can’t figure out for the life of me why, I am doing the same thing in other functions without any problems.
I never did get it to work dynamically, instead I ended up checking for the iPad and then setting the origin accordingly: