How to init Fabric properly in Swift

时光总嘲笑我的痴心妄想 提交于 2019-12-20 04:56:10

问题


There are two different initialisation method shown in the documents:

A) From here

Fabric.with([Crashlytics.self(), Answers.self()])

B) From here

Fabric.with([Crashlytics.self, Answers.self])

C) This also doesn't make the compiler to complain

Fabric.with([Crashlytics.self, Answers.self()])

D) From nowhere

Fabric.with([Crashlytics(), Answers()])

As I know, A and D are identical. But B gets a Type array. Which one is the correct one? If they don't differ, how does it work?

来源:https://stackoverflow.com/questions/35723308/how-to-init-fabric-properly-in-swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!