【问题标题】:Scrollview like foursquare with maps + list像foursquare一样的滚动视图,带有地图+列表
【发布时间】:2013-07-24 20:32:41
【问题描述】:

我正在尝试了解如何实现类似于 Foursquare 应用程序使用的滚动视图。滚动时地图y位置跟随收入列表。

  • 带有地图的 UIScrollview + 收入列表作为 UIView 或
  • UITableView 使用地图作为 HeaderSection 和收入作为 UITableViewCell(我试过了,但是滚动后地图会重新加载 表)或
  • 从 UITableview 中分离地图并将地图位置与表格同步 列表?

【问题讨论】:

    标签: ios objective-c uitableview mkmapview foursquare


    【解决方案1】:

    这看起来很有趣。在 UITableView 和 UIMapView 之间创建视差效果,如 FourSquare。我希望它会有用;)

    https://github.com/stefanlage/SLParallaxController

    【讨论】:

      【解决方案2】:

      我的 2 美分: UITableView + MKMapView。 在 tableView 滚动视图位置添加观察者,并在观察者触发时相应地更改地图边界。

      使用 tableView 中的 contentInset 来显示下面的地图。 使用透明背景的“发生在唐人街附近”的部分标题

      等等。

      【讨论】:

        【解决方案3】:

        带有 MKMapView + UITableView 的 UIScrollview。

        【讨论】:

          【解决方案4】:

          经过大量的挖掘,为了达到这个效果,你使用了一个叫做 setPadding(); 的函数

          Android maps - Markers Bounds at the center of top half of map area

          【讨论】:

            猜你喜欢
            • 2013-07-15
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2013-08-31
            • 1970-01-01
            • 2013-01-21
            • 1970-01-01
            • 2014-05-12
            相关资源
            最近更新 更多