Skip to content
Constantine Fry edited this page Jan 6, 2015 · 1 revision
  1. How to get sw and ne from MKMapView?
CGPoint swPoint = CGPointMake(mapView.bounds.origin.x, mapView.bounds.origin.y+ mapView.bounds.size.height);
CGPoint nePoint = CGPointMake((mapView.bounds.origin.x + mapView.bounds.size.width), (mapView.bounds.origin.y));
    
//Then transform those points into lat,lng values
CLLocationCoordinate2D swCoord;
swCoord = [mapView convertPoint:swPoint toCoordinateFromView:mapView];
    
CLLocationCoordinate2D neCoord;
neCoord = [mapView convertPoint:nePoint toCoordinateFromView:mapView];
  1. You can use HTTPHeaders property on instance of Result to get RateLimit-Remaining and X-RateLimit-Limit. Read rate limits for more details. https://developer.foursquare.com/overview/ratelimits
Clone this wiki locally