Trying to get my iPad app to work in landscape orientation. I would like to change the positions of some of my controls once in landscape mode. I get the log so I know I'm in the method, however, none of my objects move. Am I missing something?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
if(toInterfaceOrientation==UIInterfaceOrientationLandscapeRight ||
toInterfaceOrientation==UIInterfaceOrientationLandscapeLeft)
{
NSLog(@"in landscape");
// I would like to re-position my controls here but not working
image1.frame = CGRectMake(318, 501, 100, 100);
btnNext.frame = CGRectMake(200, 455, 100, 35)
}
}