void CreateScrollViews() { Noktalar = new LokasyonlarTableCell[mekanlar_list.Count]; for (int i = 0; i < mekanlar_list.Count; i++) { var NoktaItem = LokasyonlarTableCell.Create(); NoktaItem.UpdateCell(mekanlar_list[i]); if (i == 0) { NoktaItem.Frame = new CoreGraphics.CGRect(0, 0, UIKit.UIScreen.MainScreen.Bounds.Width, 144f); NoktaItem.UserInteractionEnabled = true; NoktaItem.Tag = i; Action Actionn = () => MekanClick(NoktaItem); UITapGestureRecognizer tapGesture = new UITapGestureRecognizer(Actionn); NoktaItem.AddGestureRecognizer(tapGesture); } else { NoktaItem.Frame = new CoreGraphics.CGRect(UIKit.UIScreen.MainScreen.Bounds.Width * i, 0, UIKit.UIScreen.MainScreen.Bounds.Width, 144f); NoktaItem.UserInteractionEnabled = true; NoktaItem.Tag = i; Action Actionn = () => MekanClick(NoktaItem); UITapGestureRecognizer tapGesture = new UITapGestureRecognizer(Actionn); NoktaItem.AddGestureRecognizer(tapGesture); } Scrolll.AddSubview(NoktaItem); Noktalar[i] = NoktaItem; } Scrolll.ContentSize = new CoreGraphics.CGSize(Noktalar[Noktalar.Length - 1].Frame.Right, 144f); Scrolll.Scrolled += Scrolll_Scrolled; }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var itemss = TableItems[indexPath.Row]; var cell = (LokasyonlarTableCell)tableView.DequeueReusableCell(LokasyonlarTableCell.Key); if (cell == null) { cell = LokasyonlarTableCell.Create(); } cell.UpdateCell(itemss); return(cell); }