Detectar si el dispositivo es un iPad
switch UIDevice.current.userInterfaceIdiom {
case .phone:
// It's an iPhone
case .pad:
// It's an iPad
case .unspecified:
// Uh, oh! What could it be?
}
#define iPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)