我想从我的应用程序转换网页作为safari阅读器模式。这是真的吗?
答案 0 :(得分:1)
#import <SafariServices/SafariServices.h>
NSString *sURL = @"http://google.com";
NSURL *URL = [NSURL URLWithString:sURL];
SFSafariViewController *safari = [[SFSafariViewController alloc] initWithURL:URL]; // 1.
//SFSafariViewController *safari = [[SFSafariViewController alloc] initWithURL:URL entersReaderIfAvailable:YES]; // 2.
[self presentViewController:safari animated:YES completion:nil];