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)
}
而且这并没有为我工作由于某种原因...
在此先感谢。