Issue with Google Analytics in Swift 2 or 3

前端 未结 6 1031
北荒
北荒 2020-12-15 03:10

I have a problem with Swift 2 (Swift 3) and Google Analytics.

This is the line with the problem:

tracker.send(GAIDictionaryBuilder.createScreenView(         


        
6条回答
  •  有刺的猬
    2020-12-15 03:45

    For swift 3:

    let build:NSObject = GAIDictionaryBuilder.createScreenView().build()

    tracker?.send(build as! [AnyHashable: Any])

提交回复
热议问题