如何在swift中使用UISearchController与后台交互?

时间:2016-02-29 18:46:36

标签: swift search tvos uisearchcontroller

目前我正在使用UISearchController.becomeFirstResponder()在首次启动应用时显示键盘。我也使用UISearchController.obscuresBackgroundDuringPresentation = false来显示键盘的背景。但是,目前我无法与背景视图交互或使用手势识别(如滑动或点击)?有没有办法来解决这个问题?

<?php
ob_start(); ?>

<html>
All HTML here
</html>

<?php 
$path = "cache/home-".$imputnum.".html";
?>


<?php

if (file_exists($path))     { 
        $i=$imputnum; 
        $new_path=$path;

        while (file_exists($new_path)) 
        { 
            $extension = "html"; 
            $filename = "home"; 
            $directory = "cache";

            $new_path = $directory . '/' . $filename . '-' . $i . '.' . $extension; 


            $i++;  
        } 

        if(!rename($path, $new_path)){
            echo 'error renaming file';
        }
    }
?>

<?php
$fp = fopen("cache/home-".$imputnum.".html", 'w');
fwrite($fp, ob_get_contents());
ob_end_flush();
?>

感谢您的帮助!

0 个答案:

没有答案