Why is init and initWithFrame: always called for my Xamarin iOS Component UIView subclass

Hi everyone!
I have a Xamarin iOS Component which exposes a custom UIView subclass. When I instantiate a object of this class, I noticed that -init and -initWithFrame: are both called. My ApiDefinition.cs file does not contain any Constructor definition. I found a statement in the Xamarin documentation that four Constructors are created by default, including one that calls init.
My question now is: how can I control the behaviour of Xamarin on which initialiser is called.

PS: My code simply calls the constructor without parameters, so I would expect that only init is called but initWithFrame: is called as well with a rect that is zero for all fields.

Sign In or Register to comment.