Xamarin.ios 显示模式视图的Monotouch UITabBarController部分
我想在点击UITabBarController的某个部分时显示一个模式视图,或者可能是一个uipopoverbackgroundview,如GroupMe应用程序中包含的视图。包括图像以供参考 你知道用monotouch来代替标准的导航控制器和视图控制器加载的方法吗Xamarin.ios 显示模式视图的Monotouch UITabBarController部分,xamarin.ios,uitabbarcontroller,modal-dialog,modalviewcontroller,Xamarin.ios,Uitabbarcontroller,Modal Dialog,Modalviewcontroller,我想在点击UITabBarController的某个部分时显示一个模式视图,或者可能是一个uipopoverbackgroundview,如GroupMe应用程序中包含的视图。包括图像以供参考 你知道用monotouch来代替标准的导航控制器和视图控制器加载的方法吗 。。。现在我有一个额外的复杂问题,因为我不能使用在tabbar工作区顶部放置装饰按钮,因为选项是我的tabbar中的数字7,所以它出现在控件的更多部分。。。任何帮助都将不胜感激。我使用popover和Dialog实现了类似的功能 我
。。。现在我有一个额外的复杂问题,因为我不能使用在tabbar工作区顶部放置装饰按钮,因为选项是我的tabbar中的数字7,所以它出现在控件的更多部分。。。任何帮助都将不胜感激。我使用popover和Dialog实现了类似的功能 我有一个按钮,按下时弹出一个下拉列表,让你选择不同的公司。myPopController是一个类级变量,然后string元素中的lambda表达式重定向到特定函数 代码如下
void HandleBtnCompanyhandleClicked (object sender, EventArgs e)
{
if(myPopController != null)
{
myPopController.Dismiss(true);
myPopController.Dispose();
}
//create the view
UIView contentView = new UIView();
contentView.Frame = new RectangleF(new PointF(0,0), new SizeF(320f, 240f));
//create the view controller
UIViewController vc = new UIViewController();
vc.Add(contentView);
//set the popupcontroller
myPopController = new UIPopoverController(vc);
myPopController.PopoverContentSize = new SizeF(320f, 240f);
//Add the elements to the rootelement for the companies
// TODO: change to a DB read eventually
RootElement rt = new RootElement(""){
new Section ("Requests") {
new StringElement ("ABC Company",() => {companyTapped("ABC Company");}),
new StringElement ("Northwind", () => {companyTapped("Northwind");}),
new StringElement ("Initrode", () => {companyTapped("Initrode");}),
new StringElement ("Foo Bars Group", () => {companyTapped("Foo Bars Group");}),
new StringElement ("Widget Corp", () => {companyTapped("Widget Corp");}),
}
};
//create the DVC and add to the popup
DialogViewController dvc = new DialogViewController(rt);
contentView.AddSubview(dvc.View);
myPopController.PresentFromBarButtonItem(btnCompany,UIPopoverArrowDirection.Up,true);
}