Application

通过Safari打开URL

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
打开app内置Safari浏览器

@param URL 网址
*/
+ (void)ax_presentSafariViewControllerWithURL:(NSURL *)URL;

/**
打开app内置Safari浏览器

@param URL 网址
@param viewController 从哪个视图控制器,传入nil可从根控制器打开
*/
+ (void)ax_presentSafariViewControllerWithURL:(NSURL *)URL fromViewController:(nullable UIViewController *)viewController;

设置跳转

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma mark - 跳转

/**
打开蓝牙设置
*/
+ (void)ax_openBluetoothSetting NS_DEPRECATED_IOS(8.0, 10.0, "Please use ax_openAppSetting instead") NS_EXTENSION_UNAVAILABLE_IOS("");

/**
打开WIFI设置
*/
+ (void)ax_openWIFISetting NS_DEPRECATED_IOS(8_0, 10_0, "Please use ax_openAppSetting instead") NS_EXTENSION_UNAVAILABLE_IOS("");

/**
打开通知设置
*/
+ (void)ax_openNotificationSetting NS_DEPRECATED_IOS(8_0, 10_0, "Please use ax_openAppSetting instead") NS_EXTENSION_UNAVAILABLE_IOS("");

/**
打开相册设置
*/
+ (void)ax_openPhotosSetting NS_DEPRECATED_IOS(8_0, 10_0, "Please use ax_openAppSetting instead") NS_EXTENSION_UNAVAILABLE_IOS("");

/**
打开浏览器设置
*/
+ (void)ax_openSafariSetting NS_DEPRECATED_IOS(8_0, 10_0, "Please use ax_openAppSetting instead") NS_EXTENSION_UNAVAILABLE_IOS("");

/**
打开当前app的设置页面
*/
+ (void)ax_openAppSetting NS_AVAILABLE_IOS(11.0);



评论