Inherits from NSObject
Declared in SGSSystemUtil.h

Tasks

应用切换

系统服务

Class Methods

callWithPhoneNumber:completionHandler:

向指定的号码拨打电话

+ (void)callWithPhoneNumber:(NSString *)phone completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

phone

电话号码

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

gotoAboutServices

跳转到关于本机设置

+ (BOOL)gotoAboutServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoAccessibilityServices

跳转到辅助功能设置

+ (BOOL)gotoAccessibilityServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoAppSettingWithCompletionHandler:

跳转到应用设置

+ (void)gotoAppSettingWithCompletionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

gotoAutoLockServices

跳转到自动锁定设置

+ (BOOL)gotoAutoLockServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoBluetoothServices

跳转到蓝牙设置

+ (BOOL)gotoBluetoothServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoCellularServices

跳转到蜂窝网络设置

+ (BOOL)gotoCellularServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoDateAndTimeServices

跳转到日期与时间设置

+ (BOOL)gotoDateAndTimeServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoFaceTimeServices

跳转到FaceTime设置

+ (BOOL)gotoFaceTimeServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoGeneralServices

跳转到系统通用设置

+ (BOOL)gotoGeneralServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoInternationalServices

跳转到语言与地区设置

+ (BOOL)gotoInternationalServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoKeyboardServices

跳转到键盘设置

+ (BOOL)gotoKeyboardServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoLocationServices

跳转到定位服务

+ (BOOL)gotoLocationServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoManagedConfigurationServices

跳转到设备管理设置

+ (BOOL)gotoManagedConfigurationServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoMusicServices

跳转到音乐服务设置

+ (BOOL)gotoMusicServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoNotesServices

跳转到备忘录设置

+ (BOOL)gotoNotesServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoNotificationsServices

跳转到通知中心设置

+ (BOOL)gotoNotificationsServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoPhoneServices

跳转到电话设置

+ (BOOL)gotoPhoneServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoPhotosServices

跳转到照片与相机服务设置

+ (BOOL)gotoPhotosServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoResetServices

跳转到还原设置

+ (BOOL)gotoResetServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoSiriServices

跳转到SIRI设置

+ (BOOL)gotoSiriServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoSoftwareUpdateServices

跳转到软件更新

+ (BOOL)gotoSoftwareUpdateServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoSoundsServices

跳转到声音设置

+ (BOOL)gotoSoundsServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoStorageAndBackupServices

跳转到iCloud储存空间

+ (BOOL)gotoStorageAndBackupServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoStorageServices

跳转到 iTunes Store 和 App Store 设置

+ (BOOL)gotoStorageServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoWallpaperServices

跳转到墙纸设置

+ (BOOL)gotoWallpaperServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

gotoWiFiServices

跳转到WIFI设置

+ (BOOL)gotoWiFiServices

Return Value

YES 打开成功, NO 打开失败

Declared In

SGSSystemUtil.h

openAMapWithOptions:completionHandler:

打开高德地图

+ (void)openAMapWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openAlipayWithOptions:completionHandler:

打开支付宝

+ (void)openAlipayWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openBaiduMapWithOptions:completionHandler:

打开百度地图

+ (void)openBaiduMapWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openJDHDWithOptions:completionHandler:

打开iPad京东

+ (void)openJDHDWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openJDWithOptions:completionHandler:

打开手机京东

+ (void)openJDWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openMeiTuanWithOptions:completionHandler:

打开美团

+ (void)openMeiTuanWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openQQWithOptions:completionHandler:

打开QQ

+ (void)openQQWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openSafariWithURL:options:completionHandler:

打开 Safari

+ (void)openSafariWithURL:(NSURL *)url options:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

url

网址

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openSinaWeiboWithOptions:completionHandler:

打开新浪微博

+ (void)openSinaWeiboWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openSoSoMapWithOptions:completionHandler:

打开腾讯地图

+ (void)openSoSoMapWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openTaobaoWithOptions:completionHandler:

打开淘宝

+ (void)openTaobaoWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openTencentWeiboWithOptions:completionHandler:

打开腾讯微博

+ (void)openTencentWeiboWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openTmallWithOptions:completionHandler:

打开天猫

+ (void)openTmallWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openURL:options:completionHandler:

应用切换

+ (void)openURL:(NSURL *)url options:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

url

应用 URL Schemes

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

openWeChatWithOptions:completionHandler:

打开微信

+ (void)openWeChatWithOptions:(nullable NSDictionary<NSString*,id> *)options completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

options

切换参数,例如:@{UIApplicationOpenURLOptionUniversalLinksOnly : @YES}, 传入空字典等同于调用 -openURL:

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

sendEmailToAddress:completionHandler:

发送邮件

+ (void)sendEmailToAddress:(NSString *)address completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

address

邮箱

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h

sendSMSWithPhoneNumber:completionHandler:

向指定的号码发短信

+ (void)sendSMSWithPhoneNumber:(NSString *)phone completionHandler:(nullable void ( ^ ) ( BOOL success ))completion

Parameters

phone

电话号码

completion

执行成功后在主队列中回调

Declared In

SGSSystemUtil.h