开启系统浏览器
#import "ViewController.h"
#import <SafariServices/SafariServices.h>
@implementation ViewController
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
// 如果公司没有特殊的界面制定要求, 当弹出网页的时候, 可以使用这里的SFSafariViewController
SFSafariViewController *sf = [[SFSafariViewController alloc] initWithURL:[NSURL URLWithString:@"https://www.baidu.com"]];
[self presentViewController:sf animated:YES completion:nil];
}
@end
最后
以上就是酷炫黄豆最近收集整理的关于iOS Safari(浏览器)的全部内容,更多相关iOS内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复