Support iOS 8 while using Stacked Views?

At WWDC last week it was mentioned a few times that we should aim to support the two most recent versions of iOS (i.e. 8 and 9) in come fall. However, it was also mentioned that we should be able to handle most layout work in Interface Builder, and have to little of it programmatically.


I've wanted to migrate to stacked views the instant I heard about them. They're super practical, but are unfortunately only available for iOS 9 devices. Is there a way to create an alternate IB file that doesn't use stacked views, and use that file for older versions of iOS? I'm unsure as to how I can implement stacked views but also provide an alternate to support <= iOS 8.


Anyone know how to do this? Should I just not support iOS 8 at all? Feels a little bit silly to jump immediately to only iOS 9.

What about creating a sepparate target for iOS8 and iOS9?

You would need to include appropriate storyboards in each target for the iOS version.

You can set the initial storyboard file in each target.

Just don't use stack views until you're ready to drop iOS 8 support. If you want you're interface to look close to the same on both iOS versions then you're going to have to build said interface without a stack view for one of those iOS versions. Why create more work for yourself by maintaining two copies of your interface?

Support iOS 8 while using Stacked Views?
 
 
Q