вопрос о noob.
i определите ориентацию с помощью:
UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation];
все нормально и dandy, и я изменяю свои текстовые поля и метки в соответствии с сообщенной ориентацией с помощью
if (orientation == UIDeviceOrientationPortrait || orientation == UIDeviceOrientationPortraitUpsideDown)
и else {} для всего остального
проблема, которую я недавно обнаружил, - это когда UIDevice
сообщает UIDeviceOrientationFaceUp
или UIDeviceOrientationFaceDown
. как я могу справиться с этой ситуацией? как узнать, происходит ли UIDeviceOrientationFaceUp
и UIDeviceOrientationFaceDown
в портретной или альбомной ориентации? Я знаю, что устройство обращено вверх или вниз, но я не знаю, должен ли я переместить все в портрет или пейзаж.
Благодарю вас!