Skip to content

Instantly share code, notes, and snippets.

@vikdenic
Created October 17, 2014 17:43
Show Gist options
  • Select an option

  • Save vikdenic/88672b7f45fd23220e38 to your computer and use it in GitHub Desktop.

Select an option

Save vikdenic/88672b7f45fd23220e38 to your computer and use it in GitHub Desktop.
Custom Pizzeria.m
//
// Pizzeria.m
// ZaHunter
//
// Created by Christopher on 10/15/14.
// Copyright (c) 2014 Big Nerd Ranch. All rights reserved.
//
#import "Pizzeria.h"
@implementation Pizzeria
-(instancetype)initWithMapItem: (MKMapItem *) passedInMapItem distanceFromMe: (CLLocationDistance)passedInDistanceFromMe distanceFromMeInKM: (NSString *) passedInDistanceFromMeInKM
{
self = [super init];
if (self) {
self.mapItem = passedInMapItem;
self.distanceFromMe = passedInDistanceFromMe;
self.distanceFromMeInKM = passedInDistanceFromMeInKM;
}
return self;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment