Пример #1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            tableView.SortDescriptors = new NSSortDescriptor[] { new NSSortDescriptor("date", false) };

            // Create the Table Data Source and populate it
            var dataSource = new TableViewDataSource(tableView);

            tableView.DataSource = dataSource;
            tableView.Delegate   = new TableViewDelegate(dataSource);
        }
Пример #2
0
 public TableViewDelegate(TableViewDataSource dataSource)
 {
     this.dataSource         = dataSource;
     this.extraTextFieldCell = new NSTextFieldCell();
 }