Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须在 tableview 中显示大量位置记录,而 mapview 取决于用户在视图之间切换。如何实现延迟加载?我不想查询中央服务器的位置,即使位置发生很小的变化。
你懒加载什么样的数据?如果您正在谈论您的位置的注释,那么 MKMapView 已经根据地图区域为您处理延迟加载。你只需给它一个注释数组,它就会处理实际注释视图的延迟加载。如果你的意思是别的,那么请说明。