0

我正在将 Tapjoy SDK 代码添加到我的应用程序中,当我运行应用程序时,

我得到这个错误代码:

 property 'showFeaturedBtn' not found on object of type 'UIViewController *'

我正在调用的代码:

// Show the custom Tapjoy full screen featured app ad view.
    if (featuredApp)
    {
        [TapjoyConnect showFeaturedAppFullScreenAdWithViewController:mainCtrl_];
        [mainCtrl_.showFeaturedBtn setEnabled:YES];
        [mainCtrl_.showFeaturedBtn setAlpha:1.0f];
    }
}

它在哪里说:

[mainCtrl_.showFeaturedBtn setEnabled:YES];
[mainCtrl_.showFeaturedBtn setAlpha:1.0f];

我收到 2 个错误说:

 property 'showFeaturedBtn' not found on object of type 'UIViewController *'

有解决办法吗?

4

1 回答 1

0

showFeaturedBtn 是 Tapjoy 示例应用程序中的特定内容,而不是 Tapjoy SDK 中明确的内容。所以你不能在你的应用程序中引用它。这就是您遇到错误的原因。

于 2012-05-17T00:48:43.047 回答