Я знаю, что в iOS много вопросов о UIDeviceOrientation
, но никто не работал на меня. Я хочу сделать ярлык в Widget
с центром в ландшафтном режиме.Пейзажный режим в WeeApp
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft) ||
([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight))
{
d = 516; //my var to change the Position (The Value is just a test)
}
И это не работает для меня по какой-то причине ...
Спасибо заранее.