IOS7 backward compatibility support

The question may seem silly, but I think it might interest many developers. With the launch of Xcode-5 and development focused on iOS7, how can I support backward compatibility so that the application works correctly in earlier versions of iOS?

I see a big problem with the layout of the UINavigationController . When the navigation bar is visible, CGRectMake(0,0, 50, 50) will be the upper left corner immediately after the Navigationbar, but now it lags behind in iOS-7. I know a solution to fix this here , but how the same could work for an older version when this function was first introduced.

What other places do I need to bridge this gap (backward compatibility)

+4
source share
1 answer

Use viewController.topLayoutGuide.length instead of 0 in the layout, see here .

+1
source

All Articles