How to pass prepareForSegue: an object

Simply grab a reference to the target view controller in prepareForSegue: method and pass any objects you need to there. Here’s an example… – (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Make sure your segue name in storyboard is the same as this line if ([[segue identifier] isEqualToString:@”YOUR_SEGUE_NAME_HERE”]) { // Get reference to the destination view controller … Read more

How to show Image over Map not as Pin but as seperate image? [duplicate]

You are looking for Map Overlay MKOverlayView. Check these tutorials: Overlay View Image Overlay Creating overlay Creating a MKOverlayView Create a subclass of MKOverlayView like: .h #import #import @interface MapOverlayView : MKOverlayView { } @end .m #import “MapOverlayView.h” @implementation MapOverlayView – (void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContext:(CGContextRef)ctx { UIImage *image = [UIImage imageNamed:@”yourImage.png”]; CGImageRef imageReference = image.CGImage; MKMapRect … Read more