Trying hard to get UIImageWriteToSavedPhotosAlbum to work in swift https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/index.html#//apple_ref/c/func/UIImageWriteToSavedPhotosAlbum
The documentation is sadly ONLY in objective C.
Here is my code:
UIImageWriteToSavedPhotosAlbum(uiimage, self, "saveImageComplete:::", nil)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'app.PhotoEditor<0x14a1e400> does not respond to selector
If your method were an Objective-C method, the selector would be something like "saveImageCompleteImage:err:context:". You need to remember that the parameters are part of the name in Objective-C, so
"saveImageComplete:::" doesn't specify a method that could be called
saveImageComplete(image:UIImage,err:NSError,context:UnsafePointer<()>) in Swift.