SfChart are not displaying on IOS and working properly in Android - Xamarin Forms

Syncfusion sfchart working fine in android but generating error in IOS. here is my AppDelegate class code

namespace ProjectName
{   
    [Register ("AppDelegate")] 
    public class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
    {
        public override bool FinishedLaunching (UIApplication app, NSDictionary options)
        {
            new Syncfusion.SfChart.XForms.iOS.Renderers.SfChartRenderer();
            global::Xamarin.Forms.Forms.Init ();
            Appearance.Configure ();
            LoadApplication (new App());
            return base.FinishedLaunching (app, options);
        }
    }
}

If I remove 'new Syncfusion.SFChart.Xforms.IOS.Renderer.SfChartRenderer' from Code it run without generating any error or any result but when I put this line of code then it throw an error which is foundation.monotouchexception objective-c exception thrown


1 Reply

SP Saravana Pandian Murugan Syncfusion Team August 3, 2017 11:03 AM UTC

Hi Hasan, 
 
Thanks for using Syncfusion products. 
 
We were not able to reproduce the reported issue at our end and we have prepared a sample for this. Please check the attached sample. 
 
Note: We suggest you to use Init method of SfChartRenderer as per the below code. 
 
Code Example:  
 
 
new Syncfusion.SfChart.XForms.iOS.Renderers.SfChartRenderer(); 
 
                                      (Or) 
 
Syncfusion.SfChart.XForms.iOS.Renderers.SfChartRenderer.Init(); 
 
 
If you are still facing this issue, please update us the Xamarin Studio / Visual Studio version or updated us the modified sample to reproduce the issue which will be helpful for providing further assistance on this. Please download the sample from the following location. 
 
 
Regards, 
Saravana Pandian M. 
 


Loader.
Up arrow icon