jjzjj

fromInterfaceOrientation

全部标签

iphone - 在 iPhone/iPad 上检测 180 度翻转

我正在对我的iPhone应用程序中从纵向到横向的各种View进行重新调整。如果用户执行Portrait->Landscape->Portrait->Landscape(就像我做一些数学运算一样重新定位View),这会很好地工作。但是,如果用户从Portait->Portrait颠倒,或LandscapeLeft->LandscapeRight,我的代码将不起作用。我可以检测到180度翻转并忽略它吗?我尝试了以下方法:-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientat