【问题标题】:Access to GMSAutocompleteResultsViewController TableView访问 GMSAutocompleteResultsViewController TableView
【发布时间】:2017-03-29 15:22:30
【问题描述】:

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

有什么方法可以访问 GMSAutocompleteResultsViewController 表格视图,以便我可以操纵它的显示位置?

【问题讨论】:

    标签: ios google-places-api


    【解决方案1】:

    如果您在情节提要中设置了视图控制器,请确保取消选中 UIViewController 及其包含的 UINavigationController 中的 Extend edges Under Top Bars

    斯威夫特 3

    self.edgesForExtendedLayout = []
    self.navigationController?.edgesForExtendedLayout = []
    definesPresentationContext = true
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-26
      • 1970-01-01
      • 1970-01-01
      • 2017-07-11
      • 2021-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多