SHARE
TWEET

Untitled

a guest Jun 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func zoomMap()
  2. {
  3.     map.showAnnotations(map.annotations, animated: false)
  4.  
  5.     DispatchQueue.main.asyncAfter(deadline: .now() + 0.1)
  6.     {
  7.         let rect: MKMapRect = self.map.visibleMapRect
  8.         let padding: UIEdgeInsets = self.edgePadding
  9.         self.map.setVisibleMapRect(rect, edgePadding: padding, animated: false)
  10.     }
  11. }
RAW Paste Data
Top