Last active
January 31, 2017 21:09
-
-
Save eriadam/54282d2e2639f67fbbafcf463bcf7a64 to your computer and use it in GitHub Desktop.
iOS-JavaScript sharing data no. 1
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
// Business Logic | |
function doStuff() { | |
// Get query from user | |
// Load data from DB | |
// Show results to user | |
} | |
function fetchDataFromDatabase(query) { | |
// Calling iOS method here | |
} | |
function didReceiveDataFromDatabase(data) { | |
// Receiving data here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment