public override UITableViewCell GetCell(Xamarin.Forms.Cell item, UITableViewCell reusableCell, 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;
		}
Beispiel #2
0
        public override UITableViewCell GetCell(Xamarin.Forms.Cell item, UITableViewCell reusableCell, 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);
        }