1
我知道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)
}
而且這並沒有爲我工作由於某種原因...
在此先感謝。