Latest 0.3
Homepage https://github.com/lukaskollmer/UIApplication-AppInfo
License MIT
Platforms ios 7.0, requires ARC
Authors

UIApplication+AppInfo

Build Status
Pod Version
Pod Platform
Pod License

UIApplication+AppInfo is an easy to use UIApplication axtension that allows you to access basic information about your app, such as the current version, your build number and the size of your apps documents folder.

Installation

  • Using CocoaPods:
    pod 'UIApplication-AppInfo'
  • Manual installation:
    Copy the following files in your Xcode project:
    UIApplication+AppInfo.m and
    UIApplication+AppInfo.h

Usage

  • Get the current App version:

    NSString *appVersion = [[UIApplication sharedApplication] appVersion];
  • Get the current build number:

    NSString *appBuild = [[UIApplication sharedApplication] appBuild];
  • Get the size of the apps documents folder:

    • As formatted string (this returns values like "1,4 MB"):

      NSString *documentsFolderSize = [[UIApplication sharedApplication] documentsFolderSizeAsString];

    • As integer (in bytes):

      int documentsFolderSize = [[UIApplication sharedApplication] documentsFolderSizeInBytes];

Future Goals

  • Folder size calculation for the temp and the caches folder
  • Folder size calculation for a specific folder inside the documents, temp or caches folder
  • Calculation if folder size is under a specific limit
  • File size calculation

Latest podspec

{
    "name": "UIApplication-AppInfo",
    "version": "0.3",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "homepage": "https://github.com/lukaskollmer/UIApplication-AppInfo",
    "authors": {
        "Lukas Kollmer": "[email protected]"
    },
    "summary": "UIApplication extension for accessing app specific information",
    "source": {
        "git": "https://github.com/lukaskollmer/UIApplication-AppInfo.git",
        "tag": "v0.3"
    },
    "source_files": "UIApplication+AppInfo.{h,m}",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This