void FillDataModel() { var yukseklik = (UIKit.UIScreen.MainScreen.Bounds.Width - 2) / 3; yukseklik += (yukseklik) / 2f; var RowCount = UcluRowSayisiGetir(); Noktalar = new LokasyondakiKisilerUcluSet[RowCount]; for (int i = 0; i < RowCount; i++) { var NoktaItem = LokasyondakiKisilerUcluSet.Create(); if (i == 0) { NoktaItem.Frame = new CoreGraphics.CGRect(0, 0, UIKit.UIScreen.MainScreen.Bounds.Width, yukseklik); } else { NoktaItem.Frame = new CoreGraphics.CGRect(0, yukseklik * i, UIKit.UIScreen.MainScreen.Bounds.Width, yukseklik); } ScrollVieww.AddSubview(NoktaItem); Noktalar[i] = NoktaItem; } if (Noktalar.Length > 0) { ScrollVieww.ContentSize = new CoreGraphics.CGSize(UIKit.UIScreen.MainScreen.Bounds.Width, Noktalar[Noktalar.Length - 1].Frame.Bottom); BekletVeUygulaAsync(); } }
public override void ViewDidAppear(bool animated) { base.ViewDidAppear(animated); if (!Actimi) { var MainStoryBoard = UIStoryboard.FromName("PublicProfileBaseVC", NSBundle.MainBundle); var PublicProfileVC1 = MainStoryBoard.InstantiateViewController("PublicProfileVC") as PublicProfileVC; PublicProfileVC1.GelenBase = this; var viewController = PublicProfileVC1; viewController.View.Frame = new CoreGraphics.CGRect(0, 0, UIScreen.MainScreen.Bounds.Width - 10, 820); viewController.WillMoveToParentViewController(this); ScrollVieww.AddSubview(viewController.View); this.AddChildViewController(viewController); viewController.DidMoveToParentViewController(this); ScrollVieww.ContentSize = new CoreGraphics.CGSize(UIScreen.MainScreen.Bounds.Width - 10, 820); ScrollTopp(); Actimi = true; } }