Configuration

Interface Orientation (2.1.7+)

By default the Yoco SDK will operate in portrait mode when running on a mobile phone, and will only allow a landscape orientation when running on a tablet. You can override this behaviour by setting the allowed orientation:

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
[YocoClient setSupportedInterfaceOrientations:UIInterfaceOrientationMaskAll];
}

‚Äč