Hi folks, i need make 2 tables views in one uiview controller. Both tables need your width and height fixed. I am using DialogViewController to make this:
public class MyController : UIViewController { UIView container; DialogViewController dvc;
public override void ViewDidLoad()
{
base.ViewDidLoad();
container = new UIView();
dvc = new DialogViewController(UITableViewStyle.Plain, null, false);
dvc.Root = new RootElement("Config");
var teste = new Section();
teste.Add(new StyledStringElement("Perfis") { BackgroundColor = UIColor.LightGray });
foreach (Profile profile in App.Profiles)
{
teste.Add(new StringElement(profile.Name));
}
dvc.Root.Add(teste);
var menu = new Section() {
new StyledStringElement("Configurações"){BackgroundColor = UIColor.LightGray},
new StringElement("Sobre"),
new StringElement("Avaliar App"),
new StringElement("Site da App"),
new StringElement("Compartilhar App"),
new StringElement("Logar no Facebook"),
new StringElement("Remover Ads"),
};
dvc.Root.Add(menu);
View.AddSubview(container);
}
public override void ViewDidLayoutSubviews()
{
base.ViewDidLayoutSubviews();
float newWidth = View.Bounds.Width / 2;
container.Frame = new RectangleF(0, 0, newWidth, View.Bounds.Height);
container.AddSubview(dvc.View);
}
}
but i don´t have idea, how i can divide this view in 2 table views using the same width and height, using DialogViewController. Thanks!