A specific StoryBoard for iOs 7 [duplicate]


This question already has an answer here:

<ul><li> <a href="/questions/15725016/how-to-load-multiple-storyboard-files-depending-on-ios-version-5-and-6" dir="ltr" rel="nofollow">How to load multiple storyboard files depending on iOS version? (5 and 6)</a> <span class="question-originals-answer-count"> 1 answer </span> </li> </ul>

I'd like to optimize my app on iOs7 but this is really hard. Xcode looks pretty buggy...

Do you know if it is possible to have 2 storyboards, one for iOs7 and the other for older versions ?

Thanks a lot !


Here's what you need to do. Put this type of logic in your applicationDidFinishLaunchingWithOptions: method of your app delegate:

#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) #define iOS_7_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7") UIStoryboard *storyboard = [UIStoryboard storyboardWithName:iOS_7_OR_LATER ? @"Storyboard-iOS7" : @"MainStoryboard" bundle:nil]; self.window.rootViewController = [storyboard instantiateInitialViewController]; [self.window makeKeyAndVisible];


  • Add space to storyboard scene
  • Could not load NIB in bundle using storyboard
  • G++ compiler: Segfault handling
  • css table - avoid wrapping of table cells
  • Does the CSS 'font-size: medium' set font to .Body font size or to the *browser*'s ba
  • Xcode when adding localization not all storyboards are found
  • Chef recipe for RoR Heroku
  • “Complex Header” not responsive in current DataTables.net build?
  • How to get to older Xcode beta version?
  • SQL: Getting the physical size of a subset of a table
  • Retaining data after updating application
  • how to populate a SQLite database and use that database in phonegap?
  • C# - Most efficient way to iterate through multiple arrays/list
  • How to access meteor package name inside package?
  • Does Apportable support to build library binary (.a/.so)?
  • netsh acl setting (need alternative method - registry settings?)
  • How to handle elastic beanstalk deployment so it uploads only changed files
  • How to get latest version of a artifact on Bintray using JSONP
  • Tell Git to stop prompting me for conflicts when none really exist?
  • Filter strings with regex before casting to numeric
  • xcode don't localize specific strings
  • RxJava debounce by arbitrary value
  • Remove final comma from string in vb.net
  • How to define custom class, title, and target in Link Browser for content elements and the new rte_c
  • onBackPressed() not being executed
  • Java: can you cast Class into a specific interface?
  • swift auto completion not working in Xcode6-Beta
  • AES padding and writing the ciphertext to a disk file
  • Updating server-side rendering client-side
  • How to extract text from Word files using C#?
  • ActionScript 2 vs ActionScript 3 performance
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • python regex in pyparsing
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • -fvisibility=hidden not passed by compiler for Debug builds
  • Why joiner is not used after Sequence generator or Update statergy
  • How do I configure my settings file to work with unit tests?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Binding checkboxes to object values in AngularJs