[英]Maintaining Backward compatibility iOS7
The question might sound silly but I guess it may be a matter of interest for many developers. 这个问题可能听起来很愚蠢,但我想这可能是许多开发人员感兴趣的问题。 With the launch of Xcode-5 & development being targeted to iOS7, how do I maintain backward compatibility to make the app run properly on older versions of iOS ?
随着Xcode-5的推出和针对iOS7的开发,我如何保持向后兼容性以使应用程序在旧版本的iOS上正常运行?
I see the big challenge with UINavigationController
layout. 我看到
UINavigationController
布局面临的巨大挑战。 With Navigation bar visible, the CGRectMake(0,0, 50, 50)
will take the upper left corner just after Navigationbar but now in iOS-7, it goes behind. 在导航栏可见的情况下,
CGRectMake(0,0, 50, 50)
将在Navigationbar之后的左上角,但现在在iOS-7中,它会落后。 I know the solution to fix this here , but how the same can work for older version when this feature is newly introduced. 我知道解决的办法解决这一问题在这里 ,但对于旧版本如何同样可以工作时,这个功能是新引进的。
What else places do I need to bridge this gap (the backward compatibility) 我还需要哪些其他地方来弥补这一差距(向后兼容性)
在手动布局中使用viewController.topLayoutGuide.length
而不是0, 请参见此处 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.