为什么我的 PFAnalytics 没有 trackAppOpeneWithLaunchOptions 功能?(IOS SWIFT) [英] Why does my PFAnalytics not have trackAppOpeneWithLaunchOptions function? (IOS SWIFT)

查看:19
本文介绍了为什么我的 PFAnalytics 没有 trackAppOpeneWithLaunchOptions 功能?(IOS SWIFT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误信息:

    'PFAnalytics.Type' does not have a member named 'trackAppOpenedWithLaunchOptions'

所有其他类似的功能都可以工作,例如trackAppOpenedWithLaunchOptionsInBackground.看起来它只是从可用功能列表中消失了.

All other similar functions work, e.g. trackAppOpenedWithLaunchOptionsInBackground. It looks like that it just simply disappears from the list of available functions.

但在我的 PFAnalytics.h 头文件中,trackAppOpenedWithLaunchOptions 被清楚地列出如下:

But in my PFAnalytics.h header file, trackAppOpenedWithLaunchOptions is clearly listed as shown below:

    + (BFTask *)trackAppOpenedWithLaunchOptions:(NSDictionary *)launchOptions;

可能出了什么问题?请帮忙!我正在使用 swift

What might have been wrong? Please help! I am using swift

推荐答案

尝试

PFAnalytics.trackAppOpenedWithLaunchOptionsInBackground(launchOptions, block: nil)

代替

PFAnalytics.trackAppOpenedWithLaunchOptions()

这篇关于为什么我的 PFAnalytics 没有 trackAppOpeneWithLaunchOptions 功能?(IOS SWIFT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆