Created
April 10, 2018 21:02
-
-
Save jasonyunjoonpark/b65e583b2b4c8a058e869802976343b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
fetchdata() | |
doSomethingAfterDataFetchIsFinished() | |
} | |
func fetchdata() { | |
//get data | |
} | |
func doSomethingAfterDatFetchIsFinished() { | |
print("data fetch is done") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.