NSString *deviceID? =? [[UIDevice currentDevice] uniqueIdentifier];//設備id
// NSString *deviceID? =? [[UIApplication sharedApplication] uuid];
NSString *systemVersion? =? [[UIDevice currentDevice] systemVersion];//系統(tǒng)版本
NSString *systemModel? ? =? [[UIDevice currentDevice] model];//是iphone 還是 ipad
NSDictionary *dic? ? =? [[NSBundle mainBundle] infoDictionary];//獲取info-plist
NSString *appName? =? [dic objectForKey:@"CFBundleIdentifier"];//獲取Bundle identifier
NSString *appVersion? =? [dic valueForKey:@"CFBundleVersion"];//獲取Bundle Version
NSDictionary *userInfo = [[NSDictionary alloc] initWithObjectsAndKeys:
deviceID, @"deviceID",
systemVersion, @"systemVersion",
systemModel, @"systemModel",
appName, @"appName",
appVersion, @"appVersion",nil];
//阻止屏幕變暗炒辉,慎重使用,缺省為no 2.0
[UIApplication sharedApplication].idleTimerDisabled =YES;
//顯示聯(lián)網標記 2.0
[UIApplication sharedApplication].networkActivityIndicatorVisible =YES;
//設置主界面icon上的數(shù)字圖標框咙,在2.0中引進, 缺省為0
[UIApplication sharedApplication].applicationIconBadgeNumber = 4;