iAppInfos允许轻松访问所有重要的App信息。
[[iAppInfos sharedInfo] addCustomValue:@"This is a custom value"
forCustomKey:@"CustomKey1"];
查看示例,一个非常经典的TableView Controller(JMOViewController)
//Using properties
[iAppInfos sharedInfo].targetedVersion
[iAppInfos sharedInfo].currentOSVersion
[iAppInfos sharedInfo].appVersion
[iAppInfos sharedInfo].shortAppVersion
[iAppInfos sharedInfo].freeMemorySpace
[iAppInfos sharedInfo].operatorName
[iAppInfos sharedInfo].deviceModelName
[iAppInfos sharedInfo].deviceModelType
[iAppInfos sharedInfo].devicePowerInfo
[[iAppInfos sharedInfor].devicePowerInfo hasGoodGraphicPerformance]
[iAppInfos sharedInfo].compilationSDK
[iAppInfos sharedInfo].freeDiskSpace
[iAppInfos sharedInfo].batteryLevel
[iAppInfos sharedInfo].mobileProvisionning
[[iAppInfos sharedInfo].mobileProvisionning provisionedDevices]
[[iAppInfos sharedInfo].mobileProvisionning pushConfiguration]
//Using dictionnary keys
[[iAppInfos sharedInfo] infoForKey:AppVersionManagerKeyYouriOSVersion];
#define AppVersionManagerKeyTargetedVersion @"targetedVersion"
#define AppVersionManagerKeyYouriOSVersion @"currentOSVersion"
#define AppVersionManagerKeyCFBundleVersion @"appVersion"
#define AppVersionManagerKeyCFBundleShortVersionString @"shortAppVersion"
#define AppVersionManagerKeyFreeMemory @"freeMemorySpace"
#define AppVersionManagerKeyMemoryUseByApp @"memoryUsedByApp"
#define AppVersionManagerKeyOperator @"operatorName"
#define AppVersionManagerKeyYourDeviceModel @"deviceModelName"
#define AppVersionManagerKeyYourDeviceType @"deviceModelType"
#define AppVersionManagerKeyGraphicalPerformance @"devicePowerInfo"
#define AppVersionManagerKeyCompilationSDK @"compilationSDK"
#define AppVersionManagerKeyFreeDiskSpace @"freeDiskSpace"
#define AppVersionManagerKeyBatteryLevel @"batteryLevel"
#define AppVersionManagerKeyMobileProvisionning @"mobileProvisionning"