Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using UIKit;
- namespace testernew
- {
- public class TableSource : UITableViewSource
- {
- unclass[] tableItems;
- string cellIdentifier = "TableCell";
- public TableSource (unclass[] items)
- {
- tableItems = items;
- }
- public override nint RowsInSection (UITableView tableview, nint section)
- {
- return tableItems.Length;
- }
- public override nfloat GetHeightForRow (UITableView tableView, Foundation.NSIndexPath indexPath)
- {
- return 340;
- }
- public override UITableViewCell GetCell (UITableView tableView, Foundation.NSIndexPath indexPath)
- {
- var cell = tableView.DequeueReusableCell (cellIdentifier) as CustomVegeCell;
- if (cell == null) {
- cell = new CustomVegeCell(cellIdentifier);
- }
- cell.UpdateCell (tableItems [indexPath.Row].imager);
- //tableItems[indexPath.Row].
- //cell.TextLabel.Text = tableItems [indexPath.Row].;
- //c//ell.ImageView.Image = UIImage.FromFile ("babymon.png");
- return cell;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement