Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit d89645c

Browse files
[xcode11] Fix ambiguous calls due to new APIs (#383)
- Fixes xamarin/maccore#1910 - Fixes xamarin/maccore#1877
1 parent f3844a2 commit d89645c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ios11/WeatherWidget/WeatherWidget.Shared/Weather.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static string GetImageAssetName(this Weather self)
4444
public static UIImage GetImageAsset(this Weather self)
4545
{
4646
var assetName = self.GetImageAssetName();
47-
var image = UIImage.FromBundle(assetName, null, null);
47+
var image = UIImage.FromBundle(assetName);
4848
if (image == null)
4949
{
5050
throw new Exception($"Expected an image named {assetName}");

ios12/ExceptionalAccessibility/ExceptionalAccessibility/ViewController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public override void ViewDidLoad()
6060
this.shelterInfoView.IsAccessibilityElement = true;
6161
this.shelterInfoView.AccessibilityCustomActions = new UIAccessibilityCustomAction[]
6262
{
63-
new UIAccessibilityCustomAction("Call", this.ActivateCallButton),
64-
new UIAccessibilityCustomAction("Open address in Maps", this.ActivateLocationButton)
63+
new UIAccessibilityCustomAction("Call", probe: ActivateCallButton),
64+
new UIAccessibilityCustomAction("Open address in Maps", probe: ActivateLocationButton)
6565
};
6666
}
6767

ios8/HelloGoodbye/HelloGoodbye/Screens/MatchesViewController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ CardView AddCardViewToView(UIView containerView)
122122
cv.AddGestureRecognizer (swipeDownRecognizer);
123123

124124
string sayHelloName = "Say hello".LocalizedString (@"Accessibility action to say hello");
125-
helloAction = new UIAccessibilityCustomAction (sayHelloName, SayHello);
125+
helloAction = new UIAccessibilityCustomAction (sayHelloName, probe: SayHello);
126126

127127
string sayGoodbyeName = "Say goodbye".LocalizedString ("Accessibility action to say goodbye");
128-
goodbyeAction = new UIAccessibilityCustomAction (sayGoodbyeName, SayGoodbye);
128+
goodbyeAction = new UIAccessibilityCustomAction (sayGoodbyeName, probe: SayGoodbye);
129129

130130
UIView[] elements = NSArray.FromArray<UIView> ((NSArray)cv.GetAccessibilityElements ());
131131
foreach (UIView element in elements)

0 commit comments

Comments
 (0)