0

クラス宣言が次のようになっていると想像してください。

@interface MapViewController : UIViewController <MKMapViewDelegate>
{

}

@property (nonatomic,weak) IBOutlet MKMapView *mapV;

@end

これは実装です:

#import "MapViewController.h"
#import <CoreLocation/CoreLocation.h>

@interface MapViewController ()

@end

@implementation MapViewController

@synthesize mapV;


- (void)viewDidLoad
{
    [super viewDidLoad];
    [mapV setShowsUserLocation:YES];
}

私の質問は、mapV上記のように (でviewDidLoad) 使用することによって、インスタンス変数または呼び出し元のプロパティを参照していますか? (この場合、インスタンス変数を参照する正しい方法は何ですか?)。

4

1 に答える 1