我正在将 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 *'
有解决办法吗?
showFeaturedBtn
是专门在 Tapjoy 示例应用程序中的东西,而不是在 Tapjoy SDK 中明确存在的东西。 因此,您无法在应用程序中引用它。 这就是您收到错误的原因。