Mastering iOS 11 Programming by Donny Wals

Mastering iOS 11 Programming by Donny Wals

Author:Donny Wals
Language: eng
Format: mobi, epub
Tags: COM060090 - COMPUTERS / Internet / Application Development, COM051370 - COMPUTERS / Programming / Macintosh, COM051460 - COMPUTERS / Programming / Mobile Devices
Publisher: Packt
Published: 2017-10-27T06:03:47+00:00


dataChanged = true

managedObjectContext.persist {

movie.popularity = popularity

group.leave()

}

}

}

}

group.notify(queue: DispatchQueue.main) {

if dataChanged {

completionHandler(.newData)

} else {

completionHandler(.noData)

}

}

}

In order to test whether background fetching is working well, you can build and run your app. Then, add a new movie so you have a movie for which the ID is stored. Finally, you can use the debug menu item in Xcode that's at the top of your screen to simulate a background refresh. This will trigger a background refresh.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.