Click Event is not firing in iOS

Hi,
I am debuging my iOS application.
I have a SfButton in a Grid.
Clicking on the button has no action.
I cant find a way to fire  the click event.
So far i tried 
ios:VisualElement.CanBecomeFirstResponder="True" in XAML
and
Save_Button.Clicked += new EventHandler(OnSaveClick); in .cs
and
TapGestureRecognizer
Everything with no success.
Click Event is not firing.
In Android everything is working fine.
Is this a bug ?
Any help please.


3 Replies

DD Devakumar Dhanapoosanam Syncfusion Team April 30, 2020 05:49 AM UTC

Hi George, 
 
Greetings from Syncfusion. 
 
We validated your query and we suspected that you may miss to initialize the SfBorderRenderer and SfButtonRenderer in the FinishedLaunching overridden method of the AppDelegate class in the iOS Project as per the code snippet below. 
   
Code Snippet [C#]:  
public override bool FinishedLaunching(UIApplication app, NSDictionary options)  
{  
    global::Xamarin.Forms.Forms.Init();  
    LoadApplication(new App());  
    Syncfusion.XForms.iOS.Border.SfBorderRenderer.Init();  
    Syncfusion.XForms.iOS.Buttons.SfButtonRenderer.Init();  
    return base.FinishedLaunching(app, options);  
}    
  
For more details please refer below ug link:  
   
If your reported issue is not resolved by the above solution, please provide more details on the issue like issue reproducing sample to check further and provide a better solution.  
 
Regards, 
Devakumar D 



GE George April 30, 2020 08:36 AM UTC

Thank you for you answer.
I solved the issue.
Everything is working now.


HM Hemalatha Marikumar Syncfusion Team May 1, 2020 05:25 AM UTC

Hi George, 
 
We are glad to hear that given solution works. 
 
If you need any further assistance, please don't hesitate to contact us. 
 
Regards
Hemalatha M.
 


Loader.
Up arrow icon