-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mipin.h
38 lines (31 loc) · 1.14 KB
/
Mipin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Mipin.h
// LugaresCDMX
// @rockarloz
// Created by Carlos Castellanos on 23/01/14.
// Copyright (c) 2014 Carlos Castellanos. All rights reserved.
//
#import <MapKit/MapKit.h>
#import <MapKit/MKAnnotation.h>
@class CalloutAnnotation;
@interface Mipin : NSObject <MKAnnotation> {
// Creamos un título
NSString *title;
// Declaramos un subtítulo
NSString *subtitle;
// Y una coordenada
CLLocationCoordinate2D coordinate;
}
// Definimos sus propiedades
@property (nonatomic, assign) int id_event;
@property (nonatomic, copy) NSString *tipo;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *subtitle;
@property (nonatomic, copy) NSString *lugar;
@property (nonatomic, copy) NSString *hora;
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
// Y el método de inicialización
- (id)initWithTitle:(NSString *)aTitle subtitle:(NSString*)aSubtitle andCoordinate:(CLLocationCoordinate2D)coord tipo:(NSString*)atipo evento:(int)id_evento lugar:(NSString*)alugar hora:(NSString*)ahora;
@property (nonatomic, weak) CalloutAnnotation *calloutAnnotation;
@end