i have a viewcontroller 1 and a viewcontroller 2. I want to make a switch statement. If it's an iphone, then go to viewcontroller 1, and if it's an ipad, go to viewcontroller 2.
I know i have to do this code:
switch UIDevice.currentDevice().userInterfaceIdiom {
case .Phone:
// It's an iPhone
case.Pad
// It's an iPad:
case .Unspecified:
// Uh, oh! What could it be?
}
But what's next? Sorry, i know that i'm a beginner, but hope you guys can help me. That would be great.