需要横屏模式下,在widget中心做一个标签。
[[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)
}
不知道为什么没实现。