菜鸟教程小白 发表于 2022-12-11 19:22:43

ios - 访问 GMSAutocompleteResultsViewController TableView


                                            <p><p>我正在使用 GMSAutocompleteResultsViewController 并将 searchBar 放置在 NavigationBar 的标题 View 中。导航栏和标题 View 已扩展高度以容纳 Google 地方信息搜索栏上方的另一个搜索栏。除了 Google Places AutoComplete 表格部分显示在导航栏下方之外,这一切都很好。</p>

<p>有什么方法可以访问 GMSAutocompleteResultsViewController 表格 View ,以便我可以操纵它的显示位置?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>如果您在 Storyboard 中设置了 ViewController ,请确保取消选中 <code>UIViewController</code> 及其包含的 <code>UINavigationController< 中的 <strong>Extend edges Under Top Bars</strong>/</code></p>

<p><strong> swift3</strong></p>

<pre><code>self.edgesForExtendedLayout = []
self.navigationController?.edgesForExtendedLayout = []
definesPresentationContext = true
</code></pre></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 访问 GMSAutocompleteResultsViewController TableView,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/43097719/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/43097719/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 访问 GMSAutocompleteResultsViewController TableView