CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Lukas Kollmer.
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.
pod 'UIApplication-AppInfo', '~> 0.2'
UIApplication+AppInfo.m
and
UIApplication+AppInfo.h
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];