Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leverdeterre committed Dec 31, 2013
1 parent 1fb25d9 commit ca654c7
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ To configure iAppInfos, you can set a custom datasource
```objective-c
[AppInformationsManager sharedManager].datasource = self;
```
## Add customs key/values

```objective-c
[[AppInformationsManager sharedManager] addCustomValue:@"This is a custom value" forCustomKey:@"CustomKey1"];
```

## Configure interest keys

Expand All @@ -56,6 +51,34 @@ Your datasource can optionally implements this 2 methods to help the Manager to

# Usage in the real life

# Present all informations

See the sample, a very classic TableView Controller (JMOViewController)

# Get informations one by one

```objective-c
[[AppInformationsManager sharedManager] infoForKey:AppVersionManagerKeyYouriOSVersion];
```
##Defined keys are :
```objective-c
AppVersionManagerKeyTargetedVersion @"MinTargetedVersion"
AppVersionManagerKeyYouriOSVersion @"iOSVersion"
AppVersionManagerKeyYourDeviceModel @"DeviceModel"
AppVersionManagerKeyCompilationSDK @"SDKUseForCompilation"
AppVersionManagerKeyWSConfiguration @"WSConfiguration" //From Datasource
AppVersionManagerKeyCFBundleVersion @"Version"
AppVersionManagerKeyCFBundleShortVersionString @"ShortVersionString"
AppVersionManagerKeyFreeDiskSpace @"FreeDiskSpace"
AppVersionManagerKeyBatteryLevel @"BatteryLevel"
AppVersionManagerKeyMobileProvisionning @"MobileProvisionning"
AppVersionManagerKeyPushToken @"PushToken" //From Datasource
```
##Customs key/values
###Add a custom value
```objective-c
[[AppInformationsManager sharedManager] addCustomValue:@"This is a custom value" forCustomKey:@"CustomKey1"];
```

0 comments on commit ca654c7

Please sign in to comment.