我将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];我收到两个错误,说明:
property 'showFeaturedBtn' not found on object of type 'UIViewController *'有解决方案吗?
发布于 2012-05-17 08:48:43
showFeaturedBtn是在Tapjoy示例应用程序中明确出现的东西,而不是在Tapjoy SDK中显式出现。所以你不能在你的应用中引用它。这就是你得到错误的原因。
https://stackoverflow.com/questions/10628206
复制相似问题