So I’ve created the default TabBar example in monotouch. In my case, I’ve replaced the two viewcontrollers content with tableviews.
Now once the end user clicks on a row, we should be able to navigate to a details page that is not one of the tabs.
In the:
public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
section I can’t seem to use pushviewcontroller. Is there an example of this? I’ve seen the examples of showing an alert in rowselected:
new UIAlertView ("Row Selected", rows [indexPath.Row].Title, null, "OK", null).Show ();
tableView.DeselectRow (indexPath, true);
but I’m trying to navigate to a details page that wouldn’t be one of the tabs.
Any help? I’m a newbie with Mono so any sample code would be appreciated.
There are quite a few other questions can help with this:
The MonoTouch docs also have a lot of good stuff – download and run the samples on http://docs.xamarin.com/ios/Guides/User_Interface/Tables and you will be a master in no time.
The sample in NavItemTableSource.cs may be particularly useful for you.