There are several problems with your code:
imageEditorView
is the name of a class. That will not work as a message argument. You need to pass a reference to an object.You have an extra colon after
imageEditorView
, beforeanimated
. You need to remove it.Sending
dismissViewControllerAnimated:completion:
toself
insideapplication:didFinishLaunchingWithOptions:
doesn't make any sense. Either you are defining this method in your application delegate, which doesn't understand thedismissViewControllerAnimated:completion:
message, or you are defining it in a view controller, in which caseapplication:didFinishLaunchingWithOptions:
will not be called (unless you write code to explicitly call it, which would also be very unusual).
Based on all these errors, I suspect that you do not really know much Objective-C or iOS programming at all. You need to work through some tutorials to learn the basics, because these are very basic errors.