Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios SFSafariViewController不';不能在纵向模式下工作_Ios_Objective C_Sfsafariviewcontroller - Fatal编程技术网

Ios SFSafariViewController不';不能在纵向模式下工作

Ios SFSafariViewController不';不能在纵向模式下工作,ios,objective-c,sfsafariviewcontroller,Ios,Objective C,Sfsafariviewcontroller,我正在iPad Pro上的模拟器上试用新的SFSafariViewController。它适用于风景画,但不适用于肖像画。这是我的密码: NSURL *URL = [NSURL URLWithString:[NSString stringWithFormat:@"https://forums.greenrobot.com"]]; if ([SFSafariViewController class] != nil) { //SFSafariViewController *sfvc = [[

我正在iPad Pro上的模拟器上试用新的SFSafariViewController。它适用于风景画,但不适用于肖像画。这是我的密码:

NSURL *URL = [NSURL URLWithString:[NSString stringWithFormat:@"https://forums.greenrobot.com"]];
if ([SFSafariViewController class] != nil) {
    //SFSafariViewController *sfvc = [[SFSafariViewController alloc] initWithURL:URL];
    SFSafariViewController *sfvc = [[SFSafariViewController alloc]initWithURL:URL entersReaderIfAvailable:YES];

    [self presentViewController:sfvc animated:YES completion:nil];
} else {
    [[UIApplication sharedApplication] openURL:URL];
}

我也是。你有什么解决办法吗?我现在刚推出safari,对此不太满意。