You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
When launching the app on iPad, our UISplitViewController defaults to showing the child view controller (i.e., the map/example), but this view controller does not load anything until an example is tapped in the primary (menu table view) controller.
This means that UI tests aren’t able to start on iPad, because the elements it expects are not available.
This seems to occur on iOS 13 on iPad where the viewDidLoad is too late (ref)... A workaround for me was to add:
-(void)awakeFromNib {
[super awakeFromNib];
// The menu and example view controllers are displayed side-by-side onscreen.
self.splitViewController.preferredDisplayMode = UISplitViewControllerDisplayModeAllVisible;
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When launching the app on iPad, our
UISplitViewController
defaults to showing the child view controller (i.e., the map/example), but this view controller does not load anything until an example is tapped in the primary (menu table view) controller.This means that UI tests aren’t able to start on iPad, because the elements it expects are not available.
We may need to fiddle with this property:
ios-sdk-examples/Examples/ExamplesTableViewController.m
Line 47 in 4dbe089
Screenshots
Nothing loads initially
Rotating the screen a few times brings up the primary controller
/cc @captainbarbosa @julianrex @lloydsheng
The text was updated successfully, but these errors were encountered: