Inherits from NSObject
Declared in SGSAppUtil.h

Overview

@class SGSAppUtil

Tasks

沙盒路径

App 信息

Class Methods

appBuildVersion

App构建版本

+ (nullable NSString *)appBuildVersion

Return Value

CFBundleVersion

Declared In

SGSAppUtil.h

appBundleID

App BundleID

+ (nullable NSString *)appBundleID

Return Value

CFBundleIdentifier

Declared In

SGSAppUtil.h

appIconBadgeNumber

获取应用图标角标数值

+ (NSInteger)appIconBadgeNumber

Return Value

角标数值

Declared In

SGSAppUtil.h

appName

App名称

+ (nullable NSString *)appName

Return Value

CFBundleName

Declared In

SGSAppUtil.h

appVersion

App版本

+ (nullable NSString *)appVersion

Return Value

CFBundleShortVersionString

Declared In

SGSAppUtil.h

cachesPath

沙盒中的 ‘Caches’ 目录

+ (NSString *)cachesPath

Return Value

~/Library/Caches Path

Declared In

SGSAppUtil.h

cachesURL

沙盒中的 ‘Caches’ 目录

+ (NSURL *)cachesURL

Return Value

~/Library/Caches URL

Declared In

SGSAppUtil.h

clearAppIconBadgeNumber

清空应用图标角标数值

+ (void)clearAppIconBadgeNumber

Declared In

SGSAppUtil.h

documentsPath

沙盒中的 ‘Documents’ 目录

+ (NSString *)documentsPath

Return Value

~/Documents Path

Declared In

SGSAppUtil.h

documentsURL

沙盒中的 ‘Documents’ 目录

+ (NSURL *)documentsURL

Return Value

~/Documents URL

Declared In

SGSAppUtil.h

libraryPath

沙盒中的 ‘Library’ 目录

+ (NSString *)libraryPath

Return Value

~/Library Path

Declared In

SGSAppUtil.h

libraryURL

沙盒中的 ‘Library’ 目录

+ (NSURL *)libraryURL

Return Value

~/Library URL

Declared In

SGSAppUtil.h

mainBundleInfo

App info.plist 中的键值对信息

+ (nullable NSDictionary *)mainBundleInfo

Return Value

info Dictionary

Declared In

SGSAppUtil.h

setAppIconBadgeNumber:

+ (void)setAppIconBadgeNumber:(NSInteger)number
Discussion

iOS 8.0 以后在设置之前一定要先注册通知: [UIApplication registerUserNotificationSettings:]

Parameters

number

角标数值

Declared In

SGSAppUtil.h