I want to use IOS6 new features like autolayout, but also make my app compatible with ios5 and ios4 , does this mean i have to have 2 different version of application, when I decide to submit it to the apple store ?
iOS
Last Comment
darbid73
8/22/2022 - Mon
darbid73
In my opinion Apple does not really promote or make it easy to target "old" iOS versions. For example with xCode 4.5 you will have trouble testing ios4 now anyway. Also iPhone 3G will also no longer be testable with Xcode.
So with this in mind the answer to your question is that you have to code for both features. The old springs and struts is automatically translated by iOS 6 into auto layout, but the reverse does not happen.
This will explain the issues of using both, but unfortunately only really discusses moving to auto layout and assumes the user is using iOS 6.
sniger
ASKER
ok, so how could I condition that if OS6 use autolayouts and if older use struts ?
Is it possible ?. Can I get away with just writing an app which works only on IOS 6 ?
So with this in mind the answer to your question is that you have to code for both features. The old springs and struts is automatically translated by iOS 6 into auto layout, but the reverse does not happen.
I could paraphrase all the things you need to think about when using both the old and new for your layout but read the last section on "Adoption Auto Layout"
This will explain the issues of using both, but unfortunately only really discusses moving to auto layout and assumes the user is using iOS 6.