Skip to content

Instantly share code, notes, and snippets.

@mobilequickie
Last active September 8, 2018 07:05
Show Gist options
  • Save mobilequickie/bd979ce5553ef3876a62f90ad53860db to your computer and use it in GitHub Desktop.
Save mobilequickie/bd979ce5553ef3876a62f90ad53860db to your computer and use it in GitHub Desktop.
MasterViewController
class MasterViewController: UITableViewController {
var analyticsService: AnalyticsService? = nil
override func viewDidLoad() {
super.viewDidLOad()
analyticsService = (UIApplication.shared.delegate as! AppDelegate).analyticsService
self.analyticsService?.recordEvent("loaded", parameters: ["op":"viewDidLoad"], metrics: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment