车辆类
{
[Entry ("Typ")]
public string typ;
[Entry ("Name")]
public string name;
[RadioSelection("ListOfString")]
public int selected=0;
public IList<string> ListOfString;
}
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
Fahrzeug x = new Fahrzeug();
x.typ="Neuwagen";
x.name="BMW X3";
x.ListOfString=new List<string>();
x.ListOfString.Add("asdf");
x.ListOfString.Add("bsdf");
var bc= new BindingContext(null,x,"asdf");
var dv = new MonoTouch.Dialog.DialogViewController(bc.Root,true);
dv.WantsFullScreenLayout=false;
dv.View.BackgroundColor=UIColor.DarkGray;
this.startview.AddSubview(dv.View);
你好,我有上面的代码。 startview不是全屏的,上面有一个导航栏, 正常的dv也超出了导航栏, 但是当我点击ILIST来改变值时,ILIST是全屏的,所以我无法返回,...重要的是,实际上是一个UIView,我想在一个uiview中使用它,..并且我想使用反射,因为这样我可以直接序列化数据 有什么想法吗?
UINavigationController
中嵌套了一个DialogViewController
,而这个UINavigationController
又被放置在一个UIPopoverController
中。当我在我的DialogViewController
的根目录中创建一个嵌套根时,我没有得到返回按钮?我尝试设置pushing
选项,如@Darkwood在下面建议的那样,但无济于事。此外,嵌套根元素的控制器是一个UITableViewController
,不确定是否会产生任何影响。 - JamesDialogViewController
上的标题被清除了! - James