1

私はUITabBarControllerのセクションをタップするとモーダルビューを表示するか、GroupMeアプリケーションに含まれているようなuipopoverbackgroundviewを表示します。 (参照のために画像が含まれています)。 Monotouch UITabBarControllerセクションモーダルビューを表示

http://wpuploads.appadvice.com/wp-content/uploads/2011/09/groupme-iphone-app-300x452-199x300.jpg

あなたはMonoTouchで代わりにビューコントローラとからNavControllerの標準搭載でこれを取得する方法を知っていますか?

...「もっと詳細」セクションに表示されるように、オプションがタブバーの番号7であるため、「タブバーの上に装飾されたボタンを配置する」という回避策を使用できないため、コントロールの...任意のヘルプは非常に高く評価されます。

答えて

0

私はPopoverとDialogを使ってこのようなものを実装しました。

私は押されたときにドロップダウンリストをポップアップして、異なる企業間で選択できるようにするbarbuttonitemを持っています。 myPopControllerはクラスレベルの変数で、文字列要素内のラムダ式は特定の関数にリダイレクトされます。

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); 
    } 
以下のコード