Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created November 27, 2012 15:41
Show Gist options
  • Select an option

  • Save migueldeicaza/4154897 to your computer and use it in GitHub Desktop.

Select an option

Save migueldeicaza/4154897 to your computer and use it in GitHub Desktop.
Sample to show how to use UITableViewSource in a class
class TransparentOverlay : UIView {
// Note: UITableViewSource is an aggregated version of DataSource + Delegate, convenient
class MySources : UITableViewSource {
TrasparentOverlay container;
public MySources (TrasparentOverlay container)
{
this.container = container;
}
}
public TransparentOverlay ()
{
}
UITableView CreateTableView ()
{
var tableview = new UITableView (....);
tableview.Source = new MySources (this);
return tableview;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment