Balram Tiwari
Balram Tiwari

Reputation: 5667

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 ?

I see the big challenge with UINavigationControllerlayout. 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. 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)

Upvotes: 4

Views: 704

Answers (1)

ilya n.
ilya n.

Reputation: 18826

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

Upvotes: 1

Related Questions