-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET MAUI is getting some warnings like: src\Core\src\Platform\iOS\MauiSearchBar.cs(73,31): error MA0003: Subscribing to events with instance method 'OnEditingChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method. But this is a pattern that is OK: picker.ValueChanged += _proxy.OnValueChanged; //... class UIDatePickerProxy { public void OnValueChanged(object? sender, EventArgs e) { } } Added some logic to allow this pattern. I continued to emit MA0003 if `UIDatePickerProxy` is an `NSObject`-subclass.
- Loading branch information
1 parent
fbb22a3
commit 3699191
Showing
2 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters