-
Notifications
You must be signed in to change notification settings - Fork 49
Tips
Constantine Fry edited this page Jan 6, 2015
·
1 revision
- 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];
- You can use
HTTPHeaders
property on instance ofResult
to getRateLimit-Remaining
andX-RateLimit-Limit
. Read rate limits for more details. https://developer.foursquare.com/overview/ratelimits