[ios] More correct trick to fix landscape orientation on startup

This commit is contained in:
Alex Zolotarev 2011-09-10 18:23:10 +03:00 committed by Alex Zolotarev
parent df220cf7cd
commit e92c4def4f

View file

@ -305,7 +305,12 @@ NSInteger compareAddress(id l, id r, void * context)
}
m_framework->SetOrientation(newOrientation);
// needed to correctly startup in landscape
[self.view layoutSubviews];
static bool firstCall = true;
if (firstCall)
{
[self.view layoutSubviews];
firstCall = false;
}
}
- (void) OnTerminate