mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Fix popover dialog not correctly anchoring to the UIComputerView on iPad
The view was being replaced after the UIAlertController was anchored to it
This commit is contained in:
@@ -552,9 +552,7 @@ static NSMutableSet* hostList;
|
|||||||
longClickAlert.popoverPresentationController.sourceView = view;
|
longClickAlert.popoverPresentationController.sourceView = view;
|
||||||
|
|
||||||
longClickAlert.popoverPresentationController.sourceRect = CGRectMake(view.bounds.size.width / 2.0, view.bounds.size.height / 2.0, 1.0, 1.0); // center of the view
|
longClickAlert.popoverPresentationController.sourceRect = CGRectMake(view.bounds.size.width / 2.0, view.bounds.size.height / 2.0, 1.0, 1.0); // center of the view
|
||||||
[[self activeViewController] presentViewController:longClickAlert animated:YES completion:^{
|
[[self activeViewController] presentViewController:longClickAlert animated:YES completion:nil];
|
||||||
[self updateHosts];
|
|
||||||
}];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) addHostClicked {
|
- (void) addHostClicked {
|
||||||
|
|||||||
Reference in New Issue
Block a user