Unity和iOS交互
2022-02-12 本文已影响0人
aaa000
extern "C" void PrivacyPolicy(){
}
extern "C" int GetNetState(){
return 0;
}
extern "C" const char * GetVerName(){
NSDictionary *infos = [[NSBundle mainBundle] infoDictionary];
NSString *version = [infos objectForKey:@"CFBundleShortVersionString"];
return strdup([version UTF8String]);;
}