Mám aplikace založené tabbar.
Stavím 2 pohledy, jeden v portrétu a další v krajině režim v Builder Interface.
Teď chci něco jako iPod App. Chci pohled krajiny bude fullscreen, a skrýt tabbar & stavovou lištu.
Dělám práci základům toto:
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
duration:(NSTimeInterval)duration {
if (self.landscape) {
if (toInterfaceOrientation == UIInterfaceOrientationPortrait)
{
self.view = self.portrait;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(360));
}
else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft)
{
self.view = self.landscape;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(-90));
}
else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
self.view = self.landscape;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(90));
}
else
{
self.view = self.portrait;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(-180));
}
}
}
Ale to všechno fungovat chaotický. Pohled na šířku není správně vyplnit prostor a ovládací prvky jsou umístěny v nesprávných místech, diferent jako desingned jako první.
Také jsem ještě nenašel způsob, jak skrýt vše ostatní ...













