public override UIKit.UITableViewCell GetCell (Xamarin.Forms.Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv)
		{
			var x = (NativeCell)item;
			Console.WriteLine (x);

			NativeiOSCell c = reusableCell as NativeiOSCell; 

			if (c == null) {
				c = new NativeiOSCell (rid);
			}

			UIImage i = null;
			if (!String.IsNullOrWhiteSpace (x.ImageFilename)) {
				i = UIImage.FromFile ("Images/" + x.ImageFilename + ".jpg");
			}
			c.UpdateCell (x.Name, x.Category, i);

			return c;
		}
Ejemplo n.º 2
0
        public override UIKit.UITableViewCell GetCell(Xamarin.Forms.Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv)
        {
            var x = (NativeCell)item;

            Console.WriteLine(x);

            NativeiOSCell c = reusableCell as NativeiOSCell;

            if (c == null)
            {
                c = new NativeiOSCell(rid);
            }

            UIImage i = null;

            if (!String.IsNullOrWhiteSpace(x.ImageFilename))
            {
                i = UIImage.FromFile("Images/" + x.ImageFilename + ".jpg");
            }
            c.UpdateCell(x.Name, x.Category, i);

            return(c);
        }