iOS imei(identifierForAdvertising)/version

import <AdSupport/ASIdentifierManager.h>

NSString *identifierForAdvertising = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];

NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
App的版本号
NSString *appVersion = [infoDic objectForKey:@"CFBundleShortVersionString"];
App的build版本
NSString *appBuildVersion = [infoDic objectForKey:@"CFBundleVersion"];
App的名称
NSString *appName = [infoDic objectForKey:@"CFBundleDisplayName"];
渠道
NSString *channel = @"AppStore";

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1,Search Bar 怎样去掉背景的颜色(storyboard里只能设置background颜色,可是发现cl...
    以德扶人阅读 7,541评论 2 50
  • #pragma mark----获取设备型号 + (NSString *)deviceModel{ return ...
    彬至睢阳阅读 3,875评论 0 0
  • 1、禁止手机睡眠[UIApplication sharedApplication].idleTimerDisabl...
    DingGa阅读 4,811评论 1 6
  • 前几个月的时候是王小波逝世20周年,当时看了很多人写的文章,表示了对王小波的怀念及回忆。我当时对王小波仅有的印象就...
    齐滇大圣阅读 6,628评论 6 3
  • 709年,妖怪随处可见,有些是好妖,跟人类一起生活,有些是坏妖,跟人类打斗,只为侵略世界。 我叫张降龙,生于709...
    皮卡丘萌萌哒阅读 2,490评论 1 1