oscarimonbox
1/18/2016 - 3:53 PM

Detectar si el dispositivo es un iPad

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)