public override void ViewDidLoad()
{
base.ViewDidLoad();
TabItem1Controller tabItem1Controller = new TabItem1Controller();
TabItem2Controller tabItem2Controller = new TabItem2Controller();
var tabView = new SfTabView();
tabView.Frame = new CGRect(0, 0, View.Frame.Width, View.Frame.Height);
View.AddSubview(tabView);
var tabItems = new TabItemCollection
{
new SfTabItem()
{
Title = "Calls",
Content = tabItem1Controller.View
},
new SfTabItem()
{
Title = "Favorites",
Content = tabItem2Controller.View
}
};
tabView.Items = tabItems;
} |