We are implementing an app which seems to have major memory leaks. For an example we have a view with its corrosponding viewmodel that is registered 38 times in the mono pro
A good rule is that containees that are added to NSObject-based classes should only reference containers using WeakReference objects.
Like this:
// MyView is a UIView, which is an NSObject, so the rule will apply here
class MyView : UIView {
WeakReference myController;
public MyView (RectangleF bounds, UIViewController myContainer)
: base (bounds) {
this.myController = myContainer;
}
}