imagine my class declaration looks like this:
@interface MapViewController : UIViewController <MKMapViewDelegate>
{
}
@property (nonatomic,weak) IBOutlet MKMapView *mapV;
@end
This is implementation:
#import "MapViewController.h"
#import <CoreLocation/CoreLocation.h>
@interface MapViewController ()
@end
@implementation MapViewController
@synthesize mapV;
- (void)viewDidLoad
{
[super viewDidLoad];
[mapV setShowsUserLocation:YES];
}
My question is, by using mapV
as above (in viewDidLoad
) am I referring to the instance variable or calling property? (what is the right way to refer to the instance variable in this case?).