Calling this method resizes the UIKit.UIView so that it just encloses its subviews. Some UIKit.UIView that do not have their UIView.Superview property set resize themselves to the screen bounds, so application developers should generally make sure that they have assembled an appropriate view hierarchy before calling UIView.SizeToFit.
Application developers should not override this method. Instead, application developers should override UIView.SizeThatFits, which this method will call.