I'd like to call a function, which has parameters, from another function. This is the function which should be called: func saveDate(notiz: Notizen){}. I tried this: saveDate(notiz: Notizen)but I'm getting an error. Notizen is a class.
2 Answers
You have to make this call with an instance of Notizen, e.g.
let notizen = Notizen() // Depends on how you create an instance of Notizen saveDate(notizen) Note, that the first parameter name is not used, unless you specify it, e.g.
func saveDate(#notiz: Notizen) { } Would require you to write
saveDate(notiz: notizen)