Created
November 27, 2012 15:41
-
-
Save migueldeicaza/4154897 to your computer and use it in GitHub Desktop.
Sample to show how to use UITableViewSource in a class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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