可以在Monotouch.Dialog上只读取EntryElement吗?

Hus*_*Rad 4 iphone xamarin.ios monotouch.dialog

我正在使用Monotouch.Dialog在我的iphone monotouch应用程序中创建页面.问题是,是否有一种方法可以在表格中只读取条目元素?

小智 5

继承EntryElement并覆盖CreateTextField

    protected override UITextField CreateTextField(System.Drawing.RectangleF frame)
    {
        var field = base.CreateTextField(frame);
        field.Enabled = false;
        return field;
    }
Run Code Online (Sandbox Code Playgroud)