iOS使用广告标示符审核不通过解决方案
2014-11-03 11:40
465 查看
最近,iOS审核,6.0以后,应用如果没有广告,而使用了AdSupport.framework,就会被reject
应用中原来的写法
本文出自 “码路” 博客,请务必保留此出处http://roybaby.blog.51cto.com/1508945/1571176
应用中原来的写法
// NSString *adId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]; // // adId=[adId stringByReplacingOccurrencesOfString:@"-" withString:@""]; // // return adId;楼主使用如下部分替换,并且删除Link Binary中的AdSupport.framework的引用
NSBundle *adSupportBundle = [NSBundle bundleWithPath:@"/System/Library/Frameworks/AdSupport.framework"]; [adSupportBundle load]; if (adSupportBundle == nil) { return @""; } else{ Class asIdentifierMClass = NSClassFromString(@"ASIdentifierManager"); if(asIdentifierMClass == nil){ return @""; } else{ ASIdentifierManager *asIM = [[asIdentifierMClass alloc] init]; if (asIM == nil) { return @""; } else{ if(asIM.advertisingTrackingEnabled){ return [asIM.advertisingIdentifier UUIDString]; } else{ return [asIM.advertisingIdentifier UUIDString]; } } } }多个版本均已审核通过
本文出自 “码路” 博客,请务必保留此出处http://roybaby.blog.51cto.com/1508945/1571176
相关文章推荐
- iOS提交审核:您的 App 正在使用广告标识符 (IDFA)
- iOS提交审核:您的 App 正在使用广告标识符 (IDFA)
- iOS提交审核:您的 App 正在使用广告标识符 (IDFA)
- iOS审核提交IDFA广告标示符拒绝
- iOS 如何查看app提交审核是否使用广告标识符(IDFA)
- iOS提交审核:您的 App 正在使用广告标识符 (IDFA)
- iOS提交审核:关于您的 App 正在使用广告标识符 (IDFA)的问题
- iOS提交审核:您的 App 正在使用广告标识符 (IDFA)
- ios 程序发布使用xcode工具Application Loader 正在通过ITUNES STORE进行鉴定错误
- IOS的APP编译使用第三方库时arc编译不通过问题解决
- ios中通过调试来使用私有api
- IOS使用视图控制器和视图(三)通过 使用 UIPickerView 来选择数据
- IOS 下使用AdMob广告
- iOS通过设置info.plist参数使用iTunes导入导出Documents目录下的文件
- IOS 企业版发布后,用户通过sarafi浏览器安装无效的解决方案
- IOS 下使用AdMob广告
- 在ios中使用手机定位获得的经纬度坐标 通过 arcgis的api 显示在wgs84 坐标系的地图上。
- iOS:”NSURL中使用string拼接有时候会使NSURL成nil“解决方案
- google广告!我的网站通过了google广告的第一次审核
- Objective-C ,ios,iphone开发基础:使用GDataXML解析XML文档,(libxml/tree.h not found 错误解决方案)