Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
IGCalendarView slow to load (IG.dll problem ?)
posted

I am running the demo version and evaluating the control for use in a MonoTouch app. Here is the sample code and time in ms from ViewDidLoad to ViewDidAppear, with and without a data source.

	public override void ViewDidLoad()
		{
			base.ViewDidLoad();

			CumulativeStopWatch.Reset();
			CumulativeStopWatch.Start();
	
			this.View.BackgroundColor = UIColor.White;
			this.EdgesForExtendedLayout = UIRectEdge.None;
			
			IGCalendarView calenderView = new IGCalendarView();
			calenderView.AutoresizingMask = UIViewAutoresizing.All;
			calenderView.Frame = View.Frame;
			calenderView.MinYear = 2000;
			calenderView.MaxYear = DateTime.UtcNow.AddYears(1).Year;
			calenderView.Theme = new IGCalendarTheme2();
			
			calenderView.AppointmentDataSources = new NSObject[] { new APDLDataSource() };
			this.View.Add(calenderView);
		}

		public override void ViewDidAppear(bool animated)
		{
			base.ViewDidAppear(animated);

			CumulativeStopWatch.Stop();		
		}

// without calenderView.AppointmentDataSources set

2014-01-21 22:38:32.713 apdl[318:60b] 01/22/2014 04:38:32 InfragisticsTestMonthView ms: 3609

// with calenderView.AppointmentDataSources

2014-01-21 22:39:50.555 apdl[329:60b] 01/22/2014 04:39:50 InfragisticsTestMonthView ms: 3669

Once the control is loaded the it is fast. Any insight on how to improve the viewController performance. The time really needs to be under 88ms

Parents Reply Children
No Data