Hello!
I have problem when I want to set some emails as invitees using EventKit (https://developer.apple.com/documentation/eventkit/ekparticipant?language=objc).
This is my code :
and I've got error like this
what's wrong?
thanks
I have problem when I want to set some emails as invitees using EventKit (https://developer.apple.com/documentation/eventkit/ekparticipant?language=objc).
This is my code :
B4X:
Dim ev As CalendarEvent = store.CreateEvent
Dim newEvent As NativeObject = ev
Dim attendee As NativeObject
attendee.Initialize("EKParticipant")
Dim url As NativeObject
url.Initialize("NSURL")
url = url.RunMethod("URLWithString:", Array("mailto:" & "[email protected]"))
Dim attend As List
attend.Initialize
attend.Add(url)
attendee.SetField("URL", attend)
newEvent.SetField("attendees", Array(attendee))
and I've got error like this
B4X:
[<EKParticipant 0x1f64fca80> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key URL.
what's wrong?
thanks
Last edited: