EKEventEditViewAction compiler error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

EKEventEditViewAction compiler error

John G
When I'm implementing the function below, I get a compiler error on the last line of this snippet that says 'EKEventEditViewAction' is not convertible to 'NSObject' which I don't really understand as they should be both 'EKEventEditViewAction's. Am I missing something?

func eventEditViewController(controller: EKEventEditViewController!, didCompleteWithAction action: EKEventEditViewAction) {

       controller.dismissViewControllerAnimated(true, completion: nil)

       if (action == EKEventEditViewActionSaved) {

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/6a6736e9-c2df-4c41-b68f-2dd3f1e4fe26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.