4

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)

2
  • see this link, stackoverflow.com/questions/18775874/…. In previous versions, you need to set the xib like this. Commented Sep 26, 2013 at 5:33
  • @karthika : I want to mention that I prefer working with Custom Views. So for, all that Drag/Drop/setting properties, I prefer writing codes. I was expecting some answer to keep backward compatibility via code. Commented Sep 26, 2013 at 5:38

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.