Hi, I've made a save function in my AppDelegate.cs:[Export("Save:")]
public void Save()
{
//This is an extension method that prints the string on a new line e.g str.println
"Saving...".println();
}
I have assigned this method to the default File/Save but when compiling it says in the console: ObjCRuntime.RuntimeException: The registrar found a signature mismatch in the method 'Project.AppDelegate.Save' - the selector 'Save:' indicates the method takes 1 parameters, while the managed method has 0 parameters.
What parameter does this method need?
Answers
Hi @Loch , it seems there are no methods name is called
Save
, and can be Exported in AppDelegate.cs.You can have a check with the method list of UIApplicationDelegate Class .
If there is a
Save
method, you can know what's the argument of it.