简体   繁体   中英

How to handle different iPhone-storyboards with Xcode 6

I created my project back before iOS8 and Xcode 6 came out. I'm supporting down to iOS 6.0, and have two Storyboards, one for iPhone and one for iPad. Now, in Xcode 6, I'd like to add support for the new screen sizes (iPhone 6/6plus). When creating a new Storyboard, it is using the new format (square), which is good, but I'm not sure how to proceed. Can I decide which devices uses which storyboards? Or is the new Storyboard-setup supported on older iOS-versions?

Can I throw away my old Main_iPhone.storyboard and create a new Xcode6-storyboard (with support for iPhone 6-sizes) while still supporting iOS 6/7? Or do I have to keep the old storyboards to work with versions below iOS8?

If I need to keep them, where do I set the logic for which devices use which storyboards?

we can use more then one story board in one project.and call particular story board and identify the particular viewcontroller according to the identifier.

UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];

PlaceDetailViewController *place=[mainStoryboard instantiateViewControllerWithIdentifier:@"placedetail"];

  [self.navigationController pushViewController:place animated:YES];

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM