Created
April 1, 2015 17:52
-
-
Save moduscreate/b808214c883be44f06d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Error Condition handling | |
if (writeError) { | |
// Craft a failure message | |
NSDictionary *resultsDict = @{ | |
@"success" : @NO, | |
@"errMsg" : [writeError localizedDescription] | |
}; | |
// Execute the JavaScript failure callback handler | |
failureCallback(@[resultsDict]); | |
} | |
// Success handling | |
else { | |
// Craft a success return message | |
NSDictionary *resultsDict = @{ | |
@"success" : @YES | |
}; | |
// Call the JavaScript sucess handler | |
successCallback(@[resultsDict]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment