24. Wrapper type と User type
Xamarin.iOS における GC の挙動を考える上で、
2つの型の区別はとても重要になります。
24
public override void ViewDidLoad()
{
base.ViewDidLoad();
var button = new UIButton();
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
var button = new MyButton();
}
public class MyButton : UIButton
{
public string Id { get; set; }
}
Wrapper type
User type