我想在我的应用中添加RevMob添加,但有一些错误
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in RevMobAds(RevMobStoreController.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[RevMobStoreController openStoreWithITunesItemId:] in RevMobAds(RevMobStoreController.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我已经加入StoreKit,SystemConfiguration和RevMob框架了.我正在使用Xcode4.3和ios4.2 Plz帮助我.提前致谢.
我收到一个错误:
不兼容的块指针类型将'void(^)(NSString*_ strong)'发送到'void(^)类型的参数(NSString* _strong,NSData*__ strong)'
当我MKStoreKit 4.3在我的应用程序中实现onComplete时:
-(IBAction)purchaseFull {
[[MKStoreManager sharedManager] buyFeature:@"productID"
onComplete:^(NSString* purchasedFeature)
{
NSLog(@"Purchased: %@", purchasedFeature);
//purchaseBtn.hidden = YES;
}
onCancelled:^
{
NSLog(@"User Cancelled Transaction");
}];
}
Run Code Online (Sandbox Code Playgroud) 我正在本地化我的应用程序,这是cocos2d所以没有nib文件,我正在本地化一个标签很好,但想检查设备语言,为每种语言设置确切的字体和字体大小.总之,我想这样做如下:
If (device.language == en) {
Set font to "fontname" and "fontsize" to x;
} else {
set it to "another font name" and font size to y;
}
Run Code Online (Sandbox Code Playgroud)
如何检查设备语言/设置是否设置为确切的语言?