We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

131907 Aug 2,2017 02:58 PM UTC Aug 3,2017 11:03 AM UTC Xamarin.Forms 1
loading
Tags: SfChart
Hasan Ahmed
Asked On August 2, 2017 02:58 PM UTC

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


Saravana Pandian Murugan [Syncfusion]
Replied On 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. 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;