« first day  last day (14 days later) » 

12:49 AM
ugh, ok we were wrong
ive been playing around a bit and I've gotten it to work:
-(void)zoomToAnnotation:(NSNotification *)notification {
    // Zoom into the passed MKMapItem
    NSLog(@"beginCam");
    MKMapItem *passedMapItem = (MKMapItem *)notification.object;

    [self.previewMapView setCenterCoordinate:passedMapItem.placemark.location.coordinate animated:YES];
    [self.previewMapView addAnnotation:passedMapItem.placemark];

    NSLog(@"endCam");
}
-(void) makeNotification{

    [self.locationManager startUpdatingLocation];
    [self.previewMapView setCenterCoordinate:self.locationManager.location.coordinate animated:YES];

    MKMapItem * mapItem = [[MKMapItem alloc] initWithPlacemark:[[MKPlacemark alloc] initWithCoordinate:self.locationManager.location.coordinate addressDictionary:nil]];

    [[NSNotificationCenter defaultCenter] postNotificationName:@"mapPoint"
                                                    object:mapItem];
}
self.locationManager = [[CLLocationManager alloc] init];
    [self.locationManager requestAlwaysAuthorization];
    [self.locationManager requestWhenInUseAuthorization];

    [self.locationManager startUpdatingLocation];

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(zoomToAnnotation:) name:@"mapPoint" object:nil];
(that set of code was in my view did load)
and lastly add two properties to your plist regarding location services (if you haven't already)
NSLocationWhenInUseUsageDescription
NSLocationAlwaysUsageDescription
@Erik coouldnt figure out how to zoom in on the location, but finding it and annotating it works.
but running late for something, so lets chat later
oh and ps. I just have a button that calls makeNotification
 

« first day  last day (14 days later) »