2
所以我創建了一個MonoTouch的默認的TabBar例子。就我而言,我已經用tableviews替換了兩個viewcontrollers的內容。從導航到的TabBar細節
現在,一旦最終用戶點擊一排,我們應該可以導航到詳細信息頁面,是不是一個選項卡。
在:
public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
部分我似乎無法使用pushviewcontroller。有沒有這樣的例子?我見過顯示rowselected警報的例子:
new UIAlertView ("Row Selected", rows [indexPath.Row].Title, null, "OK", null).Show();
tableView.DeselectRow (indexPath, true);
,但我試圖導航到詳細信息頁面,將不會是一個選項卡。
任何幫助?我是一個Mono新手,所以任何示例代碼將不勝感激。
感謝斯圖爾特。這正是我需要的。兩件事情,真的幫了我 - 1)使用UINav控制器作爲RootViewController的,並使用應用程序的委託變量中的appdelegate文件2),能夠在全球範圍內引用viewcontrollers。 //類級別聲明 \t \t公衆的UITabBarController tabBarController {獲得;組; } \t \t public static AppDelegate Self {get;私人設置; } \t \t public UINavigationController MainNavController {get;私人設置; } – Davemen 2013-02-10 17:51:47