Cannot convert value of type 'NSMutableDictionary' to type '[NSObject: AnyObject]' in coercion for google ios Analytics

前端 未结 4 2010
南方客
南方客 2020-12-14 16:42

I want to add google Analytics ios into my project but i got some problems when i tried to paste their code into my app like the code below.

var tracker = GA         


        
4条回答
  •  被撕碎了的回忆
    2020-12-14 17:13

    Small follow up on the amazing answers, in swift 3, the method is

    let builder:NSObject = GAIDictionaryBuilder.createEvent(withCategory: category, action: eventName, label: label, value: nil).build()
    

提交回复
热议问题