Inheritance: UITableViewDataSource
Ejemplo n.º 1
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // If you have defined a view, add it here:
            // window.AddSubview (navigationController.View);

            TableViewDataSource tvdc = new TableViewDataSource();
            this.tvc.TableView.DataSource = tvdc;

            this.searchBar.Delegate = new SearchDelegate(tvc, tvdc);

            window.AddSubview(this.tvc.View);

            window.MakeKeyAndVisible ();

            return true;
        }
Ejemplo n.º 2
0
 public SearchDelegate(UITableViewController tvc, TableViewDataSource tvdc)
     : base()
 {
     this.tvc = tvc;
     this.tvdc = tvdc;
 }